Vectorial Function

Vectorial Function - Messaggi

#1 Pubblicato: 23/11/2022 13:05:46
Tomás Antonio Lazzo Titichoca

Tomás Antonio Lazzo Titichoca

0 apprezzamenti in 1 post.

Gruppo: User

Hi, I need to calculate vector functions using cross-product, in Matcad looks like this:
vector Functions Mathcad.png

I try to do the same in Smath using maxima but it doesn't work as I expect
vector Functions Smath.png
#2 Pubblicato: 23/11/2022 14:21:48
overlord

overlord

600 apprezzamenti in 1.381 post.

Gruppo: Moderator

Symbolic calculations are SMath's weakness.
You will see huge fractions for floats when symbolic optimization used.
Even when maxima or maple used, decimals shall be shown as fractions.
You can avoid this using eval() and round() to a certain point.
But it will not give result as mathcad or your desire.

Regards

2022-11-23_20-17.png
#3 Pubblicato: 23/11/2022 18:17:09
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

There are several options:

  • using custom units. Units are handled symbolically even in numeric evaluation by SMath. Disadvantage is that there may be clashes with pre-defined units. That is why I had to write 'u.0 instead of 'u.
  • using Maxima as you did but with numeric evaluation in Maxima (using float()) and optimization=none in the context menu of the SMath region.
  • if the symbolic part is just a factor, you can write it in the units field of the result and use numeric evaluation


numsym.png
numsym.sm (8,46 KiB) scaricato 1314 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
  • Nuovi post
  • Nessun nuovo post