exponential function error

exponential function error - Result is above the max. allowed positive number error - Messages

#1 Posted: 8/9/2019 8:17:45 AM
MSL

MSL

1 likes in 22 posts.

Group: 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 KiB) downloaded 42 time(s).
#2 Posted: 8/9/2019 10:09:38 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

How I resolve this kind of errors?


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

exponential_max_err_v0.sm (12 KiB) downloaded 32 time(s).
#3 Posted: 8/10/2019 12:44:37 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: 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 KiB) downloaded 34 time(s).

Best regards.
Alvaro.
#4 Posted: 8/10/2019 9:08:37 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

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

ExpTest.PNG

exponential_max_err_v0 (1).sm (24 KiB) downloaded 30 time(s).
#5 Posted: 8/10/2019 9:39:30 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 8/12/2019 11:43:12 PM
MSL

MSL

1 likes in 22 posts.

Group: 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 KiB) downloaded 30 time(s).

#7 Posted: 8/13/2019 1:08:10 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

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

Clipboard1.gif

Best regards.
Alvaro
1 users liked this post
MSL 8/13/2019 11:09:00 AM
#8 Posted: 8/13/2019 4:13:24 AM
alisonparker

alisonparker

0 likes in 2 posts.

Group: 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 KiB) downloaded 42 time(s).



I am getting error "Result is above max allowed positive number",too! And l don't know how to solve it.Function error
#9 Posted: 8/13/2019 4:35:54 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: 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 Posted: 8/13/2019 9:49:55 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 8/13/2019 11:03:24 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 31 time(s).



#12 Posted: 8/13/2019 11:08:02 AM
MSL

MSL

1 likes in 22 posts.

Group: 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 Posted: 8/13/2019 11:34:52 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 8/13/2019 1:08:21 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: 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 KiB) downloaded 31 time(s).



Still confused...

smallnumbers.png

exponential_max_err_v03-corr.sm (31 KiB) downloaded 28 time(s).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#15 Posted: 8/13/2019 4:19:16 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Still confused...


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

exponential_max_err_v03-corr.sm (32 KiB) downloaded 32 time(s).

#16 Posted: 8/13/2019 5:03:20 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 25 time(s).
#17 Posted: 8/13/2019 9:27:11 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 31 time(s).
#18 Posted: 8/14/2019 1:17:41 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 23 time(s).
#19 Posted: 8/14/2019 3:20:01 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Wrote

Wrote

Still confused...


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

exponential_max_err_v03-corr.sm (32 KiB) downloaded 32 time(s).


Still red for me...

stillred.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#20 Posted: 8/14/2019 10:04:59 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 KiB) downloaded 25 time(s).

  • New Posts New Posts
  • No New Posts No New Posts