1 Pages (3 items)
[Maxima Plugin] least common multiple - least common multiple implementation - Messages
#1 Posted: 5/22/2018 6:13:20 AM
Although lcm() works in Maxima... it won't work for me in Smath using Maxima(lcm())
I'm a noob but researched for hours and am non-the-wiser... Any help is much appreciated.
The only result when searching the forum is a Matlab plugin which I couldn't work... plus I'm not sure lcm() is included with that plugin anyway.
https://en.smath.info/forum/yaf_postst1970_Matlab-C-Math-Library.aspx
lcm.sm (2 KiB) downloaded 90 time(s).
I'm a noob but researched for hours and am non-the-wiser... Any help is much appreciated.
The only result when searching the forum is a Matlab plugin which I couldn't work... plus I'm not sure lcm() is included with that plugin anyway.
https://en.smath.info/forum/yaf_postst1970_Matlab-C-Math-Library.aspx
lcm.sm (2 KiB) downloaded 90 time(s).
#2 Posted: 5/22/2018 8:58:17 AM
You need to load the "functs" package in Maxima first. Seems that wxMaxima does that on startup. I could also load this package automatically if required.
You can add this locally to your maxima.xml in the plugin directory (search for this file to find the directory).
![2018-05-22 13_54_34-SMath Studio - [lcm.sm_].png](/en-US/file/ndYWDE/2018-05-22-13_54_34-SMath-Studio---_lcm_sm___png)
You can add this locally to your maxima.xml in the plugin directory (search for this file to find the directory).
Martin Kraska
Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#3 Posted: 5/23/2018 4:31:44 AM
Thank you Mr. Kraska...
I found a Japanese page where others had to load it on their Maxima first as well.
http://web.sfc.keio.ac.jp/~yama/nos/?p=3505
Also this third party Maxima manual tells users to do so as well.
http://www.delorie.com/gnu/docs/maxima/maxima_95.html
Which turned out to actually be the instructions for SMath not Maxima.
Now I suppose I'll need to write a loop in order to use the function with more than two numbers.
Somewhat curious since Maxima has an ezgcd() function which accepts more than two inputs. Anyhow, I will click thanks on your profile Sir.
update: When I click thank on your post an error occurs.
I found a Japanese page where others had to load it on their Maxima first as well.
http://web.sfc.keio.ac.jp/~yama/nos/?p=3505
Also this third party Maxima manual tells users to do so as well.
http://www.delorie.com/gnu/docs/maxima/maxima_95.html
Which turned out to actually be the instructions for SMath not Maxima.
Now I suppose I'll need to write a loop in order to use the function with more than two numbers.
Somewhat curious since Maxima has an ezgcd() function which accepts more than two inputs. Anyhow, I will click thanks on your profile Sir.
update: When I click thank on your post an error occurs.
1 Pages (3 items)
-
New Posts
-
No New Posts