exponential function error

exponential function error - Result is above the max. allowed positive number error - Сообщения

#1 Опубликовано: 09.08.2019 08:17:45
MSL

MSL

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

Группа: User

Dear masters,

I'got the error, "Result is above the max. allowed positive number error" during exponential calculation.



How I resolve this kind of errors?

Thank you!

M.S.

my error


exponential_max_err_v0.sm (12 КиБ) скачан 40 раз(а).
#2 Опубликовано: 09.08.2019 10:09:38
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

How I resolve this kind of errors?


... like this: index 'j' to de-confuse 'i' imaginary.

exponential_max_err_v0.sm (12 КиБ) скачан 32 раз(а).
#3 Опубликовано: 10.08.2019 00:44:37
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Wrote

Dear masters,

I'got the error, "Result is above the max. allowed positive number error" during exponential calculation.



How I resolve this kind of errors?



Hi. Summatorie ranged have some issues. For instance, the range variable isn't local. With eval you can get punctual results, but this version can't be plotted, and I don't know why:

Clipboard1.gif

Whith this other version you can do both things:

Clipboard2.gif

Hope that this helps.

exponential_max_err_v0.sm (13 КиБ) скачан 33 раз(а).

Best regards.
Alvaro.
#4 Опубликовано: 10.08.2019 09:08:37
Jean Giraud

Jean Giraud

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

Группа: User

... more doctoring in the *.sm attached
1. local definition mode
2. index piece wise

ExpTest.PNG

exponential_max_err_v0 (1).sm (24 КиБ) скачан 29 раз(а).
#5 Опубликовано: 10.08.2019 09:39:30
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

but this version can't be plotted, and I don't know why:


... code this to the previous doctored document.
Summation operator is very capricious, but works
and plot scalar as demonstrated. Plot scalar for
lot more involved stuff [Budapest 39, Legendere ...]

ExpLocalDefinition.PNG

Remember Alvaro: you doctored my Barnes Hypergeometric !
#6 Опубликовано: 12.08.2019 23:43:12
MSL

MSL

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

Группа: User

Thank you your replies.
But I have a still same problem.
Here are another sample file.
exponential_max_err_v03.png
exponential_max_err_v03.sm (18 КиБ) скачан 27 раз(а).

#7 Опубликовано: 13.08.2019 01:08:10
Alvaro Diaz Falconi

Alvaro Diaz Falconi

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

Группа: User

Hi. Yes, it's hard to drive those calculations. Try to avoid sum(1) too:

Clipboard1.gif

Best regards.
Alvaro
1 пользователям понравился этот пост
MSL 13.08.2019 11:09:00
#8 Опубликовано: 13.08.2019 04:13:24
alisonparker

alisonparker

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

Группа: User

Wrote

Dear masters,

I'got the error, "Result is above the max. allowed positive number error" during exponential calculation.



How I resolve this kind of errors?

Thank you!

M.S.

my error


exponential_max_err_v0.sm (12 КиБ) скачан 40 раз(а).



I am getting error "Result is above max allowed positive number",too! And l don't know how to solve it.Function error
#9 Опубликовано: 13.08.2019 04:35:54
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Hello,

I think something is wrong here in the numeric/symbolic engine of SMath which causes those errors.
Version "0.99.7109"

flaoting point.png

I can not understand this . The error message is quite confusing. The result is quite a small number close to zero. On the other hand, by mouse hoovering the vector it could be seen the fraction presentation of the numbers (symbolic engine) with quite large numbers in the denominator. Therefore the message about max. allowed positive numbers. I think something is wrong in the floating point arithmetic in SMath numerical engine or at least quite problematic. It seems that eval() must be used extensively in order to escape from these traps and to avoid the symbolic engine to make a mess here.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#10 Опубликовано: 13.08.2019 09:49:55
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Thank you your replies.
But I still have same problem.


Hello Novice ...
I can't see what you are attempting.
Are you trying to fit a model function to a data set ?
If so: just attach the data set, some smart cat will exercise.
A maths document that has no hint about ... Oh !


#11 Опубликовано: 13.08.2019 11:03:24
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I think something is wrong here in the numeric/symbolic engine of SMath which causes those errors.
Version "0.99.7109"


From observation in many more SS 7109, the indexing is freaked.
Doctored in pink SS 6179.

exponential_max_err_v03.sm (17 КиБ) скачан 28 раз(а).



#12 Опубликовано: 13.08.2019 11:08:02
MSL

MSL

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

Группа: User

Dear jean,


I'm just doing the calculation of an ANS standard example.

Fa_calc.PNG

I think this problem is a kind of overflow of exponential function.
As you know if X is greater than the 709.783 then the value of exp(X) is overflown.
So I believe that SMath should do something to check the nominal boundaries of special functions (exponential, logarithmic etc.)
Thank you!


regards,

MS
#13 Опубликовано: 13.08.2019 11:34:52
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

I think this problem is a kind of overflow of exponential function.
As you know if X is greater than the 709.783 then the value of exp(X) is overflown.
So I believe that SMath should do something to check the nominal boundaries of special functions (exponential, logarithmic etc.)
Thank you!


Thanks for the hint.
Functions that overflow can be managed otherwise.
About that project, just give the X,Y data you want to fit.
Smath reports overflow as "max value ..."
All those math functions aren't Smath, rather from numerical library
as implemented in Microsoft and other maths tools.

Ah! I can see XY pairs coming soon.

Cheers ... Jean

#14 Опубликовано: 13.08.2019 13:08:21
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Wrote

Wrote

I think something is wrong here in the numeric/symbolic engine of SMath which causes those errors.
Version "0.99.7109"


From observation in many more SS 7109, the indexing is freaked.
Doctored in pink SS 6179.

exponential_max_err_v03.sm (17 КиБ) скачан 28 раз(а).



Still confused...

smallnumbers.png

exponential_max_err_v03-corr.sm (31 КиБ) скачан 27 раз(а).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#15 Опубликовано: 13.08.2019 16:19:16
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Still confused...


Doctored a bit SS 6179 ... No red in No time.

exponential_max_err_v03-corr.sm (32 КиБ) скачан 31 раз(а).

#16 Опубликовано: 13.08.2019 17:03:20
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Doctored a bit SS 6179 ... No red in No time.


... from there => what's next step ?

fromThere.PNG

exponential_max_err_v03-corr [Next].sm (39 КиБ) скачан 25 раз(а).
#17 Опубликовано: 13.08.2019 21:27:11
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

... from there what's next =


... does the suite in green makes sense ?

Conert2maths.PNG

That mystic formula has to be put in executable maths

exponential_max_err_v03-corr [Next-Suite].sm (160 КиБ) скачан 31 раз(а).
#18 Опубликовано: 14.08.2019 01:17:41
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

That mystic formula has to be put in executable maths


Please, check my interpretation.

fissileStem.PNG

exponential_max_err_v03-corr [Next-Suite].sm (185 КиБ) скачан 23 раз(а).
#19 Опубликовано: 14.08.2019 03:20:01
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Wrote

Wrote

Still confused...


Doctored a bit SS 6179 ... No red in No time.

exponential_max_err_v03-corr.sm (32 КиБ) скачан 31 раз(а).


Still red for me...

stillred.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#20 Опубликовано: 14.08.2019 10:04:59
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

Still red for me...


Radovan, mon ami ... you must feel Sysyphus on that boulder !

I figure the all project is as simple as in the attached SS 6179.
Novice didn't give enough ... wait and see.
On the other hand your red is for Grand Doctor Andrey.

Jean

Fission.sm (133 КиБ) скачан 24 раз(а).

  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений