Maxima Plugin

Maxima Plugin - Messages

#161 Posted: 4/18/2015 12:13:07 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Confirmed. Hard-coding the path to maxima in maxima.xml did not help to solve the problem. I have no time to dig further now, but want to create a new portable version until summer.


Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
sergio 4/18/2015 12:20:00 PM
#162 Posted: 8/11/2015 1:08:22 PM
uffe

uffe

0 likes in 1 posts.

Group: User

I got the Maxima plugin up and running after making an exception on the firewall and added it to the DEP exlusion list. However when i restarted my computer Maxima crashes every time i try using one the maxima commands from s-math, and the same when i try open the maxima settings. Wxmaxima works fine, although I have had trouble with the firewall and DEP.
I have tried rebooting and system restore.
I am running windows 7 64bit, might that be the problem?
#163 Posted: 9/29/2015 10:54:26 AM
Teacher

Teacher

1 likes in 20 posts.

Group: User

Hi there,

I'm quite new within this forum, so I don't know wether this request is placed in the right position ...

Working as a teacher in the field of mechanical engineering I often have to solve systems of linear equations. They are quite simply to solve but the studets sometimes have their difficulties with it. So I like to show them what SMath + Maxima can do for them.

Now my problem:
When using the Solve()-command at the very beginning (without defining any variables) everything is working fine and the Solve-Command returns the symbolc solutions of the equations.
When predefining the given variables, such as gravity-forces or geometric valus such as lenth or angles the function does not return the symbolic solutions but tries to calculate the roots.

Is it possible to force the Solve-Command to compute the results in a sybolic way?

Hoping that someone can give me a hint.
Lösung linearer Gleichungssysteme Bsp. ZKS [Maxima-Plugin]-not working.sm (48 KiB) downloaded 52 time(s).
#164 Posted: 12/2/2015 5:17:33 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Hi Mkraska,
Please, can you help with this?:

http://en.smath.info/forum/yaf_postst7169_Maxima-plugin-error.aspx


Thanks in advance!
#165 Posted: 4/5/2016 1:00:23 PM
Alexander O. Melnik

Alexander O. Melnik

127 likes in 494 posts.

Group: Moderator

Wrote

Hi,
Some users (me also) have posted about the crashes of maxima plugin, are there any news about status of maxima plugin?

Regards,

Oscar



I 2nd that, Martin, can we expect an update to a Maxima plugin + portable version of SMath?

Thank you

AM
1 users liked this post
frapuano 4/5/2016 2:13:00 PM
#166 Posted: 4/5/2016 2:34:11 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I 2nd that, Martin, can we expect an update to a Maxima plugin portable version of SMath?

Thank you

AM



I 3rd that too. We don't even have an idea of Maxima 3D
and mostly Solve [solve is ok].

Jean

#167 Posted: 4/20/2016 11:31:48 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

The Maxima plugin still works with SMath 0.98.5953, at least on my computer under win 7 x64.

Known new problems:
- The native diff() functions are somehow disabled. In order to use symbolic diff(), use MaximaTakeover("diff()") or MaximaTakeover("all"). Then, the Maxima CAS engine is used for diff (and int, lim, sum, det)
- The interactive plot regions Maxima Draw2D and Draw3D throw an error, can't be used any more. Fallback is to use Draw2D() and Draw3D() commands in the placeholder of an ordinary image region.

As mentioned before, fixing these problems would require me to learn c# and software development under windows. I don't exclude that in general, but there is no chance to do it now or in the near future.

You have to use the Maxima version as shipped with the unofficial portable SMath distribution. It has a modified maxima.bat for setting the temp directories properly. If you need newer Maxima versions, you still can use them with the plugin but not in a portable version.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Davide Carpi 4/20/2016 12:35:00 PM
#168 Posted: 4/29/2016 11:54:17 AM
Alexander O. Melnik

Alexander O. Melnik

127 likes in 494 posts.

Group: Moderator

Wrote

The Maxima plugin still works with SMath 0.98.5953, at least on my computer under win 7 x64.
As mentioned before, fixing these problems would require me to learn c# and software development under windows. I don't exclude that in general, but there is no chance to do it now or in the near future.



Martin, is there a chance you would consider giving IronPython a shot for SMath plugin development? According to the link it is possible (is it fesible)?
https://smath.com/wiki/(S(a3wyc5jalhq4v1ftjqepdo2l))/IDE%20and%20Language%20for%20developing%20plugins.ashx

You are an extremely valuable member of this community and we would hate to loose your activity here
#169 Posted: 4/29/2016 12:10:06 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

I would vote for some kind of "Numerical Recipes" emulator.
#170 Posted: 4/29/2016 1:22:25 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote


Martin, is there a chance you would consider giving IronPython a shot for SMath plugin development? According to the link it is possible (is it fesible)?
https://smath.com/wiki/(S(a3wyc5jalhq4v1ftjqepdo2l))/IDE%20and%20Language%20for%20developing%20plugins.ashx



Using python would definitly be an option. However, without understanding the code of the current Maxima plugin, I would have to develop another one from scratch. With specification, test suite and translation concept already in place, this might be in fact a good option. In order to prepare such an endeavor, I need to think of
- what might be the performance impact of c# versus ironpython (no idea what iron means)?
- is there a chance to make the plugin work under linux? Current smath version does not work at all with current mono under mint 17.2 in a virtual box)
- is there a chance to do plugin development under linux? I plan to stop using windows once I would be forced to use win 10.
- mastering the interaction with the smath plugin manager. It is years ago that I used it (for the handbook)
- how to setup an appropriate tool chain for development?

Perhaps the first step would be to set up a C# development environment (Visual studio?) and interaction with the SMath plugin storage site, then inspect the code of the plugin and see if I can do something to mitigate the diff() problem and the broken Draw regions.

To be honest, I am a bit pessimistic, because a year ago I tried to find out by code inspection of the modeller region how to create text objects. Unfortunately I failed (there was a forum post later explaining how to do that).

Could anyone of the plugin developers please have a look at the maxima plugin and just share their impression whether it is possible to get it back to maintenance and perhaps help with the questions above.


Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#171 Posted: 4/29/2016 2:31:15 PM
kilele

kilele

133 likes in 397 posts.

Group: User

Hi Martin. I hope that someone can help you to maintain the Maxima plugin.
I've taken the liberty to find a couple of crash tutorials to get started on IronPython just as you said, for Linux.
This one is an intro to mono winforms with ironpython: http://zetcode.com/tutorials/ironpythontutorial/
This other explains how to use python standard libraries with ironpython from sharpdevelop, the ide used by Davide: http://community.sharpdevelop.net/blogs/mattward/archive/2010/03/16/CompilingPythonPackagesWithIronPython.aspx

It seems that IronPython development stopped a bit since MS dropped its support but it's still a useful tool.

Edit 1:

Monodevelop ide seems to have a python addin!
This may worth checking out (I think xamarin was bought by MS recently)

Edit 2:

If you follow the tag 'ironpython' on the site community.sharpdevelop.net mentioned above, you can know more about the feature to convert c# code to ironpython: http://community.sharpdevelop.net/blogs/mattward/archive/2009/05/11/ConvertingCSharpVBNetCodeToIronPython.aspx
1 users liked this post
Martin Kraska 4/30/2016 6:30:00 AM
#172 Posted: 4/29/2016 3:34:28 PM
Alexander O. Melnik

Alexander O. Melnik

127 likes in 494 posts.

Group: Moderator

I would take on this I had more spare time.. (which I might, someday).

Forum dwellers, is there anyone among us who can take on maintaining the plugin? You don't necessarily need to know any programming language - using debug of Visual studio you can learn everything what the plugin does and then, hopefully, fix it. Being a skilled programmer and knowing a language just enough to make things work are two very different things.

If Maxima is important for you maybe you can find some time to fix her up?
#173 Posted: 4/29/2016 8:09:05 PM
kilele

kilele

133 likes in 397 posts.

Group: User

May I ask why do you think Maxima stopped working? Is there any other alternative to sockets?
Have you tried to increase the port number until it finds a port it can establish a server on?
What about using pipes instead of a socket? Or even have smath and maxima write/read into/from the same local file. See these discussions:
http://www.unix.com/shell-programming-and-scripting/237063-dialog-external-program-using-named-pipes.html
http://unix.stackexchange.com/questions/53641/how-to-make-bidirectional-pipe-between-two-programs
http://www.google.com/search?q=Windows+named+pipe+MSDN
http://stackoverflow.com/questions/2784500/how-to-send-a-simple-string-between-two-programs-using-pipes
How about using a php socket with a tiny local webserver? Maybe a couple of different sockets in a row or a mix of socket plus pipe to see if the connection stops being blocked.

Edit 1:

More alternatives apart from the socket approach: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365574(v=vs.85).aspx

Edit 2:

windows named pipes python
http://stackoverflow.com/questions/13319679/createnamedpipe-in-python
http://stackoverflow.com/questions/18077145/windows-named-pipes-in-practice

Edit 3:

Someone managed to communicate with maxima linux by means of named pipes, follow the entire discussion at: http://def.fe.up.pt/pipermail/maxima-discuss/2007/020159.html
.Net supports named pipes: https://msdn.microsoft.com/en-us/library/system.io.pipes.aspx
Explained sample using .net: http://hernanjlarrea.com/index.php/qu-es-un-named-pipe/
More explained code from 2015, scroll down to pipes and various: https://dotnetcodr.com/messaging/
1 users liked this post
Martin Kraska 4/30/2016 6:30:00 AM
#174 Posted: 4/30/2016 11:39:20 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Forum dwellers, is there anyone among us who can take on maintaining the plugin? You don't necessarily need to know any programming language - using debug of Visual studio you can learn everything what the plugin does and then, hopefully, fix it. Being a skilled programmer and knowing a language just enough to make things work are two very different things.



=============================================

Besides inserting image from file, I see no need for plugins except those that make
Smath f(x) menu work. Too many "toyers" and not enough "users" in the Smath community.
For instance: what's the need for a glorious text box ? The prime use of a text box is
to front end a project with an abstract [~ dozen lines], as bare as possible.

I just need more working maths for project as well as Edu. implicit of their
companion plugins... plugins maths, that's what I mean, like this one.
Just make Smath understand something in there.

Convolution Integral.bmp




#175 Posted: 4/30/2016 11:41:35 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

... here is.

Convolution Integral.gif
#176 Posted: 5/10/2016 10:39:16 PM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

I don't use this plug-in, but I'll try solve the problem.
Russia ☭ forever, Viacheslav N. Mezentsev
3 users liked this post
Radovan Omorjan 5/11/2016 2:25:00 AM, Mike Kaganski 5/11/2016 12:11:00 AM, Alexander O. Melnik 5/11/2016 12:06:00 AM
#177 Posted: 5/11/2016 6:47:01 AM
kilele

kilele

133 likes in 397 posts.

Group: User

Wrote

I don't use this plug-in, but I'll try solve the problem.



I reckon you can find useful code here, scroll down to pipes and various: https://dotnetcodr.com/messaging/
Oh I recall you were trying to make Jasymca native to Smath, at least could output of this program be piped to Smath just as with the Maxima plugin?
1 users liked this post
#178 Posted: 5/11/2016 7:35:11 AM
Вячеслав Мезенцев

Вячеслав Мезенцев

1402 likes in 1708 posts.

Group: Moderator

Wrote

Oh I recall you were trying to make Jasymca native to Smath, at least could output of this program be piped to Smath just as with the Maxima plugin?



It is theoretically possible. To do this you need build sources using Java for Windows (create a console application for example). But SMath Studio and Jasymca will have different memory spaces and this is not a native way.

Russia ☭ forever, Viacheslav N. Mezentsev
#179 Posted: 5/11/2016 7:52:27 AM
kilele

kilele

133 likes in 397 posts.

Group: User

I think Davide uses a code converter quite good that he mentioned recently in the forum, maybe the old j2me code of Jasymca would be easier to translate into C#, or perhaps the javascript version of jasymca could be imported into visualstudio though I think the javascript one was not opensourcecode.
#180 Posted: 5/11/2016 8:24:21 AM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote

I think Davide uses a code converter quite good that he mentioned recently in the forum, maybe the old applet code of Jasymca would be easier to translate into C#



Unfortunately to convert from Java to C# the jfftpack (Java translation of fftpack) I've done all manually (but in that particular case are all just math functions, thousands lines to change, but just few things to deal with).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • New Posts New Posts
  • No New Posts No New Posts