  Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,509  Was thanked: 976 time(s) in 610 post(s)
|
Originally Posted by: uni  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?   Best regards. Alvaro. Edited by user 26 December 2024 20:54:37(UTC)
| Reason: Not specified
|
|
|
|
  Rank: Advanced Member Groups: Registered, Advanced Member Joined: 10/11/2010(UTC) Posts: 1,640   Was thanked: 1400 time(s) in 817 post(s)
|
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 (git.io/vOZo0) Viacheslav N. Mezentsev |
 1 user thanked uni for this useful post.
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 28/08/2014(UTC) Posts: 1,509  Was thanked: 976 time(s) in 610 post(s)
|
Hi Viacheslav. This is the modified with.inc: Code: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 (9kb) downloaded 2 time(s). 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. Edited by user 26 December 2024 21:55:51(UTC)
| Reason: Not specified
|
 1 user thanked Razonar for this useful post.
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.