Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


16 Pages«<1112131415>»
Options
Go to last post Go to first unread
Offline mkraska  
#241 Posted : 08 September 2018 17:58:06(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Extension manager conflicts should be resolved by now.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Andrea993  
#242 Posted : 13 September 2018 21:13:08(UTC)
Andrea993


Rank: Member

Groups: Registered
Joined: 13/09/2018(UTC)
Posts: 10

Was thanked: 2 time(s) in 2 post(s)
We really need a linux port
Offline mkraska  
#243 Posted : 13 September 2018 22:00:34(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: Andrea993 Go to Quoted Post
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 <port number>

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

Edited by user 13 September 2018 22:08:21(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline mkraska  
#244 Posted : 13 September 2018 22:33:05(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
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://smath.com/wiki/SMath_with_Plugins.ashx
Offline Andrea993  
#245 Posted : 14 September 2018 09:17:37(UTC)
Andrea993


Rank: Member

Groups: Registered
Joined: 13/09/2018(UTC)
Posts: 10

Was thanked: 2 time(s) in 2 post(s)
Originally Posted by: mkraska Go to Quoted Post
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 <filename unknown>:0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) <0x7fb8bb55cf60 + 0x0004d> in <filename unknown>:0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync) <0x7fb8bb55cf00 + 0x00051> in <filename unknown>: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 <filename unknown>: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
Code:
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

Edited by user 14 September 2018 10:33:00(UTC)  | Reason: Not specified

thanks 1 user thanked Andrea993 for this useful post.
on 14/09/2018(UTC)
Offline mkraska  
#246 Posted : 14 September 2018 11:21:09(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: Andrea993 Go to Quoted Post

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
Code:
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://smath.com/wiki/SMath_with_Plugins.ashx
Offline Andrea993  
#247 Posted : 14 September 2018 12:24:49(UTC)
Andrea993


Rank: Member

Groups: Registered
Joined: 13/09/2018(UTC)
Posts: 10

Was thanked: 2 time(s) in 2 post(s)
Originally Posted by: mkraska Go to Quoted Post
Originally Posted by: Andrea993 Go to Quoted Post

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
Code:
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~
Offline mkraska  
#248 Posted : 14 September 2018 13:14:09(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: Andrea993 Go to Quoted Post


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://smath.com/wiki/SMath_with_Plugins.ashx
Offline mkraska  
#249 Posted : 17 September 2018 23:59:31(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Plugin updated. Mainly cosmetic changes.

Update19.png
Update19.sm (329kb) downloaded 54 time(s).



Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 3 users thanked mkraska for this useful post.
on 18/09/2018(UTC),  on 18/09/2018(UTC),  on 18/09/2018(UTC)
Offline mkraska  
#250 Posted : 22 September 2018 03:55:04(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Example application for Fit(), MSE() and Residuals() and efficient plotting.

Example Fit.sm (14kb) downloaded 52 time(s).
Example Fit.png
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 3 users thanked mkraska for this useful post.
on 22/09/2018(UTC),  on 22/09/2018(UTC),  on 22/09/2018(UTC)
Offline omorr  
#251 Posted : 22 September 2018 09:36:05(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
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!"
Offline Razonar  
#252 Posted : 22 September 2018 14:13:04(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
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 (58kb) downloaded 50 time(s).

Best regards.
Alvaro.
thanks 2 users thanked Razonar for this useful post.
on 22/09/2018(UTC),  on 22/09/2018(UTC)
Offline mkraska  
#253 Posted : 26 February 2019 02:00:58(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
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 (5kb) downloaded 25 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline omorr  
#254 Posted : 26 February 2019 10:03:40(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Confirmed, I think...

maxima.png

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline andrbig77  
#255 Posted : 26 February 2019 16:12:56(UTC)
andrbig77


Rank: Advanced Member

Groups: Registered
Joined: 07/12/2018(UTC)
Posts: 44
Man
Germany

Was thanked: 1 time(s) in 1 post(s)
Hello SMath-Team,

I confirmed, it confuses me too

Maxima_Plugin_Error.png

Best regards,
Andrey
Offline omorr  
#256 Posted : 06 March 2019 10:29:41(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
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!"
Offline Jean Giraud  
#257 Posted : 06 March 2019 16:27:27(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: omorr Go to Quoted Post
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
Offline Andrey Ivashov  
#258 Posted : 06 March 2019 18:35:51(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Plugin updated. Please try.
thanks 2 users thanked Andrey Ivashov for this useful post.
on 06/03/2019(UTC),  on 06/03/2019(UTC)
Offline omorr  
#259 Posted : 06 March 2019 21:14:38(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Originally Posted by: Andrey Ivashov Go to Quoted Post
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!"
Offline mkraska  
#260 Posted : 06 March 2019 21:40:46(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 1,986
Germany

Was thanked: 1124 time(s) in 721 post(s)
Originally Posted by: Andrey Ivashov Go to Quoted Post
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://smath.com/wiki/SMath_with_Plugins.ashx
Users browsing this topic
Guest
Similar Topics
Error implementing ToolboxGroup for the maxima plugin (Questions)
by fakemoses 31/07/2023 20:09:47(UTC)
Maxima Plugin Feedback Survey: Share Your Ideas and Report Bugs (Feature Requests)
by fakemoses 16/06/2023 13:27:33(UTC)
MAXIMA PLUGIN expand (Questions)
by Angel695 21/05/2023 10:43:40(UTC)
Solve Function Stuck (46/47) with Maxima Plugin (Questions)
by Albedo 30/08/2022 05:24:23(UTC)
[Maxima Plugin] Text exportation issue (Questions)
by SteelCat 11/01/2022 12:47:31(UTC)
Maxima Plugin problem (Bugs & Problems)
by FT_PENG 23/12/2021 23:49:19(UTC)
Text characters not passing correctly to Maxima plugin (Bugs & Problems)
by gurro 15/08/2021 00:14:03(UTC)
[Maxima Plugin] is a custom Maxima function call-able in SMath (Questions)
by 007.000 22/05/2018 13:06:49(UTC)
[Maxima Plugin] least common multiple (Questions)
by 007.000 22/05/2018 12:13:20(UTC)
news for Maxima Plugin (Questions)
by oscampo 27/01/2016 18:39:35(UTC)
Maxima plugin error (Bugs & Problems)
by olik 30/11/2015 10:17:28(UTC)
16 Pages«<1112131415>»
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.