Vectorial Function

Vectorial Function - Сообщения

#1 Опубликовано: 3 года назад
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 Опубликовано: 3 года назад
overlord

overlord

558 сообщений из 1 335 понравились пользователям.

Группа: 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 Опубликовано: 3 года назад
Martin Kraska

Martin Kraska

1 230 сообщений из 2 156 понравились пользователям.

Группа: 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 КиБ) скачан 100 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений