Maxima Plugin

Maxima Plugin - 消息

#221 已发布: 2017/8/7 17:08:59
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: 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位用户喜欢此帖子
Serg 2017/9/1 07:43:00, Davide Carpi 2017/8/8 06:29:00, Martin Kraska 2017/8/8 03:07:00
#222 已发布: 2017/8/8 03:06:47
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#223 已发布: 2017/8/8 09:08:47
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: Moderator

引用


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位用户喜欢此帖子
Martin Kraska 2017/8/8 09:47:00
#224 已发布: 2017/8/8 09:55:46
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#225 已发布: 2017/8/8 10:27:43
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: 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 已发布: 2017/8/9 17:55:46
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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.86 KiB)已下载 610 次。
Update16pre.sm (40.17 KiB)已下载 1698 次。

Here some instructions by Oscar:

引用


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



Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
2位用户喜欢此帖子
Oscar Campo 2017/8/10 00:45:00, Radovan Omorjan 2017/8/10 01:40:00
#227 已发布: 2017/8/13 18:23:41
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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.94 KiB)已下载 586 次。
Update16pre2.sm (50.81 KiB)已下载 1689 次。
2017-08-13 23_06_57-SMath Studio 0.98.6398 - [Update16pre1.sm].png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
Radovan Omorjan 2017/8/14 03:07:00
#228 已发布: 2017/8/16 18:28:30
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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.49 KiB)已下载 3072 次。 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...
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
7位用户喜欢此帖子
Davide Carpi 2017/8/17 12:55:00, Arie 2017/8/18 10:24:00, Serg 2017/9/1 07:43:00, JohnSG 2017/8/17 11:40:00, Oscar Campo 2017/8/17 12:39:00, Radovan Omorjan 2018/4/6 04:03:00, sergio 2017/8/17 04:46:00
#229 已发布: 2017/11/10 10:46:07
kilele

kilele

134个赞,共397个帖子。

组: 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 已发布: 2017/11/10 13:20:25
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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.

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#231 已发布: 2017/11/10 13:58:16
kilele

kilele

134个赞,共397个帖子。

组: 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位用户喜欢此帖子
Martin Kraska 2017/11/10 17:24:00
#232 已发布: 2018/2/22 11:44:47
João Felipe Seráfico Melo

João Felipe Seráfico Melo

7个赞,共62个帖子。

组: 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 已发布: 2018/2/22 12:47:22
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#234 已发布: 2018/2/22 13:04:32
João Felipe Seráfico Melo

João Felipe Seráfico Melo

7个赞,共62个帖子。

组: User

Thank you for your reply, but still not working.2018-02-22_130326.png
#235 已发布: 2018/2/22 13:10:16
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

please attach your sm file and give the output of Maxima(args(build_info(#)))
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#236 已发布: 2018/2/22 13:11:28
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

please attach your sm file and give the output of Maxima(args(build_info(#)))
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#237 已发布: 2018/2/22 13:24:03
João Felipe Seráfico Melo

João Felipe Seráfico Melo

7个赞,共62个帖子。

组: User

It is this what you asked for? build1.png


.sm file: testing_drawing2d.sm (14.53 KiB)已下载 1684 次。
#238 已发布: 2018/2/22 13:33:52
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#239 已发布: 2018/4/5 12:31:33
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: 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
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
3位用户喜欢此帖子
Radovan Omorjan 2018/4/6 03:51:00, frapuano 2018/4/5 13:48:00, sergio 2018/4/5 15:38:00
#240 已发布: 2018/9/7 19:48:40
Martin Kraska

Martin Kraska

1,362个赞,共2,276个帖子。

组: Moderator

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

Update18.sm (29.51 KiB)已下载 1661 次。
Update18.png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1位用户喜欢此帖子
frapuano 2018/9/8 12:46:00
  • 有新帖
  • 无新帖