-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Propose New Type Interval #542
Comments
A little question D:
and now trying to execute this:
This is weird! Thx. |
Your 2nd example calls @sym/interval, that's why it's different. |
yes, but @sym/interval its the same as @interval/interval, so i know tis call the other but i cat'n understand why the result is different. Thx. |
Okis, checking again, the files are differents, that why with one works and with the other not. Thx the help! |
what doc do you can recommend me to learn to write types/classes? This is my newbie file: https://github.com/latot/octsympy/blob/interval/inst/%40interval/interval.m still something fails, ..., basically this:
this don't:
i use logical so the sym(3) should be converted to True but nothing, and the last:
The class changes, as a note, only exist the file Thx. Cya. |
I used the Octave docs to learn classes, maybe some Matlab docs are useful too. I don't really understand the I'm not at all sure that I'm not sure what we get by making an interval class. In the future, maybe we want all
|
that looks great, the reason of the issue, is (thinking only in sym and intervals), we have basically there two types of data, and if we split it to |
Perhaps we could try overloading |
Do we do a lot of that right now for intervals? My goal is to make Symbolic "thinner" around SymPy. I feel adding more classes for particular types of SymPy objects does the opposite. So there will have to be some big benefit; and I don't see what that is. |
sorry but i have little problems interpreting the overloading "line", what do you mean? (only as a note, i know what is overload a function/operator) (maybe your intention was say start implementing the class def). execute one action depending if is set or matrix: https://github.com/cbm755/octsympy/blob/master/inst/%40sym/intersect.m only as idea, its possible make a classdef of classdef?, like a master classdef to handle values types and similars and the other to set the opertaions. (or something similar). |
Let's take that discussion elsewhere: #549.
Yes it is possible to subclass. |
okidokis |
Hi, well thinking again, actually when we add functions to sets we are doing bigger and bigger the files while the type of data are completely differents, so i propose make a new type, actually we have
@symfun
,@sym
and some@logical
and@double
functions, so do a@interval
to call the functions.I think with this will be easier to work.
This start when i was checking the changes of this pr #328 and your comment:
Edited: set its already a function, so now is interval.
Thx. Cya.
The text was updated successfully, but these errors were encountered: