Maxima Plugin

Maxima Plugin - Messages

#21 Posted: 11/13/2013 9:05:53 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

I have updated the portable distribution (see signature). Please keep in mind that in the current plugin version the setup information is stored in the plugin directory, not in the SMath installation directory like in previous versions.

If the current portable version does not recognize your Maxima installation, please check the following information:
- Maxima version installed on your system?
- Can Maxima be started manually (console version)?
- Is the search path pointing to the path containing maxima.bat?
- post the sm file with the init command




Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Davide Carpi 11/24/2013 9:28:00 AM
#22 Posted: 11/24/2013 1:23:47 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Plugin updated.

New features:
- det() is now handled by Maxima, this enhances the numeric as well as the symbolic performance and resolve some issues in the native version.
- support of the vector product operator for simplification. Adresses an issue with native symbolic optimization.
- support of Re() and Im() including use of units.
- Improvements for auxiliary messages from Maxima commands (not handled as errors any more)
- support for Lagrangean (prime) format of derivatives, currently limited to x as argument.
- Numeric solver function mNewton(). By far not as good as FindRoot(), but those who know it from Maxima, may use it now in SMath.

Note: you must re-initialize the plugin after the update using MaximaControl("init","path to your maxima installation" ).
update6.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#23 Posted: 12/5/2013 6:18:29 PM
blarg

blarg

0 likes in 6 posts.

Group: User

Many thanks for your effort on extending the SMATH functionality!

Having issues with the solve, see attached to see what i'm seeing. I used the plugin manager to instal and i'm fairly certain I have the most up to date smath. All other functions work like your demo except for the solve. I've tried redoing the max path update with no luck.



Wrote

Plugin updated.

New features:
- det() is now handled by Maxima, this enhances the numeric as well as the symbolic performance and resolve some issues in the native version.
- support of the vector product operator for simplification. Adresses an issue with native symbolic optimization.
- support of Re() and Im() including use of units.
- Improvements for auxiliary messages from Maxima commands (not handled as errors any more)
- support for Lagrangean (prime) format of derivatives, currently limited to x as argument.
- Numeric solver function mNewton(). By far not as good as FindRoot(), but those who know it from Maxima, may use it now in SMath.

Note: you must re-initialize the plugin after the update using MaximaControl("init","path to your maxima installation" ).


solve23.png
#24 Posted: 12/5/2013 6:47:48 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

The most recent SMath version is 0.96.4909. The current Maxima plugin version in the online gallery has stability issues with the socket connection between SMath and Maxima. This also affects the handling of error messages. We try to stabilize this in the next release.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#25 Posted: 12/14/2013 5:52:22 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Plugin updated.

Changes/Features::
- Custom Control Window (Insert> Maxima control window)
- Settings window for specification of Maxima path
- Debugger Window for step by step Maxima calls
- Log window for more convenient session inspection
- MaximaTakeover() for fine tuning of function takeover
- Maxima path can be documented in the sheet
- stale maxima processes are killed automatically
- Back-translation of at()
- Access to draw package (works only with Maxima 5.31.1-1 or older)

Documentation update in progress...
Update7.sm (88 KiB) downloaded 170 time(s).
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 12/15/2013 4:51:00 AM
#26 Posted: 12/15/2013 10:19:09 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello Martin,

Glad to see that the progress has been made in Maxima plugin . I had a slight problem with initializing Maxima, after updating to Maxima 5.31.2. It refused to do that at first with persistent "..no valid folder path". I managed somehow to use the "Settings" and manual initialization few times and to persuade Maxima to work, but I am not sure how. I am not quite sure why this dialog window reported the "..no valid folder path" subsequently when pressing "Search for maxima.bat" although the path is all right. Never mind, in spite of that it seems to work pretty well except that the draw package can not be loaded for me, see the picture please.

Regards,
Radovan

P.S. This time I broke the Gallery again with installing Maxima plugin. It did not help just to delete the Maxima plugin folder, I had to delete all plugings now, as I did few times before. I have no Idea why the Online Gallery become broken sometimes after the installing a plugin.

[Edit] How stupid of me. It was a folder path therefore the path is C:\Program files\Maxima..\bin - without maxima.bat at the end
loaddraw.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 users liked this post
Martin Kraska 12/15/2013 11:21:00 AM
#27 Posted: 12/15/2013 11:20:26 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Hi Radovan, thanks for the feedback.

The Settings window is somewhat non-intuitive in that it writes the full path to maxima.bat as preset to the entry field and at the same time does accept directory names only. You have to remove "maxima.bat" then this will work.

I admit that this is not a highlight in user-friendly GUI design. I decided not to fight this, because the general solution shall be a file selector dialog. Other glitches like existing windows not coming to the foreground also shall be mitigated in parallel to Kay mastering windows programming.

As to the draw package: this just works with Maxima 5.31.1-1 or older, thus it won't work with Maxima 5.31.2 (see update note). The problem has been reported to the Maxima list, but it is special to our plugin and as such not reproducible by ordinary Maxima users.

Online Gallery: I need to remove Maxima, Include and FunctionsExtensions in order to get access. This is annoying, as in principle, there should be no need any more to re-initialize Maxima after updates. This, however, requires old plugin directories still to exist...

PS: When switching Maxima versions, make sure to delete any compiled maxima stuff in your user directory (search for binary-gcl). The draw package compiles lisp files when loaded for the first time. These are not binary-compatible between different Maxima versions but share the same temp space for object files.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#28 Posted: 12/15/2013 11:21:22 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

By the way, I am just curious why product() is not under "takeover" by Maxima ?
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#29 Posted: 12/15/2013 11:41:24 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Wrote


... As to the draw package: this just works with Maxima 5.31.1-1 or older, thus it won't work with Maxima 5.31.2 (see update note). The problem has been reported to the Maxima list, but it is special to our plugin and as such not reproducible by ordinary Maxima users.


Sorry, It seems I missed this too, because it did not work with my previous Maxima 5.30.0 version as well. I was not careful enough and I thought 5.31.1 or "newer" and not "older".
Never mind, I will uninstall it and install Maxima 5.31.1 and see if this will work for me.
Wrote

PS: When switching Maxima versions, make sure to delete any compiled maxima stuff in your user directory (search for binary-gcl). The draw package compiles lisp files when loaded for the first time. These are not binary-compatible between different Maxima versions but share the same temp space for object files.


Ah yes, thank you. I forgot about it as well because I have few Maxima instances here.

Regards,
Radovan

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#30 Posted: 12/15/2013 11:45:17 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

By the way, I am just curious why product() is not under "takeover" by Maxima ?


Just nobody seemed to need it including us. If you give us some examples then I put this to the todo list. Expect similar problems like with sum(), which won't work properly if not-yet-supported vector and matrix functions are involved (heavy collateral damage to functions from NonlineaSolvers). Therefore, we removed sum() from takeover by MaximaControl("takeover" ).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#31 Posted: 12/15/2013 12:26:05 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Wrote

Wrote

By the way, I am just curious why product() is not under "takeover" by Maxima ?


Just nobody seemed to need it including us. If you give us some examples then I put this to the todo list. Expect similar problems like with sum(), which won't work properly if not-yet-supported vector and matrix functions are involved (heavy collateral damage to functions from NonlineaSolvers). Therefore, we removed sum() from takeover by MaximaControl("takeover" ).


Yes, I see your point. I just saw now that, contrary to MaximaControl( "takeover" ), MaximaTakeover( "all" ) will use sum() as well. It seems that sum() (and not yet supported product()) should be avoided in Maxima at the moment (see the picture please - is this a bug?). To be honest, I have more confidence in Maxima than in SMath regarding some more complicated sums and products.

Regards,
Radovan
summaxima.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 users liked this post
Martin Kraska 12/15/2013 2:17:00 PM
#32 Posted: 12/15/2013 2:12:54 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

This is a bug in the back-translation. Thanks for reporting.
sum.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#33 Posted: 12/15/2013 7:06:21 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

I think I figured out how to resolve the loading draw package. It seems that load(draw) in SMath did not produce the compiled lisp code (binary-gcl in user folder) - I do not know why. Therefore I started XMaxima, wxMaxima and there issued load(draw). That produces the needed compiled object files. After that, load(draw) inside SMath worked - see the picture.

Regards,
Radovan
drawpackage.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#34 Posted: 12/16/2013 7:03:43 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

I just tried to test now some packages which depend on draw package (descriptive, stats). In general, I can get the result but there are some things I can not do (due to the limited Maxima plugin features - I think), or I do not know how to resolve them.

In stats package, there are nice stat tests but the output is in text format and I do not know how to get that, for instance


(%i1) load( "stats" )$
(%i2) data: [78,64,35,45,45,75,43,74,42,42]$
(%i3) test_mean(data,'conflevel=0.9,'alternative='less,'mean=50);
| MEAN TEST
|
| mean_estimate = 54.3
|
| conf_level = 0.9
|
| conf_interval = [minf, 61.51314273502712]
|
(%o3) | method = Exact t-test. Unknown variance.
|
| hypotheses = H0: mean = 50 , H1: mean < 50
|
| statistic = .8244705235071678
|
| distribution = [student_t, 9]
|
| p_value = .7845100411786889


I struggled with this, but no success.

In descriptive package, there are quite interesting functions for me, but do not know how to use few stats plots from that package (see the picture). There is no error issued, but there is one step I missed (I suppose). How to export the graph to say SVG and to import it into SMath?.

Regards,
Radovan
stat distrib.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#35 Posted: 12/16/2013 7:33:32 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

With the text output we shall see what we can do.
With the stat plots: they are just like any draw based plots, add filename and terminal as options and import the images. It is essential to append the optional arguments and not to put them in front of required arguments (data).
descr.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#36 Posted: 12/16/2013 9:19:40 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Wrote

With the text output we shall see what we can do.


Thank you. Looking forward to that
Wrote

With the stat plots: they are just like any draw based plots, add filename and terminal as options and import the images. It is essential to append the optional arguments and not to put them in front of required arguments (data).


Thank you for this as well. Martin, could you please open this file. I can not see what I was doing wrong. Files have not been saved. I tried to recalculate many times (sometimes peculiar things happened when load(stats) was present - therefore I deleted it at the moment)

Regards,
Radovan
stat distrib-1.sm (25 KiB) downloaded 113 time(s).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#37 Posted: 12/16/2013 1:44:46 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

No problem with display and gnuplot here. Make sure you have decent version of ImageRegion and MathcadFileAccess, you also might use windows search to find where the files are written.
draw.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#38 Posted: 12/16/2013 5:19:38 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello Martin,

There are some strange things that happened here. Find attached the files I was played with. If you have patience, please just take a look at this video

Maxima draw

The strange thing is that when I have deleted the *.svg files, then I can not see the plots never mind how many times I restart.

I can see the files when I just open your "Update7.sm" file and after that I restart "stat distrib-3.sm" file.

Pictures are a bit distorted, and after restarting they change their size. I hav no idea why is this happening. Only the boxplot keeps its size

Regards,
Radovan
Update7.sm (88 KiB) downloaded 119 time(s).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#39 Posted: 12/16/2013 6:40:29 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Hello Radovan,

nice to see you seriously digging into Maxima plotting. I confirm the problem of deleted files not re-appearing after re-calculation. This problem is gone if you reset your session using MaximaControl("restart" ).

The problem with distorted plots is in fact a problem of proportional axes scaling which is set as plot default in the beginning of the sheet. BTW, you might reduce the plot size by assigning appropriate defaults there.
stat.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 12/17/2013 4:15:00 AM
#40 Posted: 12/17/2013 5:48:49 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Thank you Martin,

I should have paid more attention on these parameters

By the way, I hope I would not mind if I ask you why the last plot refuses to use the plot name (I can use maxima_out.png though which has been made here - not quite understand this as well)

Regards,
Radovan

scaterplot.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
  • New Posts New Posts
  • No New Posts No New Posts