Plotting Functions (Function not defined), also: Text size display

Plotting Functions (Function not defined), also: Text size display - Сообщения

#1 Опубликовано: 14.09.2010 06:05:26
lilithpro

lilithpro

0 сообщений из 2 понравились пользователям.

Группа: User

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.
#2 Опубликовано: 14.09.2010 07:50:08
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: Super Administrator

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.
#3 Опубликовано: 14.09.2010 08:47:34
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

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
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#4 Опубликовано: 14.09.2010 09:11:03
lilithpro

lilithpro

0 сообщений из 2 понравились пользователям.

Группа: User

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!
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений