1 Pages (4 items)
Plotting Functions (Function not defined), also: Text size display - Messages
#1 Posted: 9/14/2010 6:05:26 AM
Hi,
I have issues plotting functions that rely on if-Statements. With the following code and anything similar, i always get "function is not defined", although i can calculate single values without a problem.

Also, i found another minor issue:
When changing text sizes, the newly selected size stays at that value, regardless which other object (with a different textsize) gets selected.
Example:
Label "Test", mark it, change its font size to 12 (from 10). Then, Create Label "Test2", font size dropdown still displays 12, although the text is 10px high. Selecting the dropdown and clicking on 12 sets the text to 12px. I think this is just missing a query for the selected object's textsize.
If this should be in another thread, sorry but i didnt want to open 2 threads just following registration.
Greetings.
I have issues plotting functions that rely on if-Statements. With the following code and anything similar, i always get "function is not defined", although i can calculate single values without a problem.

Also, i found another minor issue:
When changing text sizes, the newly selected size stays at that value, regardless which other object (with a different textsize) gets selected.
Example:
Label "Test", mark it, change its font size to 12 (from 10). Then, Create Label "Test2", font size dropdown still displays 12, although the text is 10px high. Selecting the dropdown and clicking on 12 sets the text to 12px. I think this is just missing a query for the selected object's textsize.
If this should be in another thread, sorry but i didnt want to open 2 threads just following registration.
Greetings.
#2 Posted: 9/14/2010 7:50:08 AM
Hello lilithpro.
Issue with plotting the if(..) function was many time mentioned after 0.89 release. This is fixed already and will be available soon in the newer program version. For now you can try the latest beta: http://en.smath.info/forum/default.aspx?g=posts&m=3387#post3387.
Regarding Font Size - it is also well known issue. Hope to fix asap.
Best regards, Andrey Ivashov.
Issue with plotting the if(..) function was many time mentioned after 0.89 release. This is fixed already and will be available soon in the newer program version. For now you can try the latest beta: http://en.smath.info/forum/default.aspx?g=posts&m=3387#post3387.
Regarding Font Size - it is also well known issue. Hope to fix asap.
Best regards, Andrey Ivashov.
#3 Posted: 9/14/2010 8:47:34 AM
Hello lilithpro,
Just a suggestion. The recent beta version (0.89_6) will make the plot. Pay attention in cases like this to use "eval" function or numerical optimization if you need numbers (in order to avoid symbolic processor). For instance, using your numbers:
This will fail:
[MATH=eng]a-b*c^74—#@#[/MATH]
Saying that the maximal number is excited
But this will do not:
[MATH=eng]a-b*c^74=457.9239[/MATH]
[MATH=eng]eval(a-b*c^74)=457.9239[/MATH]
In order to see both part of your function, use this
[MATH=eng]f(x)←if(x>70.6,eval(a-b*c^x),eval(d-e*g^x))[/MATH]
If you did not do this, there is no guaranty that you will even see the x>70.6 part of this discontinuous function
Regards,
Radovan
Just a suggestion. The recent beta version (0.89_6) will make the plot. Pay attention in cases like this to use "eval" function or numerical optimization if you need numbers (in order to avoid symbolic processor). For instance, using your numbers:
This will fail:
[MATH=eng]a-b*c^74—#@#[/MATH]
Saying that the maximal number is excited
But this will do not:
[MATH=eng]a-b*c^74=457.9239[/MATH]
[MATH=eng]eval(a-b*c^74)=457.9239[/MATH]
In order to see both part of your function, use this
[MATH=eng]f(x)←if(x>70.6,eval(a-b*c^x),eval(d-e*g^x))[/MATH]
If you did not do this, there is no guaranty that you will even see the x>70.6 part of this discontinuous function
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#4 Posted: 9/14/2010 9:11:03 AM
Well, thanks for the replies. Sorry if those were already mentioned, but i just had a quick look in the bugs thread searching for functions and plotting and did not find sth.
Will try the beta and look forward to the next release. Amazing software so far, keep it up!
Will try the beta and look forward to the next release. Amazing software so far, keep it up!
1 Pages (4 items)
-
New Posts
-
No New Posts