Maxima Plugin

Maxima Plugin - Messages

#241 Posted: 9/8/2018 11:58:06 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Extension manager conflicts should be resolved by now.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#242 Posted: 9/13/2018 3:13:08 PM
andrea993

andrea993

2 likes in 12 posts.

Group: User

We really need a linux port
#243 Posted: 9/13/2018 4:00:34 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

We really need a linux port



I agree. Maybe, just an adjustment of the command line for establishing the socket connection is required. Under Windows I use

maxima-installation-path/bin/maxima.bat -l sbcl -s

This requires
- the .net socket stuff and process control to work under mono,
- a unicode-proof lisp compiler to be installed (which accepts utf-8 socket encoding), under win the only one is steel bank common lisp (SBCL).

Also, I need to know the name of the maxima process for detection of active maxima processes via System.Diagnostics.Process.GetProcessesByName(name). This is required to identify the pid for later kill. Under windows this might be "maxima" or "lisp" or "sbcl". This has changed over the years and may be different under linux.

The plugin might work even as it is, if the maxima startup script is renamed to maxima.bat.

Any information from the linuxing SMatheers is welcome.

BTW, there is a maxima build for android as well...

EDIT: It would also help, if someone could explain me how to build and debug the plugin under Linux. Under Win, I use VS 2015 with the project as found in the SVN repository. Otherwise I need to blindly make changes under win and install and test under linux. This would be a huge drawback compared to the win-only workflow, where compiling and running SMath with the new build in the debugger is just a push of a single button...
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#244 Posted: 9/13/2018 4:33:05 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

I just did some tests on a linux mint 17.2 virtual box with smath 6654:

install maxima, copy /usr/bin/maxima to /usr/bin/maxima.bat

Insert> maxima> settings: Path to maxima: /usr/bin

Then smath crashes with the following console output. Understanding this is beyond my experience level in c#.

Show Spoiler




Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#245 Posted: 9/14/2018 3:17:37 AM
andrea993

andrea993

2 likes in 12 posts.

Group: User

Wrote

I just did some tests on a linux mint 17.2 virtual box with smath 6654:

System.IO.DirectoryNotFoundException: Could not find a part of the path "/home/user/.config/SMath/extensions\plugins\44011c1e-5d0d-4533-8e68-e32b5badce41/maxima.xml".
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) <0x7fb8bb55d1f0 + 0x001f4> in :0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) <0x7fb8bb55cf60 + 0x0004d> in :0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync) <0x7fb8bb55cf00 + 0x00051> in :0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
at System.Xml.XmlWriterSettings.CreateWriter (System.String outputFileName) <0x417801b0 + 0x000af> in :0

[/SPOILER]




The path is a mix of windows and linux style: "/home/user/.config/SMath/extensions\plugins\44011c1e-5d0d-4533-8e68-e32b5badce41/maxima.xml" plugin should be use '/' instead '\'

Btw I suggest you to link maxima.bat to maxima instead of make a copy
sudo ln -s /usr/bin/maxima /usr/bin/maxima.bat


On linux an IDE similar to visual studio is "visual studio code" also by MS, you can use it with C# extension
1 users liked this post
Martin Kraska 9/14/2018 5:22:00 AM
#246 Posted: 9/14/2018 5:21:09 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote


The path is a mix of windows and linux style: "/home/user/.config/SMath/extensions\plugins\44011c1e-5d0d-4533-8e68-e32b5badce41/maxima.xml" plugin should be use '/' instead '\'

Btw I suggest you to link maxima.bat to maxima instead of make a copy

sudo ln -s /usr/bin/maxima /usr/bin/maxima.bat


On linux an IDE similar to visual studio is "visual studio code" also by MS, you can use it with C# extension



Thanks for the comment. Seems that fixing the path separator might be a goot starting point. There must be something like SystemPathSeparator in C#, I shall find out...

Also, I shall get a more recent linux virtual box with enough space to install VS code.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#247 Posted: 9/14/2018 6:24:49 AM
andrea993

andrea993

2 likes in 12 posts.

Group: User

Wrote

Wrote


The path is a mix of windows and linux style: "/home/user/.config/SMath/extensions\plugins\44011c1e-5d0d-4533-8e68-e32b5badce41/maxima.xml" plugin should be use '/' instead '\'

Btw I suggest you to link maxima.bat to maxima instead of make a copy

sudo ln -s /usr/bin/maxima /usr/bin/maxima.bat


On linux an IDE similar to visual studio is "visual studio code" also by MS, you can use it with C# extension



