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 takez  
#1 Posted : 28 May 2021 16:21:06(UTC)
takez

Rank: Newbie

Groups: Registered
Joined: 14/05/2021(UTC)
Posts: 3
Japan

hi,
I'm a beginner
I get an error in the calculation

error :
result is above max. Allowed positive number

How can I solve it?

impedance.sm (35kb) downloaded 10 time(s).

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

Offline overlord  
#2 Posted : 28 May 2021 16:39:29(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 508 time(s) in 338 post(s)
Originally Posted by: takez Go to Quoted Post
hi,
I'm a beginner
I get an error in the calculation

error :
result is above max. Allowed positive number

How can I solve it?

Change your calculation result from symbolic to numeric.
You can do it with eval() since they are all numbers.

Regards

2021-05-28_16-37.png
Offline takez  
#3 Posted : 28 May 2021 21:27:57(UTC)
takez

Rank: Newbie

Groups: Registered
Joined: 14/05/2021(UTC)
Posts: 3
Japan

Thank you
I understand the cause of the error
Offline Jean Giraud  
#4 Posted : 29 May 2021 00:40:26(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: takez Go to Quoted Post
I understand the cause of the error

eval() is a general rule but an absolute rule.
Many projects fail from eval(,).
SS 6179 does not complain as you constructed.
eval(,) is applied afterwards to isolate/accelerate.

Eval(-).PNG

Offline Jean Giraud  
#5 Posted : 29 May 2021 02:33:21(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)
Good application case to globalize within the program.
... in my SS 6179 timing drops from 2.6 s down to 1.6 s

Eval Otherwise.PNG
Offline takez  
#6 Posted : 29 May 2021 02:55:57(UTC)
takez

Rank: Newbie

Groups: Registered
Joined: 14/05/2021(UTC)
Posts: 3
Japan

Thank you.
I was able to calculate the frequency characteristics
(PP2.sm)

But when I modify a circuit, I get an error even with eval.
(PPS.sm)
it's very difficult.

PPS.sm (177kb) downloaded 9 time(s).

PP2.sm (168kb) downloaded 7 time(s).
Offline Jean Giraud  
#7 Posted : 29 May 2021 16:50:48(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: takez Go to Quoted Post
Thank you.
I was able to calculate the frequency characteristics
(PP2.sm)
But when I modify a circuit, I get an error even with eval.
(PPS.sm)
it's very difficult.

... sorry, can't help: this document opens freak SS 6179.
You seem to put too much that can't be debugged piece wise.
Offline Razonar  
#8 Posted : 29 May 2021 18:11:55(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: takez Go to Quoted Post
Thank you.
I was able to calculate the frequency characteristics
(PP2.sm)

But when I modify a circuit, I get an error even with eval.
(PPS.sm)
it's very difficult.

PPS.sm (177kb) downloaded 9 time(s).

PP2.sm (168kb) downloaded 7 time(s).


Hi Takez. Yes, it's very difficult recognize or even guess where the program needs some evals. Also, putting them everywhere make unreadable the procedures. In the case of your PPS.sm that's SMath stores into Z without eval

Clipboard02.jpg

and this with it

Clipboard01.jpg

So, for PPS.sm there is where you need to use eval, and seems that then all other calculations works.

Best regards
Alvaro.
Offline overlord  
#9 Posted : 29 May 2021 18:33:20(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,128
Turkey

Was thanked: 508 time(s) in 338 post(s)
Razonar's is the correct solution.
Deleting my post.
thanks 1 user thanked overlord for this useful post.
on 29/05/2021(UTC)
Users browsing this topic
Guest
Similar Topics
Ignore units or Error: Result is above max.allowed positive number (Bugs & Problems)
by radex 15/12/2015 22:19:07(UTC)
Error: Result is above max allowed positive number (Bugs & Problems)
by datsnl 15/05/2013 08:30:46(UTC)
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.