Vectorial Function

Vectorial Function - 消息

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

Tomás Antonio Lazzo Titichoca

0个赞,共1个帖子。

组: 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 已发布: 2022/11/23 14:21:48
overlord

overlord

600个赞,共1,381个帖子。

组: 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 已发布: 2022/11/23 18:17:09
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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)已下载 1330 次。
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
  • 有新帖
  • 无新帖