exponential function error

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

#1 Objavljeno: 9. 8. 2019. 08:17:45
MSL

MSL

1 svidjanja u 22 postova.

Grupa: 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,83 KiB) preuzeto 1190 put(ova).
#2 Objavljeno: 9. 8. 2019. 10:09:38
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

How I resolve this kind of errors?


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

exponential_max_err_v0.sm (12,26 KiB) preuzeto 1193 put(ova).
#3 Objavljeno: 10. 8. 2019. 00:44:37
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: 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,37 KiB) preuzeto 1229 put(ova).

Best regards.
Alvaro.
#4 Objavljeno: 10. 8. 2019. 09:08:37
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

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

ExpTest.PNG

exponential_max_err_v0 (1).sm (24,22 KiB) preuzeto 1209 put(ova).
#5 Objavljeno: 10. 8. 2019. 09:39:30
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 12. 8. 2019. 23:43:12
MSL

MSL

1 svidjanja u 22 postova.

Grupa: 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,91 KiB) preuzeto 1210 put(ova).

#7 Objavljeno: 13. 8. 2019. 01:08:10
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

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

Clipboard1.gif

Best regards.
Alvaro
1 korisnika je svidelo ovu objavu
MSL 13. 8. 2019. 11:09:00
#8 Objavljeno: 13. 8. 2019. 04:13:24
alisonparker

alisonparker

0 svidjanja u 2 postova.

Grupa: 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,83 KiB) preuzeto 1190 put(ova).



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

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: 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 Objavljeno: 13. 8. 2019. 09:49:55
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 13. 8. 2019. 11:03:24
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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,79 KiB) preuzeto 1182 put(ova).



#12 Objavljeno: 13. 8. 2019. 11:08:02
MSL

MSL

1 svidjanja u 22 postova.

Grupa: 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 Objavljeno: 13. 8. 2019. 11:34:52
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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 Objavljeno: 13. 8. 2019. 13:08:21
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: 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,79 KiB) preuzeto 1182 put(ova).



Still confused...

smallnumbers.png

exponential_max_err_v03-corr.sm (31,47 KiB) preuzeto 1217 put(ova).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#15 Objavljeno: 13. 8. 2019. 16:19:16
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

Still confused...


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

exponential_max_err_v03-corr.sm (32,81 KiB) preuzeto 1195 put(ova).

#16 Objavljeno: 13. 8. 2019. 17:03:20
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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,26 KiB) preuzeto 1045 put(ova).
#17 Objavljeno: 13. 8. 2019. 21:27:11
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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,47 KiB) preuzeto 1099 put(ova).
#18 Objavljeno: 14. 8. 2019. 01:17:41
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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,37 KiB) preuzeto 1035 put(ova).
#19 Objavljeno: 14. 8. 2019. 03:20:01
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: Moderator

Wrote

Wrote

Still confused...


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

exponential_max_err_v03-corr.sm (32,81 KiB) preuzeto 1195 put(ova).


Still red for me...

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

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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,59 KiB) preuzeto 1153 put(ova).

  • Novi postovi
  • Nema novih postova