"Result is above of max. allowed positive Number" error

"Result is above of max. allowed positive Number" error - "Result is above of max. allowed positive Number" error during a programming - Сообщения

#1 Опубликовано: 02.02.2017 13:26:14
MSL

MSL

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

Группа: User

Dear Masters,

I've got the error message, "'Result is above of max. allowed positive Number", frequently during programming.

Please, check it.

Файл не найден.Файл не найден.Файл не найден.




#2 Опубликовано: 02.02.2017 14:59:39
Jean Giraud

Jean Giraud

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

Группа: User

Correct as per yellow.

Dhe_test01_release.sm (34 КиБ) скачан 36 раз(а).
#3 Опубликовано: 02.02.2017 15:18:53
Arie

Arie

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

Группа: User

So you have some weird stuff going on here. All of your assignments seem to be optimized for symbolic evaluation.

What I did was take your first example program and rewrote it. I got the same error. I replaced the constant 'e' with the exp function in the second version of the program. That seemed to fix it.


programming.png


I found that rewriting the program and replacing 'e' with the function exp() seemed to fix it. In the original program I tried replacing 'e' with exp() and still got an error. I'm wondering if you copy/pasted the assignments from above into the program. Those were optimized for symbolic calculation. I found that using eval() within the program fixed the problem as shown below. Even when I replaced 'e' with exp() in your original program, I had to use eval(). That's why i think the symbolic optimation got "stuck" in your assignments within the program.

program2.png

Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#4 Опубликовано: 02.02.2017 22:57:44
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I found that rewriting the program and replacing 'e' with the function exp() seemed to fix it.



In theory, exp(,) is more accurate as it involves only ONE
numerical approximation vs e that needs TWO numerical
approximations. However, one vs the other is immaterial
wrt the result, only 15 decimals are conserved from 21.
Your program is not correct, conserve the "yellow offer"
exp(-x) has no limit value in 'x'
exp(x) is limited to "xmax=709"
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений