Missing bracket in display of complex numbers with changed units

Missing bracket in display of complex numbers with changed units - BTS Issue SS-27 - Messages

#1 Posted: 6/26/2013 2:30:13 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

See attachment
Math Complex.sm (39 KiB) downloaded 49 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#2 Posted: 6/26/2013 3:59:55 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

I do not know if this missing brackets is connected to the behavior already mentioned many times by me. It still remained unsolved. Look at video please. Again, the brackets are missing in the display.

Brackets problem and range()

By looking at the actual commands, I do not know if there is something that could be done

c: range(1,10)*'m

g: (range(1,10))*'m

In the case of comple numbers, the brackets just disappear when inserting another unit

Brackets disappear in complex

z: (5+6*i)*'m

z=(5+6*i)*'m

z=500+600*i@'cm

z=500+600*i@'cm

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 users liked this post
Martin Kraska 6/26/2013 5:53:00 AM
#3 Posted: 6/26/2013 5:05:23 AM
kilele

kilele

133 likes in 397 posts.

Group: User

Symbolic evaluation seems to work. Although brackets should be kept in all cases.
bracketsincomplex.png
#4 Posted: 6/26/2013 6:07:08 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

The problem seems to apply to any operator representation of internal functions, if that operator has no bracketing visual structure (i.e. has placeholders without wrapping structure). Internally, complex numbers, ranges, sums and the like, are represented by a function or object which does not require brackets around it.
However, the cartesian representation for complex number is Re + Im i, that is + operation, as well as in sums. In ranges, the internal operator is just side by side putting of numbers, with undefined precedence perhaps somewhere below multiply.




range.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#5 Posted: 6/26/2013 6:24:16 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Symbolic evaluation seems to work.


That was just by chance. The problem persists for symbolic optimization as well.
chance.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#6 Posted: 6/26/2013 8:33:24 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Mhhh.. I don't understand what is the problem about units and imaginary numbers...

What's the expected result?
SMath Studio Desktop - [imunit.sm].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#7 Posted: 6/26/2013 8:44:03 AM
Mike Kaganski

Mike Kaganski

184 likes in 434 posts.

Group: User

The problem is that the visual representation suggests that P is a sum of dimensionless number 300 and dimensioned imaginary 100*I centimeters (i.e. unitless number is added to a length). Surely, this is only a visual artifact, and internally the program keeps record that the unit (cm) is applied to the whole number (300+100*i), but this is yet another place where the visual representation is plain wrong.
С уважением, Михаил Каганский
1 users liked this post
Davide Carpi 6/26/2013 8:48:00 AM
#8 Posted: 6/26/2013 8:52:34 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

The problem is that the visual representation suggests that P is a sum of dimensionless number 300 and dimensioned imaginary 100*I centimeters (i.e. unitless number is added to a length). Surely, this is only a visual artifact, and internally the program keeps record that the unit (cm) is applied to the whole number (300+100*i), but this is yet another place where the visual representation is plain wrong.



Thank you, now I understand the point
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • New Posts New Posts
  • No New Posts No New Posts