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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline 007.000  
#1 Posted : 22 May 2018 13:06:49(UTC)
007.000


Rank: Member

Groups: Registered
Joined: 22/05/2018(UTC)
Posts: 25
Man
United States
Location: California

I have defined a function in Maxima but am unable to call it in SMath... I've searched around and tried a bunch of different syntaxes buy am still new to this so if it does indeed work I couldn't get it going... Any help would be appreciated.

Attached are the Maxima .mac file and the SMath file attempting to call it.

func_gradient_divergence_curl.7z (1kb) downloaded 33 time(s).


calling custom Maxima function.sm (5kb) downloaded 43 time(s).

Edited by moderator 22 May 2018 13:21:45(UTC)  | Reason: added Maxima tag

Online Jean Giraud  
#2 Posted : 22 May 2018 16:04:58(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 4,576
Canada

Was thanked: 775 time(s) in 615 post(s)
Originally Posted by: 007.000 Go to Quoted Post
Any help would be appreciated.

Forget what does not work outside of native Smath

Maths Grad_Div_Curl.sm (13kb) downloaded 31 time(s).

Online Jean Giraud  
#3 Posted : 22 May 2018 16:50:39(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 4,576
Canada

Was thanked: 775 time(s) in 615 post(s)
...

Jacob.sm (54kb) downloaded 27 time(s).
Offline mkraska  
#4 Posted : 22 May 2018 19:32:17(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,576
Germany

Was thanked: 853 time(s) in 542 post(s)
Originally Posted by: 007.000 Go to Quoted Post
I have defined a function in Maxima but am unable to call it in SMath... I've searched around and tried a bunch of different syntaxes buy am still new to this so if it does indeed work I couldn't get it going... Any help would be appreciated.

Attached are the Maxima .mac file and the SMath file attempting to call it.

func_gradient_divergence_curl.7z (1kb) downloaded 33 time(s).


calling custom Maxima function.sm (5kb) downloaded 43 time(s).


It seems that there is a conflict with the vector package (load(vect) is executed at maxima startup in the plugin). If you remove that call, then your macro is loaded. I only tried this in wxmaxima. See Insert> Maxima> Log> wxm to see what the plugin does at startup.

2018-05-22 18_24_27-SMath Studio - [lcm.sm_].png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://en.smath.info/wi...th%20with%20Plugins.ashx
Users browsing this topic
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.