Problem with function definition

Problem with function definition - Сообщения

#1 Опубликовано: 13.03.2010 16:27:18
captainblack

captainblack

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

Группа: User

Any ideas on what is going on here (it is to check a limit numerically for a question posted on mathhelpforum):



(the limit is exp(-1/3))

CB
#2 Опубликовано: 13.03.2010 16:40:30
captainblack

captainblack

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

Группа: User

Is it because the function definition is not respecting the order of evaluation implied by the brackets?



CB
#3 Опубликовано: 14.03.2010 02:17:03
Andrey Ivashov

Andrey Ivashov

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

Группа: Super Administrator

Hello.

This is known problem. The only way to beat it is to use workaround with round(...) function as shown on the screenshot below:


This will be fixed later.

P.S.: The same type of error reported here: x^y=error.
#4 Опубликовано: 14.03.2010 10:42:17
captainblack

captainblack

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

Группа: User

Wrote

Hello.

This is known problem. The only way to beat it is to use workaround with round(...) function as shown on the screenshot below:


This will be fixed later.

P.S.: The same type of error reported here: x^y=error.



Thanks. I think I prefer the other work around from the other thread:



since it forces the order of evaluation.

CB
#5 Опубликовано: 31.03.2010 23:26:44
Andrey Ivashov

Andrey Ivashov

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

Группа: Super Administrator

To fix this I've added new useful option for every Math region, calls "Optimize evaluation".

It is possible now to prevent optimization of the function/variable definitions by symbolic library. Turning off the optimization can cause reducing of the evaluation performance, but it can increase it in some cases too. Also this feature can help to solve some possible issues in the future. See pictures bellow for further explanation:


Figure 1: Document with evaluation error.


Figure 2: Switching off control's optimization.


Figure 3: Document without evaluation error.

Feature will be available with the next SMath Studio release.

Regards.
#6 Опубликовано: 01.04.2010 14:09:51
captainblack

captainblack

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

Группа: User

That looks great (it will solve at least one other problem I have been having)

Thanks

CB
#7 Опубликовано: 10.04.2010 18:01:14
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Hello Andrey,

I hope this might fit under this topic.

There is "Explicit" function in SMath present (symbolic result only). I found this by browsing Russian side of the Forum. Moreover, this function is not present neither in the function list nor in the Dynamic assistant list. I am just courious, what would be with it. Are you intending to drop it out maybe?

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#8 Опубликовано: 10.04.2010 20:32:37
Andrey Ivashov

Andrey Ivashov

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

Группа: Super Administrator

There are several undocumented functions (see three of them on the screenshot). They are not documented because I know some major problems related to them and don't want them to be used in the real worksheets, because they can be excluded from future versions of SMath Studio.



For now these functions can be used as some easter eggs of the program

Regards.
#9 Опубликовано: 10.04.2010 21:23:11
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

I thought the reason might be as axplained.
Thanks anyway

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений