Maxima Plugin

Maxima Plugin - Messaggi

#241 Pubblicato: 08/09/2018 11:58:06
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Extension manager conflicts should be resolved by now.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#242 Pubblicato: 13/09/2018 15:13:08
andrea993

andrea993

2 apprezzamenti in 12 post.

Gruppo: User

We really need a linux port
#243 Pubblicato: 13/09/2018 16:00:34
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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...
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#244 Pubblicato: 13/09/2018 16:33:05
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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#.

Mostra spoiler




Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#245 Pubblicato: 14/09/2018 03:17:37
andrea993

andrea993

2 apprezzamenti in 12 post.

Gruppo: 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 utenti hanno apprezzato questo post
Martin Kraska 14/09/2018 05:22:00
#246 Pubblicato: 14/09/2018 05:21:09
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#247 Pubblicato: 14/09/2018 06:24:49
andrea993

andrea993

2 apprezzamenti in 12 post.

Gruppo: 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 Pubblicato: 14/09/2018 07:14:09
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

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


Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#249 Pubblicato: 17/09/2018 17:59:31
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

Plugin updated. Mainly cosmetic changes.

Update19.png
Update19.sm (328,03 KiB) scaricato 1850 volta(e).



Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
3 utenti hanno apprezzato questo post
Вячеслав Мезенцев 17/09/2018 18:06:00, frapuano 17/09/2018 18:50:00, Arie 18/09/2018 09:09:00
#250 Pubblicato: 21/09/2018 21:55:04
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

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

Example Fit.sm (13,62 KiB) scaricato 1684 volta(e).
Example Fit.png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
3 utenti hanno apprezzato questo post
Radovan Omorjan 22/09/2018 03:02:00, Вячеслав Мезенцев 22/09/2018 02:15:00, frapuano 22/09/2018 08:26:00
#251 Pubblicato: 22/09/2018 03:36:05
Radovan Omorjan

Radovan Omorjan

325 apprezzamenti e 1 disapprezzamenti in 2.052 post.

Gruppo: 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 Pubblicato: 22/09/2018 08:13:04
Alvaro

Alvaro

1.139 apprezzamenti in 1.805 post.

Gruppo: 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,8 KiB) scaricato 1660 volta(e).

Best regards.
Alvaro.
2 utenti hanno apprezzato questo post
frapuano 22/09/2018 08:26:00, Radovan Omorjan 22/09/2018 10:36:00
#253 Pubblicato: 25/02/2019 20:00:58
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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,28 KiB) scaricato 1686 volta(e).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#254 Pubblicato: 26/02/2019 04:03:40
Radovan Omorjan

Radovan Omorjan

325 apprezzamenti e 1 disapprezzamenti in 2.052 post.

Gruppo: Moderator

Confirmed, I think...

maxima.png

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

Andrey

1 apprezzamenti in 44 post.

Gruppo: User

Hello SMath-Team,

I confirmed, it confuses me too

Maxima_Plugin_Error.png

Best regards,
Andrey
#256 Pubblicato: 06/03/2019 04:29:41
Radovan Omorjan

Radovan Omorjan

325 apprezzamenti e 1 disapprezzamenti in 2.052 post.

Gruppo: 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 Pubblicato: 06/03/2019 10:27:27
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: 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 Pubblicato: 06/03/2019 12:35:51
Andrey Ivashov

Andrey Ivashov

2.343 apprezzamenti in 4.056 post.

Gruppo: Super Administrator

Plugin updated. Please try.
2 utenti hanno apprezzato questo post
Martin Kraska 06/03/2019 15:41:00, frapuano 06/03/2019 17:28:00
#259 Pubblicato: 06/03/2019 15:14:38
Radovan Omorjan

Radovan Omorjan

325 apprezzamenti e 1 disapprezzamenti in 2.052 post.

Gruppo: 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 Pubblicato: 06/03/2019 15:40:46
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: 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

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
  • Nuovi post
  • Nessun nuovo post