Why we have an error in this SM-sheet

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

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

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: User

Predochistka.sm (54,45 KiB) scaricato 1456 volta(e).
#2 Pubblicato: 12/12/2023 22:47:04
StvMath

StvMath

44 apprezzamenti e 1 disapprezzamenti in 76 post.

Gruppo: User

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

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: User

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

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

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: 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) scaricato 1477 volta(e).
#5 Pubblicato: 14/12/2023 09:55:40
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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) scaricato 1464 volta(e).

Best regards.
Alvaro.
1 utenti hanno apprezzato questo post
Valery Ochkov 14/12/2023 15:09:00
#6 Pubblicato: 14/12/2023 16:10:57
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: 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) scaricato 1464 volta(e).

Best regards.
Alvaro.



I call the function one more and get an error. Why?
Predochistka-Err.png
Predochistka-Err.sm (62,61 KiB) scaricato 1477 volta(e).
#7 Pubblicato: 14/12/2023 18:47:46
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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 Pubblicato: 15/12/2023 00:12:53
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: 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 Pubblicato: 15/12/2023 02:50:01
Valery Ochkov

Valery Ochkov

67 apprezzamenti in 713 post.

Gruppo: User

It will be good to have
LV.png

  • Nuovi post
  • Nessun nuovo post