Maxima Plugin

Maxima Plugin - Сообщения

#241 Опубликовано: 08.09.2018 11:58:06
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 Опубликовано: 13.09.2018 15:13:08
andrea993

andrea993

2 сообщений из 12 понравились пользователям.

Группа: User

We really need a linux port
#243 Опубликовано: 13.09.2018 16:00:34
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 Опубликовано: 13.09.2018 16:33:05
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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#.

Показать спойлер




Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#245 Опубликовано: 14.09.2018 03:17:37
andrea993

andrea993

2 сообщений из 12 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Martin Kraska 14.09.2018 05:22:00
#246 Опубликовано: 14.09.2018 05:21:09
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 Опубликовано: 14.09.2018 06:24:49
andrea993

andrea993

2 сообщений из 12 понравились пользователям.

Группа: 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 Опубликовано: 14.09.2018 07:14:09
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 Опубликовано: 17.09.2018 17:59:31
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Plugin updated. Mainly cosmetic changes.

Update19.png
Update19.sm (328 КиБ) скачан 105 раз(а).



Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
3 пользователям понравился этот пост
Arie 18.09.2018 09:09:00, Вячеслав Мезенцев 17.09.2018 18:06:00, frapuano 17.09.2018 18:50:00
#250 Опубликовано: 21.09.2018 21:55:04
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

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

Example Fit.sm (13 КиБ) скачан 102 раз(а).
Example Fit.png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
3 пользователям понравился этот пост
Вячеслав Мезенцев 22.09.2018 02:15:00, Radovan Omorjan 22.09.2018 03:02:00, frapuano 22.09.2018 08:26:00
#251 Опубликовано: 22.09.2018 03:36:05
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: 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 Опубликовано: 22.09.2018 08:13:04
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1675 понравились пользователям.

Группа: 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 КиБ) скачан 97 раз(а).

Best regards.
Alvaro.
2 пользователям понравился этот пост
frapuano 22.09.2018 08:26:00, Radovan Omorjan 22.09.2018 10:36:00
#253 Опубликовано: 25.02.2019 20:00:58
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 КиБ) скачан 71 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#254 Опубликовано: 26.02.2019 04:03:40
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Confirmed, I think...

maxima.png

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#255 Опубликовано: 26.02.2019 10:12:56
Andrey

Andrey

1 сообщений из 44 понравились пользователям.

Группа: User

Hello SMath-Team,

I confirmed, it confuses me too

Maxima_Plugin_Error.png

Best regards,
Andrey
#256 Опубликовано: 06.03.2019 04:29:41
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: 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 Опубликовано: 06.03.2019 10:27:27
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 06.03.2019 12:35:51
Andrey Ivashov

Andrey Ivashov

2270 сообщений из 3734 понравились пользователям.

Группа: Super Administrator

Plugin updated. Please try.
2 пользователям понравился этот пост
frapuano 06.03.2019 17:28:00, Martin Kraska 06.03.2019 15:41:00
#259 Опубликовано: 06.03.2019 15:14:38
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: 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 Опубликовано: 06.03.2019 15:40:46
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений