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 Alex M.  
#1 Posted : 01 February 2016 07:22:24(UTC)
Alex M.


Rank: Advanced Member

Groups: Registered
Joined: 03/03/2014(UTC)
Posts: 418
Canada

Was thanked: 125 time(s) in 96 post(s)
Hey guys,

I was working on a very long custom function that I will need to use in short 9 hours (in the morning after I will wake up) and got this error at the end "result is above max. positive number".

Error shows itself if for function input I use larger matrix (see workbook for details).

Could you help please?

Thank you!


Error.sm (76kb) downloaded 25 time(s).

Edited by moderator 21 May 2016 02:24:46(UTC)  | Reason: marked as solved

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

Offline Ernesto  
#2 Posted : 01 February 2016 08:15:21(UTC)
Ernesto


Rank: Advanced Member

Groups: Registered
Joined: 03/02/2014(UTC)
Posts: 67
Nicaragua

Was thanked: 13 time(s) in 11 post(s)
Got it working. I added eval() over pretty much all the operations of that huge function. I don't think they all required it, but it would've taken time to sort that out. Might want to double check I didn't accidentally change a line.

Good luck.


Error.sm (78kb) downloaded 32 time(s).
thanks 1 user thanked Ernesto for this useful post.
on 01/02/2016(UTC)
Offline Alex M.  
#3 Posted : 01 February 2016 10:25:03(UTC)
Alex M.


Rank: Advanced Member

Groups: Registered
Joined: 03/03/2014(UTC)
Posts: 418
Canada

Was thanked: 125 time(s) in 96 post(s)
Originally Posted by: Ernesto Go to Quoted Post
Got it working. I added eval() over pretty much all the operations of that huge function. I don't think they all required it, but it would've taken time to sort that out. Might want to double check I didn't accidentally change a line.

Good luck.


Error.sm (78kb) downloaded 32 time(s).


Thank you very much, Ernesto. I had no clue eval() would make such a huge difference. I'm all set for tomorrow (or should I say for today).

Offline Jean Giraud  
#4 Posted : 01 February 2016 15:11:29(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Alex.M Go to Quoted Post
Thank you very much, Ernesto. I had no clue eval() would make such a huge difference. I'm all set for tomorrow (or should I say for today).

_________________________

I visited both work sheets. The first one didn't show any error message.
The Sigma is always suspicious. In one of my applications it is limited
to N = 11. In another application [Ksmooth] it did correct up to N = 24.
Same "Ksmooth", I tried on longer data set and failed. "Ksmooth" consumes
enormous amout of computing power, even Mathcad 11 pedals !
My understanding of "Result is above of max allowed positive number"
the execution stack is full, like in the older HP calculator. My next
understanding is that eval(,) computes intermediate results, thus reducing
the length of the stack. That's what my "finger meter" tells me.

Cheers, Jean



thanks 1 user thanked Jean Giraud for this useful post.
on 21/05/2016(UTC)
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.