Maxima Plugin

Maxima Plugin - Messages

#221 Posted: 8/7/2017 5:08:59 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

I comfirm that last Maxima plugin works well on win 10 for SMath 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
3 users liked this post
Serg 9/1/2017 7:43:00 AM, Davide Carpi 8/8/2017 6:29:00 AM, Martin Kraska 8/8/2017 3:07:00 AM
#222 Posted: 8/8/2017 3:06:47 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

I 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.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#223 Posted: 8/8/2017 9:08:47 AM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

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
1 users liked this post
Martin Kraska 8/8/2017 9:47:00 AM
#224 Posted: 8/8/2017 9:55:46 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

That'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.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#225 Posted: 8/8/2017 10:27:43 AM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Wrote

That'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.

#226 Posted: 8/9/2017 5:55:46 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

New pre-release of the plugin. Changes with respect to the 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

Limitations
- Character set temporarily limited to ASCII (Greek characters and umlauts are handled
correctly)

MaximaPlugin.zip (66 KiB) downloaded 98 time(s).
Update16pre.sm (40 KiB) downloaded 99 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



Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
2 users liked this post
Oscar Campo 8/10/2017 12:45:00 AM, Radovan Omorjan 8/10/2017 1:40:00 AM
#227 Posted: 8/13/2017 6:23:41 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

New pre-release of the plugin. Changes with respect to the 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
- 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 100 time(s).
Update16pre2.sm (50 KiB) downloaded 110 time(s).
2017-08-13 23_06_57-SMath Studio 0.98.6398 - [Update16pre1.sm].png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Radovan Omorjan 8/14/2017 3:07:00 AM
#228 Posted: 8/16/2017 6:28:30 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Plugin updated (only for nightly build SMath 0.98.6398 and newer)

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 1421 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...
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
7 users liked this post
sergio 8/17/2017 4:46:00 AM, Radovan Omorjan 4/6/2018 4:03:00 AM, JohnSG 8/17/2017 11:40:00 AM, Oscar Campo 8/17/2017 12:39:00 PM, Davide Carpi 8/17/2017 12:55:00 PM, Arie 8/18/2017 10:24:00 AM, Serg 9/1/2017 7:43:00 AM
#229 Posted: 11/10/2017 10:46:07 AM
kilele

kilele

133 likes in 397 posts.

Group: User

Hi

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
#230 Posted: 11/10/2017 1:20:25 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Hi

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.

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#231 Posted: 11/10/2017 1:58:16 PM
kilele

kilele

133 likes in 397 posts.

Group: User

Hi Martin

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.
1 users liked this post
Martin Kraska 11/10/2017 5:24:00 PM
#232 Posted: 2/22/2018 11:44:47 AM
João Felipe Seráfico Melo

João Felipe Seráfico Melo

7 likes in 62 posts.

Group: User

Hi!

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:

2018-02-22_114213.png

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!
#233 Posted: 2/22/2018 12:47:22 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

There are two ways to display Maxima graphics.
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.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#234 Posted: 2/22/2018 1:04:32 PM
João Felipe Seráfico Melo

João Felipe Seráfico Melo

7 likes in 62 posts.

Group: User

Thank you for your reply, but still not working.2018-02-22_130326.png
#235 Posted: 2/22/2018 1:10:16 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

please attach your sm file and give the output of Maxima(args(build_info(#)))
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#236 Posted: 2/22/2018 1:11:28 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

please attach your sm file and give the output of Maxima(args(build_info(#)))
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#237 Posted: 2/22/2018 1:24:03 PM
João Felipe Seráfico Melo

João Felipe Seráfico Melo

7 likes in 62 posts.

Group: User

It is this what you asked for? build1.png


.sm file: testing_drawing2d.sm (14 KiB) downloaded 75 time(s).
#238 Posted: 2/22/2018 1:33:52 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Works for me. Not really exciting because the rectangle is just a horizontal line but works.

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.

2018-02-22 17_40_45-SMath Studio - [testing_drawing2d.sm_].png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#239 Posted: 4/5/2018 12:31:33 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Plugin updated.

Changes:
SS-3457 Translation of round(2)
Fix of description strings for MaximaTakeover(), Draw2D() and Draw3D()

roundtest_001.png
roundtest_002.png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
3 users liked this post
sergio 4/5/2018 3:38:00 PM, frapuano 4/5/2018 1:48:00 PM, Radovan Omorjan 4/6/2018 3:51:00 AM
#240 Posted: 9/7/2018 7:48:40 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Plugin updated (for SMath 6671 stable and 6824 beta).

Update18.sm (29 KiB) downloaded 75 time(s).
Update18.png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
frapuano 9/8/2018 12:46:00 PM
  • New Posts New Posts
  • No New Posts No New Posts