Unit or user error?

Unit or user error? - Messages

#1 Posted: 11/29/2022 9:31:40 AM
Roger

Roger

0 likes in 4 posts.

Group: User

Hi all!

Why do b not compute unless I have the formula in the bottom? What am I missing or is it a flaw in SMath?

SMath v 1.0 build 8348.

Unit error.sm (66 KiB) downloaded 62 time(s).

Thanks,
Roger
#2 Posted: 11/29/2022 10:32:18 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

This is because at definition time, d.2 has an incorrect (unitless) value. Note that embedded definitions in text regions are as valid as in separate math regions.

The symbolic definition is stored using the existing value of d.2 so that subsequent changes of d.2 don't affect the result any more.

You either use the correct value in the text or you change the assignment operator to boolean equal.

2022-11-29 14_28_05-SMath Solver 1.0.8253 - [Unit error.sm_].png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#3 Posted: 11/29/2022 11:00:23 AM
⚜ Kenny Lemens, P.E. ᵂᴵ

⚜ Kenny Lemens, P.E. ᵂᴵ

74 likes in 164 posts.

Group: User

Roger,

SMath allows you to declare math variables/evaluations within a text element. Thus, for the text: "use d₂ := 10⁹ or other large number;" d₂ was actually treated as a Mathematical evaluation. Just remove the d₂ := 10⁹ declaration and your sheet will start behaving correctly.


- Kenny Lemens, P.E. ᵂᴵ
"No matter where you go, there you are." -Buckaroo BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
#4 Posted: 11/29/2022 11:15:12 AM
Roger

Roger

0 likes in 4 posts.

Group: User

Understood, thanks guys!
  • New Posts New Posts
  • No New Posts No New Posts