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: 12/12/2023 9:45:18 PM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

Predochistka.sm (54 KiB) downloaded 33 time(s).
#2 Posted: 12/12/2023 10:47:04 PM
StvMath

StvMath

35 likes in 56 posts.

Group: User

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

Alvaro Diaz Falconi

992 likes in 1674 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: 12/14/2023 2:10:49 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 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 KiB) downloaded 20 time(s).
#5 Posted: 12/14/2023 9:55:40 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 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 KiB) downloaded 23 time(s).

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

Valery Ochkov

55 likes in 633 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 KiB) downloaded 23 time(s).

Best regards.
Alvaro.



I call the function one more and get an error. Why?
Predochistka-Err.png
Predochistka-Err.sm (62 KiB) downloaded 20 time(s).
#7 Posted: 12/14/2023 6:47:46 PM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 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: 12/15/2023 12:12:53 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 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: 12/15/2023 2:50:01 AM
Valery Ochkov

Valery Ochkov

55 likes in 633 posts.

Group: User

It will be good to have
LV.png

  • New Posts New Posts
  • No New Posts No New Posts