error: result is above max

error: result is above max - Messages

#1 Posted: 5/28/2021 10:21:06 AM
takeo kusumi

takeo kusumi

0 likes in 3 posts.

Group: User

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 (34 KiB) downloaded 30 time(s).
#2 Posted: 5/28/2021 10:39:29 AM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

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
#3 Posted: 5/28/2021 3:27:57 PM
takeo kusumi

takeo kusumi

0 likes in 3 posts.

Group: User

Thank you
I understand the cause of the error
#4 Posted: 5/28/2021 6:40:26 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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

#5 Posted: 5/28/2021 8:33:21 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

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
#6 Posted: 5/28/2021 8:55:57 PM
takeo kusumi

takeo kusumi

0 likes in 3 posts.

Group: User

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 (176 KiB) downloaded 25 time(s).

PP2.sm (167 KiB) downloaded 22 time(s).
#7 Posted: 5/29/2021 10:50:48 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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.
#8 Posted: 5/29/2021 12:11:55 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Wrote

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 (176 KiB) downloaded 25 time(s).

PP2.sm (167 KiB) downloaded 22 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.
#9 Posted: 5/29/2021 12:33:20 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Razonar's is the correct solution.
Deleting my post.
1 users liked this post
Alvaro Diaz Falconi 5/29/2021 5:56:00 PM
  • New Posts New Posts
  • No New Posts No New Posts