Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline verro  
#1 Posted : 27 November 2010 13:53:34(UTC)
verro

Rank: Newbie

Groups: Registered
Joined: 21/11/2010(UTC)
Posts: 2

Hi,

At the end of a - rather large - file I try to sum up 3 variables into a result-variable
and print out this result.
All variables have values between 0 and 2.
Much to my surprise, an error occurs : "Result is above max.allowed positive number"
I also sent a mail with attached file to support@smath.info

P.S. : I already noted that by applying the "round" function to certain variables within the
sheet, the problem disappears. Is this a viable work-around?

Kind regards,

Roger Verhasselt
Belgium

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline omorr  
#2 Posted : 27 November 2010 15:05:21(UTC)
omorr


Rank: Administration

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

Was thanked: 318 time(s) in 268 post(s)
Hello Roger,

I do not know what the actual problem was but I think there is a general rule in SMath regarding the error: "Result is above max.allowed positive number".
It seems that almost everything goes trough the symbolic SMath processor first ( we do not know what is "under the hood" ). If the numerical calculation does not go as expected one could try to change "Optimization" options of the problematic region, to use eval() function or some other function which returns numerical results (like round()). It might help some times.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Andrey Ivashov  
#3 Posted : 27 November 2010 15:13:03(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Absolutely correct.
Offline verro  
#4 Posted : 27 November 2010 17:59:13(UTC)
verro

Rank: Newbie

Groups: Registered
Joined: 21/11/2010(UTC)
Posts: 2

Hi,

Thank you for the quick reply.
Setting the optimization to "none" for the entire sheet solved the problem, even without using the "round" function.

Regards,

Roger
Users browsing this topic
Guest
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.