Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

3 Pages123>
Options
Go to last post Go to first unread
Offline Novice  
#1 Posted : 09 August 2019 14:17:45(UTC)
Novice


Rank: Member

Groups: Registered
Joined: 15/05/2016(UTC)
Posts: 19
Korea, Republic Of
Location: Daejeon

Was thanked: 1 time(s) in 1 post(s)
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 (13kb) downloaded 14 time(s).
Offline Jean Giraud  
#2 Posted : 09 August 2019 16:09:38(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,969
Canada

Was thanked: 708 time(s) in 554 post(s)
Originally Posted by: Novice Go to Quoted Post
How I resolve this kind of errors?

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

exponential_max_err_v0.sm (13kb) downloaded 11 time(s).
Offline Razonar  
#3 Posted : 10 August 2019 06:44:37(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 385
Uruguay

Was thanked: 194 time(s) in 119 post(s)
Originally Posted by: Novice Go to Quoted Post
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 (14kb) downloaded 7 time(s).

Best regards.
Alvaro.
Offline Jean Giraud  
#4 Posted : 10 August 2019 15:08:37(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,969
Canada

Was thanked: 708 time(s) in 554 post(s)
... more doctoring in the *.sm attached
1. local definition mode
2. index piece wise

ExpTest.PNG

exponential_max_err_v0 (1).sm (25kb) downloaded 3 time(s).
Offline Jean Giraud  
#5 Posted : 10 August 2019 15:39:30(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,969
Canada

Was thanked: 708 time(s) in 554 post(s)
Originally Posted by: Razonar Go to Quoted Post
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 !
Offline Novice  
#6 Posted : 13 August 2019 05:43:12(UTC)
Novice


Rank: Member

Groups: Registered
Joined: 15/05/2016(UTC)
Posts: 19
Korea, Republic Of
Location: Daejeon

Was thanked: 1 time(s) in 1 post(s)
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 (19kb) downloaded 5 time(s).

Offline Razonar  
#7 Posted : 13 August 2019 07:08:10(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 385
Uruguay

Was thanked: 194 time(s) in 119 post(s)
Hi. Yes, it's hard to drive those calculations. Try to avoid sum(1) too:

Clipboard1.gif

Best regards.
Alvaro
thanks 1 user thanked Razonar for this useful post.
on 13/08/2019(UTC)
Offline alisonparker  
#8 Posted : 13 August 2019 10:13:24(UTC)
alisonparker

Rank: Newbie

Groups: Registered
Joined: 09/08/2019(UTC)
Posts: 2
Armenia
Location: London

Originally Posted by: Novice Go to Quoted Post
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 (13kb) downloaded 14 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
Offline omorr  
#9 Posted : 13 August 2019 10:35:54(UTC)
omorr


Rank: Administration

Groups: Registered, Administrators, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,730
Man
Serbia

Was thanked: 311 time(s) in 265 post(s)
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 Crazy . 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

Edited by user 13 August 2019 12:36:49(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Jean Giraud  
#10 Posted : 13 August 2019 15:49:55(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,969
Canada

Was thanked: 708 time(s) in 554 post(s)
Originally Posted by: Novice Go to Quoted Post
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 !


Offline Jean Giraud  
#11 Posted : 13 August 2019 17:03:24(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,969
Canada

Was thanked: 708 time(s) in 554 post(s)
Originally Posted by: omorr Go to Quoted Post
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 (18kb) downloaded 2 time(s).



Offline Novice  
#12 Posted : 13 August 2019 17:08:02(UTC)
Novice


Rank: Member

Groups: Registered
Joined: 15/05/2016(UTC)
Posts: 19
Korea, Republic Of
Location: Daejeon

Was thanked: 1 time(s) in 1 post(s)
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

Edited by user 14 August 2019 03:57:06(UTC)  | Reason: Not specified

Offline Jean Giraud  
#13 Posted : 13 August 2019 17:34:52(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,969
Canada

Was thanked: 708 time(s) in 554 post(s)
Originally Posted by: Novice Go to Quoted Post
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

Offline omorr  
#14 Posted : 13 August 2019 19:08:21(UTC)
omorr


Rank: Administration

Groups: Registered, Administrators, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,730
Man
Serbia

Was thanked: 311 time(s) in 265 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: omorr Go to Quoted Post
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 (18kb) downloaded 2 time(s).



Still confused...Unsure

smallnumbers.png

exponential_max_err_v03-corr.sm (32kb) downloaded 6 time(s).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Jean Giraud  
#15 Posted : 13 August 2019 22:19:16(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,969
Canada

Was thanked: 708 time(s) in 554 post(s)
Originally Posted by: omorr Go to Quoted Post
Still confused...

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

exponential_max_err_v03-corr.sm (33kb) downloaded 5 time(s).

Offline Jean Giraud  
#16 Posted : 13 August 2019 23:03:20(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,969
Canada

Was thanked: 708 time(s) in 554 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
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 (40kb) downloaded 1 time(s).
Offline Jean Giraud  
#17 Posted : 14 August 2019 03:27:11(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,969
Canada

Was thanked: 708 time(s) in 554 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
... 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 (161kb) downloaded 5 time(s).
Offline Jean Giraud  
#18 Posted : 14 August 2019 07:17:41(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,969
Canada

Was thanked: 708 time(s) in 554 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
That mystic formula has to be put in executable maths

Please, check my interpretation.

fissileStem.PNG

exponential_max_err_v03-corr [Next-Suite].sm (186kb) downloaded 2 time(s).
Offline omorr  
#19 Posted : 14 August 2019 09:20:01(UTC)
omorr


Rank: Administration

Groups: Registered, Administrators, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,730
Man
Serbia

Was thanked: 311 time(s) in 265 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: omorr Go to Quoted Post
Still confused...

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

exponential_max_err_v03-corr.sm (33kb) downloaded 5 time(s).


Still red for me...

stillred.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Jean Giraud  
#20 Posted : 14 August 2019 16:04:59(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 3,969
Canada

Was thanked: 708 time(s) in 554 post(s)
Originally Posted by: omorr Go to Quoted Post
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 (134kb) downloaded 8 time(s).

Users browsing this topic
Similar Topics
[SS-3575] Potential-exponential function error (Bugs & Problems)
by Razonar 15/10/2018 19:08:46(UTC)
3 Pages123>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.