An error at user functions

An error at user functions - Help please! - Messages

#1 Posted: 2026/5/22 16:47:56
Valery Ochkov

Valery Ochkov

66 likes in 682 posts.

Group: User

See the end of the sheet.
iapws-1995.png
iapws-1995.sm (220.46 KiB) downloaded 106 time(s).
Edited 2026/5/22 17:26:14
#2 Posted: 2026/5/23 05:08:54
Alvaro

Alvaro

1,106 likes in 1,784 posts.

Group: User

Hi. Use line(#) for prevent the evaluation.

image.png

iapws-1995.sm (220.77 KiB) downloaded 116 time(s).

Best regards.
Alvaro.
2 users liked this post
Valery Ochkov 2026/5/23 08:36:01, Andrey Ivashov 2026/5/23 17:12:56
#3 Posted: 2026/5/23 08:36:34
Valery Ochkov

Valery Ochkov

66 likes in 682 posts.

Group: User

Thanks and why?
#4 Posted: 2026/5/23 11:03:47
overlord

overlord

597 likes in 1,377 posts.

Group: Moderator

This happens because your i is not empty.
Try to clear it or use something different for sum iteration.
j would be appropriate.

Regards

2026-05-23_13-59.png
2 users liked this post
Andrey Ivashov 2026/5/23 11:18:20, sergio 2026/5/23 17:20:38
#5 Posted: 2026/5/23 11:19:15
Andrey Ivashov

Andrey Ivashov

2,326 likes in 4,013 posts.

Group: Super Administrator

Thank you overlord!

Another way is to use line() at the rhs:
image.png

Best regards.
#6 Posted: 2026/5/23 16:18:22
overlord

overlord

597 likes in 1,377 posts.

Group: Moderator

Don't know if this is a bug or limitation.
But when formula assigned to variable or used directly, it can be calculated.
When assigned to a function, it can't be parsed.

Regards

2026-05-23_19-16.png
  • New Posts
  • No New Posts