Vectorial Function

Vectorial Function - Messages

#1 Posted: 11/23/2022 1:05:46 PM
Tomás Antonio Lazzo Titichoca

Tomás Antonio Lazzo Titichoca

0 likes in 1 posts.

Group: 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 Posted: 11/23/2022 2:21:48 PM
overlord

overlord

551 likes in 1332 posts.

Group: 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 Posted: 11/23/2022 6:17:09 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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 KiB) downloaded 30 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
  • New Posts New Posts
  • No New Posts No New Posts