Missing bracket in display of complex numbers with changed units

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

#1 Pubblicato: 26/06/2013 02:30:13
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

See attachment
Math Complex.sm (39,03 KiB) scaricato 1468 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#2 Pubblicato: 26/06/2013 03:59:55
Radovan Omorjan

Radovan Omorjan

325 apprezzamenti e 1 disapprezzamenti in 2.052 post.

Gruppo: 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 utenti hanno apprezzato questo post
Martin Kraska 26/06/2013 05:53:00
#3 Pubblicato: 26/06/2013 05:05:23
kilele

kilele

134 apprezzamenti in 397 post.

Gruppo: User

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

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#5 Pubblicato: 26/06/2013 06:24:16
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Wrote

Symbolic evaluation seems to work.


That was just by chance. The problem persists for symbolic optimization as well.
chance.PNG
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#6 Pubblicato: 26/06/2013 08:33:24
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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 Pubblicato: 26/06/2013 08:44:03
Mike Kaganski

Mike Kaganski

184 apprezzamenti in 434 post.

Gruppo: 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 utenti hanno apprezzato questo post
Davide Carpi 26/06/2013 08:48:00
#8 Pubblicato: 26/06/2013 08:52:34
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: 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
  • Nuovi post
  • Nessun nuovo post