Absolute definitions

Absolute definitions - Сообщения

#1 Опубликовано: 31.05.2012 18:55:30
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: Super Administrator

New feature is introduced in SMath Studio 0.94.4535 - Absolute Definitions.



The same is for functions (which starts from ~).

This feature is not the same as used in Mathcad (called Global Definitions). Absolute Definitions designed to introduce a built-in way to send data from the bottom of the Worksheet to it's top.


Example: absoluteDefinitionsExample.sm.

Any questions are welcome

Best regards, Andrey Ivashov.
2 пользователям понравился этот пост
Oscar Campo 31.05.2012 23:33:00, Radovan Omorjan 01.06.2012 02:51:00
#2 Опубликовано: 01.06.2012 05:12:52
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Hello Andrey,

Thank you for this new feature. I have to say that using those variables might be quite useful, but sometimes a bit confusing.

Regarding your example, and by playing a bit, I could see that the region will be "someVar=0" when you open the file. When you repeat Recalculate page, someVar will have values 1,2,3,4.....which is expected to be. On the other hand if you move that region above and below if clause subsequently, then the values will have step two, actually you will get 21,23,25...

I've also noted that with the simple example
1: a:=1
2: a:=a+1
3: a=2
4: a:=6

Now, if you move 4: below 1: you will get ("a" will be 7 as expected)

1: a:=1
4: a:=6
2: a:=a+1
3: a=7

When you just move it back, then "a" becomes 8?
If you continue moving 4: below 1: and back, value of "a" will get values 7 and 8 subsequently

1: a:=1
2: a:=a+1
3: a=8
4: a:=6

When you recalculate page at this time, "a" will become 2, as expected.

Is there something I do not understand here?. I think that this moving the definition of an absolute variable above and below the region when that variable changes the value is a bit problematic at the moment. I think that variable should not change the value when we get it back. Aactualy, I think that variable "a" should retain the value 7 and not change to 8.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 пользователям понравился этот пост
Davide Carpi 01.06.2012 05:55:00
#3 Опубликовано: 01.06.2012 05:28:18
kmihaylovich

kmihaylovich

8 сообщений из 131 понравились пользователям.

Группа: User

This is because program evaluates only expressions affected by the change. So when you move a back to the bottom SMath Studio performs evaluation starting from second expression and not from the top.
1 пользователям понравился этот пост
Radovan Omorjan 01.06.2012 06:04:00
#4 Опубликовано: 01.06.2012 07:01:47
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Hello,
Wrote

This is because program evaluates only expressions affected by the change. So when you move a back to the bottom SMath Studio performs evaluation starting from second expression and not from the top.


Thank you, I think I understand now

By the way, could someone reproduce this. I tried to make an absolute function and then the region disappeared, and everything else disappeared. I got it back by clicking in the worksheet area. It happened to me few times before, sometimes SMath crashed, but could not reproduce it. Look at this video, please.

Regions disappear

Regards,
Radovan

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#5 Опубликовано: 01.06.2012 07:33:19
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

Wrote

Hello,

...

By the way, could someone reproduce this. I tried to make an absolute function and then the region disappeared, and everything else disappeared. I got it back by clicking in the worksheet area. It happened to me few times before, sometimes SMath crashed, but could not reproduce it. Look at this video, please.

Regions disappear

Regards,
Radovan



I confirm... it's not the absolute value, but the assignment ":" (sequence to reproduce the issue: ~ -> f -> ( -> x -> "->" -> : )

the ~ can be obtained by typing "Alt" + 0126 (from numpad)



I think the bolded function obtained by typing ~ before the name can be very interesting...


bolded_function

regards,

w3b5urf3r
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#6 Опубликовано: 01.06.2012 07:40:27
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Thank you,
Wrote

I confirm... it's not the absolute value, but the assignement ":"


I agree and it seems it happened sometimes when the assignment is used. I just bumped into it when tried to use absolute functions.

I think this might be considered as a bug then.

Regards,
Radovan

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#7 Опубликовано: 16.02.2016 01:25:55
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

By the way, could someone reproduce this. I tried to make an absolute function and then the region disappeared, and everything else disappeared. I got it back by clicking in the worksheet area. It happened to me few times before, sometimes SMath crashed, but could not reproduce it. Look at this video, pleas



Hello Radovan,

Watching your video about Smath turning blue is occasional.
Worst when it turns all white. Tip, open another work sheet
go back to the working work sheet ... back on foot.
Sometimes it crashes for true, because truly bad syntax.

I don't understand the problem of assigning absolute
........... f(x):=A*|(x-xo)^0.0625|

Gamma planet is slow in my Smath, hope yours is faster.
You will have to plug the image in your system.
The bold, if it works as bad as in Mathcad 11, bad luck.
In Mathcad 11 it didn't save settings, so you had to
redefine again. IMHO, purely classroom demo.

Jean

AltKeySymbol02.gif
AltKeySymbolExtend01.gif
Image Planet Gamma.sm (101 КиБ) скачан 74 раз(а).

#8 Опубликовано: 16.02.2016 01:33:11
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Hiiiiiiiiiiii !

Can hardly see the Smath work sheet attached.

Jean
#9 Опубликовано: 16.02.2016 01:51:46
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

I think the bolded function obtained by typing ~ before the name can be very interesting...



Not so sure, to see capital phi => size 24

Jean

Scrap Bold.sm (4 КиБ) скачан 78 раз(а).

#10 Опубликовано: 16.02.2016 04:32:22
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: Moderator

"Everything is relative"

2016-02-16 08_13_19-SMath Studio Desktop - [Scrap%20Bold.sm_].png

If you are working in a worksheet where 24pt is the default font-size, shouldn't be a problem.

But yes, bold notation has his own limits (even when used to distinguish a matrix from a scalar) :P

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#11 Опубликовано: 16.02.2016 11:42:04
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Smath recognises Alt+0key, but not Alt+0key symbol.
Smath does not have the "Font" plugin

Still very interesting for publishing.

Forum Alt0key.bmp

Jean
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений