Why we have an error in this SM-sheet

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

#1 已发布: 2023/12/12 21:45:18
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

Predochistka.sm (54.45 KiB)已下载 1476 次。
#2 已发布: 2023/12/12 22:47:04
StvMath

StvMath

44个赞和1个踩,共76个帖子。

组: User

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

Alvaro

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

组: User

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

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

Valery Ochkov

67个赞,共716个帖子。

组: 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)已下载 1499 次。
#5 已发布: 2023/12/14 09:55:40
Alvaro

Alvaro

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

组: 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)已下载 1482 次。

Best regards.
Alvaro.
1位用户喜欢此帖子
Valery Ochkov 2023/12/14 15:09:00
#6 已发布: 2023/12/14 16:10:57
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: 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)已下载 1482 次。

Best regards.
Alvaro.



I call the function one more and get an error. Why?
Predochistka-Err.png
Predochistka-Err.sm (62.61 KiB)已下载 1497 次。
#7 已发布: 2023/12/14 18:47:46
Alvaro

Alvaro

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

组: 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 已发布: 2023/12/15 00:12:53
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: 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 已发布: 2023/12/15 02:50:01
Valery Ochkov

Valery Ochkov

67个赞,共716个帖子。

组: User

It will be good to have
LV.png

  • 有新帖
  • 无新帖