Why we have an error in this SM-sheet

Why we have an error in this SM-sheet - In Mathcad Prime all is OK - Messages

#1 Posted: 2023/12/12 21:45:18
Valery Ochkov

Valery Ochkov

64 likes in 670 posts.

Group: User

Predochistka.sm (54.45 KiB) downloaded 828 time(s).
#2 Posted: 2023/12/12 22:47:04
StvMath

StvMath

43 likes and 1 dislikes in 68 posts.

Group: User

t is undefined. And why do you have [SO₄‾‾].исх as an argument twice?
#3 Posted: 2023/12/13 00:21:50
Alvaro

Alvaro

1,078 likes in 1,749 posts.

Group: User

Hi. For starting, the vertical bars in the while condition are not for absolute value, but for determinant.

Best regards.
Alvaro.
#4 Posted: 2023/12/14 02:10:49
Valery Ochkov

Valery Ochkov

64 likes in 670 posts.

Group: User

Wrote

Hi. For starting, the vertical bars in the while condition are not for absolute value, but for determinant.

Best regards.
Alvaro.



Thanks, Alvaro!
I have corrected but new error message
Predochistka.sm (59.97 KiB) downloaded 798 time(s).
#5 Posted: 2023/12/14 09:55:40
Alvaro

Alvaro

1,078 likes in 1,749 posts.

Group: User

Hi Valery. I guess that it has some minor issues about units and with variable redefinitions inside of the body of procedures.

Predochistka.sm (65.34 KiB) downloaded 812 time(s).

Best regards.
Alvaro.
1 users liked this post
Valery Ochkov 2023/12/14 15:09:00
#6 Posted: 2023/12/14 16:10:57
Valery Ochkov

Valery Ochkov

64 likes in 670 posts.

Group: User

Wrote

Hi Valery. I guess that it has some minor issues about units and with variable redefinitions inside of the body of procedures.

Predochistka.sm (65.34 KiB) downloaded 812 time(s).

Best regards.
Alvaro.



I call the function one more and get an error. Why?
Predochistka-Err.png
Predochistka-Err.sm (62.61 KiB) downloaded 812 time(s).
#7 Posted: 2023/12/14 18:47:46
Alvaro

Alvaro

1,078 likes in 1,749 posts.

Group: User

You redefine some function arguments inside the function body. That change its values globally:

err.png

See the green area in the document. Also, as an example:

err2.png

Best regards.
#8 Posted: 2023/12/15 00:12:53
Valery Ochkov

Valery Ochkov

64 likes in 670 posts.

Group: User

Wrote

You redefine some function arguments inside the function body. That change its values globally:

err.png

See the green area in the document. Also, as an example:

err2.png

Best regards.


Prime
ans.png

#9 Posted: 2023/12/15 02:50:01
Valery Ochkov

Valery Ochkov

64 likes in 670 posts.

Group: User

It will be good to have
LV.png

  • New Posts
  • No New Posts