Maxima Plugin

Maxima Plugin - Mensajes

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

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: 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 Publicado: 13/9/2018 15:13:08
andrea993

andrea993

2 me gusta en 12 mensajes.

Grupo: User

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

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: 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 Publicado: 13/9/2018 16:33:05
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

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

Mostrar spoiler




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

andrea993

2 me gusta en 12 mensajes.

Grupo: 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
A 1 usuarios les gustó este mensaje
Martin Kraska 14/9/2018 5:22:00
#246 Publicado: 14/9/2018 5:21:09
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: 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 Publicado: 14/9/2018 6:24:49
andrea993

andrea993

2 me gusta en 12 mensajes.

Grupo: 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 Publicado: 14/9/2018 7:14:09
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: 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 Publicado: 17/9/2018 17:59:31
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

Plugin updated. Mainly cosmetic changes.

Update19.png
Update19.sm (328,03 KiB) descargado 1843 vez(es).



Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
A 3 usuarios les gustó este mensaje
Вячеслав Мезенцев 17/9/2018 18:06:00, frapuano 17/9/2018 18:50:00, Arie 18/9/2018 9:09:00
#250 Publicado: 21/9/2018 21:55:04
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

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

Example Fit.sm (13,62 KiB) descargado 1675 vez(es).
Example Fit.png
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
A 3 usuarios les gustó este mensaje
Radovan Omorjan 22/9/2018 3:02:00, Вячеслав Мезенцев 22/9/2018 2:15:00, frapuano 22/9/2018 8:26:00
#251 Publicado: 22/9/2018 3:36:05
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: 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 Publicado: 22/9/2018 8:13:04
Alvaro

Alvaro

1.139 me gusta en 1.805 mensajes.

Grupo: 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) descargado 1652 vez(es).

Best regards.
Alvaro.
A 2 usuarios les gustó este mensaje
frapuano 22/9/2018 8:26:00, Radovan Omorjan 22/9/2018 10:36:00
#253 Publicado: 25/2/2019 20:00:58
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: 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) descargado 1679 vez(es).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#254 Publicado: 26/2/2019 4:03:40
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: Moderator

Confirmed, I think...

maxima.png

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

Andrey

1 me gusta en 44 mensajes.

Grupo: User

Hello SMath-Team,

I confirmed, it confuses me too

Maxima_Plugin_Error.png

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

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: 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 Publicado: 6/3/2019 10:27:27
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 6/3/2019 12:35:51
Andrey Ivashov

Andrey Ivashov

2.343 me gusta en 4.056 mensajes.

Grupo: Super Administrator

Plugin updated. Please try.
A 2 usuarios les gustó este mensaje
Martin Kraska 6/3/2019 15:41:00, frapuano 6/3/2019 17:28:00
#259 Publicado: 6/3/2019 15:14:38
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: 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 Publicado: 6/3/2019 15:40:46
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: 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
  • Nuevos mensajes
  • Sin mensajes nuevos