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

Notification

Icon
Error

Login


16 Pages«<23456>»
Options
Go to last post Go to first unread
Offline mkraska  
#61 Posted : 12 February 2014 01:03:08(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 do not complain about changes in the Plugin interface. My impression was that the required changes were inextensive and well documented. We had to apply them because we use the insert menu as launcher for the control windows.

There were major changes under the hood of the Maxima plugin, which by end of last year reached the stability and maintainability of "a house of cards" (in Kay's words). Still the design is based on string translations using regular expressions. I wish we had the resources to shift that towards a better performing strategy.

Just let us consider the Maxima Plugin as concept demonstration for how it would feel if SMath was a computer algebra system with a versatile plot function and a smart document concept (the last already given). For real life applications it is too slow (try plotting a matrix of more than some hundred data points with Draw2D).

I'd be happy to see the plugin obsolete some day, when there is reliable internal implementations of these features.

Edited by user 12 February 2014 01:04:43(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline Andrey Ivashov  
#62 Posted : 12 February 2014 01:55:05(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)
Originally Posted by: mkraska Go to Quoted Post
I might trade it against hints on how to use the modeller region ;-)

Please check: http://en.smath.info/forum/yaf_...339_Modeller-Region.aspx.

Regards.
Offline mkraska  
#63 Posted : 12 February 2014 15:57:30(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: TacticalFAte Go to Quoted Post
Can the maxima plugin be used in Linux? I have maxima installed, but the maxima control window crashes when I try to open it

We have never testet this (I do not have a working linux environment at hand).
If the problems are just due to the control windows, we might be able to generate a windows-free version.

As a first test I recommend that you replace the current maxima directory under extensions/plugin with the contents of the attached zip file. This is an early version without control windows but with other bugs than the current version. Tested under Windows with 0.96.4909 but might work with the current version as well.

If that works than it might be possible to provide a linux version. But we definitely would need patient testers.
File Attachment(s):
44011c1e-5d0d-4533-8e68-e32b5badce41.zip (56kb) downloaded 57 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline mkraska  
#64 Posted : 24 February 2014 20:04:54(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.

Changes:
- Functions Draw2D() and Draw3D() do not need a filename any more (automatically generated temporary files are used)
- improved translation of derivatives
- Special characters can be conveyed to Gnuplot. You might need to add a line user_preamble="set encoding ..."

File Attachment(s):
Update10.sm (36kb) downloaded 90 time(s).
mkraska attached the following image(s):
update10.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 2 users thanked mkraska for this useful post.
on 24/02/2014(UTC),  on 25/02/2014(UTC)
Offline omorr  
#65 Posted : 25 February 2014 02:00:39(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)
Hello Martin,

Nice thing with the plot files naming. Thank you Good

By the way I realized that Maxima(Solver..) will not recalculate like Maxima(Solve...) if we change something in the region. Actually, MaximaControl(restart) should be in front of Maxima(load(Solver)...I figured out then that enabling-disabling MaximaControl(restart) will force Solver to recalculate - see this video please.

By the way, I can not understand how Solve() worked in your example. I should use Maxima(Solve(...

Regards,
Radovan

Edited by user 25 February 2014 02:02:52(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline mkraska  
#66 Posted : 25 February 2014 02:36:32(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: omorr Go to Quoted Post
By the way I realized that Maxima(Solver..) will not recalculate like Maxima(Solve...) if we change something in the region. Actually, MaximaControl(restart) should be in front of Maxima(load(Solver)...I figured out then that enabling-disabling MaximaControl(restart) will force Solver to recalculate - see this video please.

The problem is due to the command MaximaControl("restart" ) further downstream in the file. This removes the package from Maxima's namespace. If you then want to recalculate the Solver call, then you first have to reload the package (or remove the restart).

Originally Posted by: omorr Go to Quoted Post
By the way, I can not understand how Solve() worked in your example. I should use Maxima(Solve(...

Doesn't the dynamic assistant show the Solve() function? It should work without wrapping it in the generic interface function Maxima(). In fact, Solve() is an SMath function defined in the Maxima plugin which does nothing but call transpose(sys2mat.1(Maxima(solve(...)))).
Maxima(Solve()) calls Solve() in the process of preprocessing the Maxima() function and then drives the result to Maxima and vice versa, just to prove that the translation process is robust enough ;-)


mkraska attached the following image(s):
solver.PNG
solver1.PNG
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline omorr  
#67 Posted : 25 February 2014 09:32:07(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 think you just confirmed what I was thinking about. This will be - If you use some package with Maxima(load..., than using MaximaControl(restart) downstream will cause the package to be removed and can not be used anymore. I just used your file, and if the recalculation did not happen after editing Maxima(Solver... region, the remedy will be just to do few times the appropriate enable-disable Maxima(load... region.

About Solve(..., - my mistake. I did not check the optimization after opening your file. It was set to Numeric but I did not change a thing (strange!). Never mind, I should have checked that, sorry.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline tomtit  
#68 Posted : 25 February 2014 22:13:38(UTC)
tomtit


Rank: Advanced Member

Groups: Registered
Joined: 22/02/2014(UTC)
Posts: 81

Was thanked: 11 time(s) in 10 post(s)
Hi Martin,
I am using your Portable distribution on Win7-64bit.
Update10.sm doesn't work for some strange reason.
I can see that Maxima Plugin returns valid filename: p="C:\Users\iskarine\Downloads\sys(300,150,2,1).svg",
but doesn't create the .svg file.
And I see some puzzling discrepancy in using windows and linux path separators.
The Plugin always reports a mixture of them, sometimes "/", sometimes "\".
Which one is valid, "\" or "/".
When I replaced all "\" to "/" in the maxima.xml file, it seems getting better.(A bit less errors).
Best regards,
Igor
Offline mkraska  
#69 Posted : 25 February 2014 23:26:38(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: tomtit Go to Quoted Post
Hi Martin,
I can see that Maxima Plugin returns valid filename: p="C:\Users\iskarine\Downloads\sys(300,150,2,1).svg",
Seems that you need to update the plugin. The previous version always expected a file name as second argument of Draw2D/3D.

With the path separators I never had a problem. In Maxima, both types should work. If there are problems, please give examples including the log contents (Insert> Maxima> Log)
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline tomtit  
#70 Posted : 26 February 2014 00:15:38(UTC)
tomtit


Rank: Advanced Member

Groups: Registered
Joined: 22/02/2014(UTC)
Posts: 81

Was thanked: 11 time(s) in 10 post(s)
After updating plugin I see:
p="C:\util\smath\extensions\plugins\44011c1e-5d0d-4533-8e68-e32b5badce41\gnuplotTmp\01kn1030.aij.svg"
But the .svg file was not created and the place-holder of the graph remained empty.
But I see that empty directory ...\gnuplotTmp\ has been created.
Sad

Edited by user 26 February 2014 00:18:03(UTC)  | Reason: Not specified

Offline mkraska  
#71 Posted : 26 February 2014 00:24:28(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)
Can you try the attached example file? You can remove the snapshot regions. Some of the plots do not work here either.

See the german pdf handbook for what the plots should look like (extension manager-> handbooks)

Edited by user 26 February 2014 00:27:00(UTC)  | Reason: Not specified

File Attachment(s):
Draw2D3D.sm (121kb) downloaded 77 time(s).
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline tomtit  
#72 Posted : 27 February 2014 17:52:14(UTC)
tomtit


Rank: Advanced Member

Groups: Registered
Joined: 22/02/2014(UTC)
Posts: 81

Was thanked: 11 time(s) in 10 post(s)
Hi Martin,
I'm sending a screenshot for the test, you provided.
Regards
tomtit attached the following image(s):
maxima_test.png
Offline mkraska  
#73 Posted : 27 February 2014 21:16:28(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)
Hi Igor,
the first two plots shown should in principle work, the third plot shows the same error message as on my system. There is some problem with the function polar() in the interface.

The log message for the second plot looks fine, there should be a file of the name specified in your system. Try to search for it.

Maybe, there is a path issue? Try to add CurrentDirectory(DocumentDirectory(""Wink)= to the sheet. Or try to launch it by clicking the sm file and alternatively, opening the file from a running system. Any differences?
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline tomtit  
#74 Posted : 03 March 2014 23:29:31(UTC)
tomtit


Rank: Advanced Member

Groups: Registered
Joined: 22/02/2014(UTC)
Posts: 81

Was thanked: 11 time(s) in 10 post(s)
Hi Martin,
Unfortunately, it is not a path issue.
Whatever I try, the result was the same - empty graphics place-holders.
Looks like Maxima can't create picture files on my file system (Win7-64b, administrator).
Regards,
Igor
Offline mkraska  
#75 Posted : 04 March 2014 00:10:45(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)
Can you please send the log file contents? (Insert> Maxima> Log)
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline tomtit  
#76 Posted : 05 March 2014 19:42:30(UTC)
tomtit


Rank: Advanced Member

Groups: Registered
Joined: 22/02/2014(UTC)
Posts: 81

Was thanked: 11 time(s) in 10 post(s)
Hi Martin,
Please look at the log files in attachment.
It looks like my problem is the same on WinXP and Win7.
Regards
File Attachment(s):
MaximaLogs.7z (16kb) downloaded 43 time(s).
Offline mkraska  
#77 Posted : 05 March 2014 22:35:01(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)
You need to use Maxima 5.31.1-1. That is the most recent version where the draw package works from within the Maxima plugin. I shall add that hint to the topic starter post and to the interactive book.

Also when switching Maxima versions, you need to clear the binary-gcl directory (in your user directory, search for the dir name), because the object files are not compatible between Maxima versions but share the same location and names.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 2 users thanked mkraska for this useful post.
on 05/03/2014(UTC),  on 05/03/2014(UTC)
Offline tomtit  
#78 Posted : 06 March 2014 00:31:07(UTC)
tomtit


Rank: Advanced Member

Groups: Registered
Joined: 22/02/2014(UTC)
Posts: 81

Was thanked: 11 time(s) in 10 post(s)
Martin,
Quote:
You need to use Maxima 5.31.1-1.

What's wrong with using 5.31.2 ? That's what I do.
Igor
Offline mkraska  
#79 Posted : 06 March 2014 01:58:19(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: tomtit Go to Quoted Post
What's wrong with using 5.31.2 ? That's what I do.
Igor

Currently there is no alternative. Either you switch to 5.31.1-1 or you can't use the draw package via SMath.

I cannot reproduce the problem in wxmaxima, thus obviously it is related to the plugin rather than to Maxima. I once asked in the maxima forum if they have an idea what changes from 5.31.1-1 to 5.31.2 could cause compilation problems when loading the draw package via socket connection, but got no answer. May be, some future version will work again, just by chance. Perhaps one has to be able to make a windows built of Maxima in order to identify the cause fo the problem. This currently is beyond my ambitions.
Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
Offline omorr  
#80 Posted : 11 March 2014 23:01:56(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)
Am I missing something here? Maxima prime operator diff(1) does not give the correct answer.

Regards,
Radovan

omorr attached the following image(s):
primeop.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
thanks 1 user thanked omorr for this useful post.
on 11/03/2014(UTC)
Users browsing this topic
Guest (3)
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«<23456>»
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.