Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

24 Pages«<222324
Options
Go to last post Go to first unread
Offline Razonar  
#461 Posted : 26 December 2024 20:47:54(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,509
Uruguay

Was thanked: 976 time(s) in 610 post(s)
Originally Posted by: uni Go to Quoted Post
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.

Edited by user 26 December 2024 20:54:37(UTC)  | Reason: Not specified

Offline uni  
#462 Posted : 26 December 2024 21:18:42(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,640
Man
Russian Federation

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
thanks 1 user thanked uni for this useful post.
on 26/12/2024(UTC)
Offline Razonar  
#463 Posted : 26 December 2024 21:54:20(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,509
Uruguay

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).

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.

Edited by user 26 December 2024 21:55:51(UTC)  | Reason: Not specified

thanks 1 user thanked Razonar for this useful post.
on 26/12/2024(UTC)
Users browsing this topic
24 Pages«<222324
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.