Absolute definitions?

Absolute definitions? - How do I make them? - Messages

#1 Posted: 1/2/2021 3:03:20 PM
Dudebro

Dudebro

0 likes in 3 posts.

Group: User

Hello and the obligatory THANK YOU for making a working symbolic math program!

In MathCAD I regularly make calc sheets with input and output at the top, and the calculations collected below.

For this I use the ~ tilde, which MathCAD turns into a ≡ which allows variables to be displayed above their definitions.

I see here that such a feature should be available in SMath Studio, but I don't succeed getting it to work.

https://en.smath.com/forum/yaf_postst1348_Absolute-definitions.aspx

Is there something I misunderstand?

I type like A ~ 5 but all I get is a text string like A~5.

I did try the Alt + 0126 thing, no difference.

I suspect it has something to do with the scroll menu that appears if I only type ~, but that does not seem to make much of a difference either. If I define ABC := 5 and then type ~ I can choose ABC in that menu, but from there on the behavior is the same.

Does it have anything to do with my swedish keymap? To get the tilde, I use AltGr plus one of those buttons that do not generate a character immediately but waits until the next button is pressed. " ^ ~ are all generated by pressing that key plus space, SHIFT plus that key plus space, AltGr plus that key plus space.
#2 Posted: 1/2/2021 3:43:27 PM
Dudebro

Dudebro

0 likes in 3 posts.

Group: User

Oh. Never mind. I accidentally found out that I need to type tilde, then define the variable which then get bolded.

Then I need to type tilde and TAB-choose the variable from the list, which also bolds the text. If not, then it's wrong.

So now it works. Great! Thanks again!

#3 Posted: 1/2/2021 3:44:29 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

In Mathcad you have a special type of assignment, in SMath you have a special type of variable.

If the variable name starts with a tilde than assignments to it are known also above the definition. In your example, you need to type ~A:5

Absolute variables are displayed in boldface.

Blatt5.png
Blatt5.sm (2 KiB) downloaded 46 time(s).

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#4 Posted: 1/3/2021 11:15:30 AM
Dudebro

Dudebro

0 likes in 3 posts.

Group: User

I understand. Thank you very much!
  • New Posts New Posts
  • No New Posts No New Posts