error: result is above max

error: result is above max - 消息

#1 已发布: 2021/5/28 10:21:06
takeo kusumi

takeo kusumi

0个赞,共3个帖子。

组: 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.02 KiB)已下载 1230 次。
#2 已发布: 2021/5/28 10:39:29
overlord

overlord

600个赞,共1,381个帖子。

组: 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 已发布: 2021/5/28 15:27:57
takeo kusumi

takeo kusumi

0个赞,共3个帖子。

组: User

Thank you
I understand the cause of the error
#4 已发布: 2021/5/28 18:40:26
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2021/5/28 20:33:21
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2021/5/28 20:55:57
takeo kusumi

takeo kusumi

0个赞,共3个帖子。

组: 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.46 KiB)已下载 1233 次。

PP2.sm (167.69 KiB)已下载 1236 次。
#7 已发布: 2021/5/29 10:50:48
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2021/5/29 12:11:55
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: 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.46 KiB)已下载 1233 次。

PP2.sm (167.69 KiB)已下载 1236 次。



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 已发布: 2021/5/29 12:33:20
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Razonar's is the correct solution.
Deleting my post.
1位用户喜欢此帖子
Alvaro 2021/5/29 17:56:00
  • 有新帖
  • 无新帖