Thanks for the comment. Seems that fixing the path separator might be a goot starting point. There must be something like SystemPathSeparator in C#, I shall find out...

Also, I shall get a more recent linux virtual box with enough space to install VS code.



If you public (is it already?) the code I can also give you an hand.

If you make a new virtual machine maybe is better that you use Ubuntu to develop that is ~more standard~
#248 Posted: 9/14/2018 7:14:09 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote



If you public (is it already?) the code I can also give you an hand.

If you make a new virtual machine maybe is better that you use Ubuntu to develop that is ~more standard~



Third party SMath plugins are always open source. Here is the link for the Maxima plugin.

Feel free to play around with it. I guess one of the first steps will be to make the VS sln file fit for cross platform portability.
And we will need to set up a utf-8 maxima binary under linux. Under windows this is SBCL. It is available under linux as well but on my box this requires separate compilation.

BTW, Davide has offered help with streamlining the install procedure (automated maxima installation). I guess that the BTS issue SS-3562 is the right place for further discussion and co-ordination.

Ubuntu is fine for me.


Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#249 Posted: 9/17/2018 5:59:31 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Plugin updated. Mainly cosmetic changes.

Update19.png
Update19.sm (328 KiB) downloaded 75 time(s).



Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
3 users liked this post
Arie 9/18/2018 9:09:00 AM, Вячеслав Мезенцев 9/17/2018 6:06:00 PM, frapuano 9/17/2018 6:50:00 PM
#250 Posted: 9/21/2018 9:55:04 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Example application for Fit(), MSE() and Residuals() and efficient plotting.

Example Fit.sm (13 KiB) downloaded 73 time(s).
Example Fit.png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
3 users liked this post
Вячеслав Мезенцев 9/22/2018 2:15:00 AM, Radovan Omorjan 9/22/2018 3:02:00 AM, frapuano 9/22/2018 8:26:00 AM
#251 Posted: 9/22/2018 3:36:05 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Thank you Martin,

I tested it briefly with a larger data set and more than one dependent variable. At a first glance it seems that it works surprisingly fast. I might have forgotten but I think there is not yet a strictly numerical procedure in SMath (available via plugin) for nonlinear fitting a quite large data set to a function with multiple dependent variables.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#252 Posted: 9/22/2018 8:13:04 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

In the attached, the functional version of the Carlos' version of LM. For some large set of data, as Omorr ask, the main problem it's the Jacobian. There are some algorithms that don't use it. In this approach, actually it's a truly mix of numerical and symbolic manipulation for the Jacobian.

lmCarlos.sm (57 KiB) downloaded 72 time(s).

Best regards.
Alvaro.
2 users liked this post
frapuano 9/22/2018 8:26:00 AM, Radovan Omorjan 9/22/2018 10:36:00 AM
#253 Posted: 2/25/2019 8:00:58 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Severe problems since SMath build 6970. Last version tested ok is 6965.

2019-02-25 23_44_20-SMath Studio 0.99.6970 - [Page1_].png
maximaproblem.sm (4 KiB) downloaded 45 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#254 Posted: 2/26/2019 4:03:40 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Confirmed, I think...

maxima.png

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#255 Posted: 2/26/2019 10:12:56 AM
Andrey

Andrey

1 likes in 44 posts.

Group: User

Hello SMath-Team,

I confirmed, it confuses me too

Maxima_Plugin_Error.png

Best regards,
Andrey
#256 Posted: 3/6/2019 4:29:41 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

The problem remained unsolved

MaximaTakeOver.png

However, it seems that Det(),Diff(),Int(),Lim(),Sum() are working well.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#257 Posted: 3/6/2019 10:27:27 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

However, it seems that Det(),Diff(),Int(),Lim(),Sum() are working well.


Int() certainly does not work.
Why bother Maxima, unless some like that cluster fuck

MapleInt.PNG
#258 Posted: 3/6/2019 12:35:51 PM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

Plugin updated. Please try.
2 users liked this post
frapuano 3/6/2019 5:28:00 PM, Martin Kraska 3/6/2019 3:41:00 PM
#259 Posted: 3/6/2019 3:14:38 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Wrote

Plugin updated. Please try.



I think it is all right now. Thank you.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#260 Posted: 3/6/2019 3:40:46 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Plugin updated. Please try.



I confirm that the API issues seem to be resolved. Andrey, thank you very much, I might not have been able to fix that soon.

In the test suite (Plugin maxima test.sm in the interactive handbook) there is just a new issue with displaying svg images in the Maxima-Draw-Region and in the image region. PDF and PNG work fine though.

Best regards, Martin

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
  • New Posts New Posts
  • No New Posts No New Posts