Why we have an error in this SM-sheet

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

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

Valery Ochkov

67 me gusta en 713 mensajes.

Grupo: User

Predochistka.sm (54,45 KiB) descargado 1454 vez(es).
#2 Publicado: 12/12/2023 22:47:04
StvMath

StvMath

44 me gusta y 1 no me gusta en 76 mensajes.

Grupo: User

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

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: User

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

Best regards.
Alvaro.
#4 Publicado: 14/12/2023 2:10:49
Valery Ochkov

Valery Ochkov

67 me gusta en 713 mensajes.

Grupo: 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) descargado 1474 vez(es).
#5 Publicado: 14/12/2023 9:55:40
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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) descargado 1461 vez(es).

Best regards.
Alvaro.
A 1 usuarios les gustó este mensaje
Valery Ochkov 14/12/2023 15:09:00
#6 Publicado: 14/12/2023 16:10:57
Valery Ochkov

Valery Ochkov

67 me gusta en 713 mensajes.

Grupo: 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) descargado 1461 vez(es).

Best regards.
Alvaro.



I call the function one more and get an error. Why?
Predochistka-Err.png
Predochistka-Err.sm (62,61 KiB) descargado 1475 vez(es).
#7 Publicado: 14/12/2023 18:47:46
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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 Publicado: 15/12/2023 0:12:53
Valery Ochkov

Valery Ochkov

67 me gusta en 713 mensajes.

Grupo: 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 Publicado: 15/12/2023 2:50:01
Valery Ochkov

Valery Ochkov

67 me gusta en 713 mensajes.

Grupo: User

It will be good to have
LV.png

  • Nuevos mensajes
  • Sin mensajes nuevos