Maple Tools

Maple Tools - Symbolic engine for SMath Studio. - Сообщения

#461 Опубликовано: 26.12.2024 14:47:54
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1675 понравились пользователям.

Группа: User

Wrote

In addition to names, parameter types also need to be converted. They need to be supported in both directions. As for trigonometric functions, the SMath tries to automatically work with names, which prevents them from being supported in the plugin in a controlled way.



Hi Viacheslav. Forgetting about types for a moment, if you add a line with "alias(arg=argument, asin=arcsin, ... )" and some other aliases to the plugin's "in.tmp" file, wouldn't it do the conversion automatically?

alias.png

alias2.png

Best regards.
Alvaro.
#462 Опубликовано: 26.12.2024 15:18:42
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

You can check it yourself. The plugin supports including custom commands using the "with.inc" file. The file content is added automatically with each conversion to the in.tmp file header.
Russia ☭ forever, Viacheslav N. Mezentsev
1 пользователям понравился этот пост
Alvaro Diaz Falconi 26.12.2024 15:50:00
#463 Опубликовано: 26.12.2024 15:54:20
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1675 понравились пользователям.

Группа: User

Hi Viacheslav. This is the modified with.inc:

with(linalg):with(inttrans):with(plots):
alias(arg=argument, sign=signum, u=Heaviside): 
alias(asin=arcsin, acos=arccos, atan=arctan): 
alias(asec=arcsec, acsc=arccsc, acot=arccot): 
alias(asinh=arcsinh, acosh=arccosh, atanh=arctanh):
alias(asech=arcsech, acsch=arccsch, acoth=arccoth):

And this is the test:

alias.sm (8 КиБ) скачан 72 раз(а).

alias.png

I use u=Heaviside because there is a plugin with this function, useless for integration, but there must be some other better name. Also, there are some other functions, like GAMMA, Bessel, Airy, etc.

Best regards.
Alvaro.
1 пользователям понравился этот пост
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений