Maxima Plugin - Messages

Here I did:
1) Install maxima 5.4 on recommended location (i.e. in C:\)
2) If you have the desktop version go to 2.1), else go to 2.2)
2.1) access to C:\Users\YOUR_USERNAME\AppData\Roaming\SMath\extensions\plugins\44011c1e-5d0d-4533-8e68-e32b5badce41\1.98.6354.1778 and extract MaximapPlugin.zip contents. Go to 3)
2.2) access to WHERE_IS_YOUR_PORTABLE_FOLDER\SMath 98.6398\extensions\plugins\44011c1e-5d0d-4533-8e68-e32b5badce41\1.98.6354.1778 and extract MaximapPlugin.zip contents. Go to 3)
3) open SMath, Click on Insert-Maxima-Settings and put this address as "Path to Maxima": C:\maxima-5.40.0\bin\maxima.bat
4) Enjoy
Thanks to Martin Kraska for all your efforts and work on this plugin.
Oscar
WroteI comfirm that last Maxima plugin works well on win 10 for SMamath 0.98.6398 in desktop and portable versions
![]()
Here I did:
1) Install maxima 5.4 on recommended location (i.e. in C:\)
2) If you have the desktop version go to 2.1), else go to 2.2)
2.1) access to C:\Users\YOUR_USERNAME\AppData\Roaming\SMath\extensions\plugins\44011c1e-5d0d-4533-8e68-e32b5badce41\1.98.6354.1778 and extract MaximapPlugin.zip contents. Go to 3)
2.2) access to WHERE_IS_YOUR_PORTABLE_FOLDER\SMath 98.6398\extensions\plugins\44011c1e-5d0d-4533-8e68-e32b5badce41\1.98.6354.1778 and extract MaximapPlugin.zip contents. Go to 3)
3) open SMath, Click on Insert-Maxima-Settings and put this address as "Path to Maxima": C:\maxima-5.40.0\bin\maxima.bat
4) Enjoy
Thanks to Martin Kraska for all your efforts and work on this plugin.
Oscar
Thanks for your feedback, nice to hear that the combination is working under Win10.
Note that the above procedure won't result in a really portable installation, in contrast to the pre-configured portable distribution which included a portable maxima.
Quote
Note that the above procedure won't result in a really portable installation, in contrast to the pre-configured portable distribution which included a portable maxima.
Yes, but is better than nothing.
Also I tried with portable maxima and I think that use it maybe could approximate to an entire "portable version" (maxima 5.4 portable is ~100 MB zipped)
I go further and installed SMath 0.98.6398 and maxima 5.4 on Mac via PlayOnMac, and all work as a breeze!
Today I will try installing on Linux. I bet that also it will works fine
I think that are good news for my students

Currently the plugin won't work if the process name of the executable isn't one of maxima, clisp or sbcl. In the next release, I will allow the plugin to run even without recognized process, just closing that process upon leaving SMath won't be possible.
If you face such problems, just let me know the process name to look for. I might also make that a config option one day.
WroteThat's great news!
Currently the plugin won't work if the process name of the executable isn't one of maxima, clisp or sbcl. In the next release, I will allow the plugin to run even without recognized process, just closing that process upon leaving SMath won't be possible.
If you face such problems, just let me know the process name to look for. I might also make that a config option one day.
Thanks, I'll let you know any news about that.
- SS-1244/SS-2401: Takeover of SMath functions int(), diff(), det(), sum(), lim()
fixed and now on per-document base instead of per-session base.
- SS 193: MaximaDefine() now does not add SMath definitions
- SS 191: Access to last result with Maxima(%) works
- SS 189: Waiting for Maxima response now without time-out
- MaximaLog(): Improved formatting
- Compatibility with Maxima 5.40.0 (SBCL recommended)
- Icon for the Insert> Maxima Menu group
Limitations
- Character set temporarily limited to ASCII (Greek characters and umlauts are handled
correctly)
MaximaPlugin.zip (66 KiB) downloaded 116 time(s).
Update16pre.sm (40 KiB) downloaded 128 time(s).
Here some instructions by Oscar:
Quote
1) Install maxima 5.40 on recommended location (i.e. in C:\)
2) If you have the desktop version go to 2.1), else go to 2.2)
2.1) access to C:\Users\YOUR_USERNAME\AppData\Roaming\SMath\extensions\plugins\44011c1e-5d0d-4533-8e68-e32b5badce41\1.98.6354.1778 and extract MaximapPlugin.zip contents. Go to 3)
2.2) access to WHERE_IS_YOUR_PORTABLE_FOLDER\SMath 98.6398\extensions\plugins\44011c1e-5d0d-4533-8e68-e32b5badce41\1.98.6354.1778 and extract MaximapPlugin.zip contents. Go to 3)
3) open SMath, Click on Insert-Maxima-Settings and put this address as "Path to Maxima": C:\maxima-5.40.0\bin\maxima.bat
4) Enjoy
- SS-1244/SS-2401: Takeover of SMath functions int(), diff(), det(), sum(), lim()
fixed and now on per-document base instead of per-session base.
- SS 193: MaximaDefine() now does not add SMath definitions
- SS 191: Access to last result with Maxima(%) works
- SS 189: Waiting for Maxima response now without time-out
- MaximaLog(): Improved formatting
- Compatibility with Maxima 5.40.0 (SBCL recommended)
- Icon for the Insert> Maxima Menu group
- Unicode support
- Draw2D/3D: PDF output support
Due to severe limitations of the current SMath beta (importData() not working) I shall focus on retrofitting the plugin version for the current stable SMath release 0.98.6179.
MaximaPlugin.zip (66 KiB) downloaded 123 time(s).
Update16pre2.sm (50 KiB) downloaded 140 time(s).
Works best with the latest Maxima nightly build.
1. Download the installer and install Maxima to the default location (at least avoid special characters in the path name).
Maxima and SMath must be on the same drive.
2. Select SBCL (Steel bank common lisp) as the default lisp for Maxima. Start Menu> All programs> maxima-current> Configure...
3. Open Update16.sm (195 KiB) downloaded 1447 time(s). and install or update missing plugins.
4. The settings dialog will be offered to you (or invoke it using Insert> Maxima> settings)
5. Specify the path to Maxima either by navigating ("Select directory" button) or entering into the text field.
Just specify the top level Maxima directory (e.g. C:\maxima-current)
6. Press "Save and Restart". If the progress bar and the confirmation message appear, you are done.
In principle, this procedure should also work in a portable installation, the path to Maxima is stored relative to the SMath executable directory.
Changes with respect to the previous version in the online gallery:
- SS-1244/SS-2401: Takeover of SMath functions int(), diff(), det(), sum(), lim()
fixed and now on per-document base instead of per-session base.
- SS 193: MaximaDefine() now does not add SMath definitions
- SS 191: Access to last result with Maxima(%) works
- SS 189: Waiting for Maxima response now without time-out
- MaximaLog(): Improved formatting
- Compatibility with Maxima 5.40.0 (SBCL recommended)
- Icon for the Insert> Maxima Menu group
- Draw2D() and Draw3D() now can produce PDF vector graphics
and have consistent size control with length units or pixels
- Settings dialog streamlined
- SS 3452: Loop variable in sum(4) is now local (safe use of i)
- SS 3460: Translation of #
- SS 157: Translation of \
- SS-198: Improved default settings for Draw2D/3D regions
Special thanks to
- Davide and Andrey for helping me with getting started with C#, Visual Studio and the upload of the plugin,
- Alex Melnik for adjustments of the image region and discussion on sizing,
- Gunter Königsmann (Maxima) for the fix of the pdf graphics interface
- Wolfgang Dautermann (Maxima) for his (really) nightly build automat, which made the fix available immediately
Updates of the docs coming soon...
I've read that Martin is learning C# so this plugin may work with Linux in the future.
It may help to take a look at Jacomax ( http://goo.gl/kHtFxV ) which is a Maxima listener made with java thus multiplatform.
They provide binaries and instructions on how to use them as well as the source code.
Jacomax is used for example on maxima-online.org
WroteHi
I've read that Martin is learning C# so this plugin may work with Linux in the future.
It may help to take a look at Jacomax ( http://goo.gl/kHtFxV ) which is a Maxima listener made with java thus multiplatform.
They provide binaries and instructions on how to use them as well as the source code.
Jacomax is used for example on maxima-online.org
My plan is to get a closer look on how the Maxima front end wxmaxima communicates with the back end under linux. As this seems to work, I don't expect a real show stopper for the plugin to work under Linux. I didn't revisit these functions when I reworked the translation procedure last summer.
First step for linux work would be to setup the software development environment. I don't want to miss the powerfull efficiency features of Visual studio. If anyone has experience in how to migrate from VS to Linux, I'd be open for any advice.
Yet I hesitate to get involved with other languages like java unless there is a very good reason. For C# this very good reason existed: Without this the Maxima plugin would have been dead by now.
I hope someone can recommend you a way to set up visual studio to code for Linux.
I think mono adopted net since net was opensourced recently.
Actually it seems possible to interoperate java with mono. See this article:
http://www.mono-project.com/docs/about-mono/languages/java/
and convert directly jar to dll to some extent according to:
http://www.ikvm.net/uses.html
So it may be possible to use the Jacomax binaries (already provided as download) and have the user install java or resorting to java portable (see jportable or jdkportable from portableapps.com).
Or wrapping Jacomax or some of its libraries with Mono, as explained above, so that you could complement your plugin with them.
I'm new to SMath and just started with Maxima. I'm more interested in its drawing functions.
I downloaded version 5.38.1 and set the path. It starts correctly, but drawing commands keep not working.
For example:
And the log shows:
draw2d([background_color="#fefefe",file_name="C:/Users/João Felipe/AppData/Roaming/SMath/extensions/plugins/44011c1e-5d0d-4533-8e68-e32b5badce41/GnuPlot/ieaglqnv",terminal=png,user_preamble=["set term pngcairo font ',8' enhanced size 300,300","set encoding utf8"],line_width=2,rectangle([2,3],[5,3]),color=red,fill_color=blue,proportional_axes=xy]);draw2d(terminal=pngcairo, file_name="C:/Users/João Felipe/AppData/Roaming/SMath/extensions/plugins/44011c1e-5d0d-4533-8e68-e32b5badce41/GnuPlot/z4ujxmcs", dimensions=[250,250], font="Arial", font_size=8, title="SAMPLE PLOT", xu_grid=40, yv_grid=40, xlabel="x", ylabel="y", zlabel="z", yrange=[-5,5], zrange=[-5,5],user_preamble=["set term pngcairo font ',8' enhanced size 250, 250", "set encoding utf8", "set grid xtics mxtics"],explicit(sin(x),x,-5,5));
I would appreciate any help.
Thanks in advance!
1. Use a dedicated interactive Draw region (Insert> Maxima> Draw2D()/Draw3D()) and write the list of draw objects and settings to the placeholder.
2. Use an image region (Insert> Image) and write a Draw2D/3D function with appropriate arguments to the placeholder. These functions generate graphics files and return the name of the file. This is what Image region needs to display the image.
You mixed both approaches. Thus either put objk in the placeholder of the maxima region or put the full Draw2D command in the placeholder of an image region.
I didn't test 5.38.1 with the current plugin version (don't know if that Maxima is unicode-proof). I recommend 5.41.0.
Your maxima is outdated and not set to steel bank common lisp (SBCL). If you really need to work with old maxima, then you might try the 2014 version of my portable distribution, follow the link in my signature.
Changes:
SS-3457 Translation of round(2)
Fix of description strings for MaximaTakeover(), Draw2D() and Draw3D()
-
New Posts
-
No New Posts