Maxima Plugin - Сообщения
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.
WroteI might trade it against hints on how to use the modeller region ;-)
Please check: http://en.smath.info/forum/yaf_postst2339_Modeller-Region.aspx.
Regards.
WroteCan 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.
44011c1e-5d0d-4533-8e68-e32b5badce41.zip (55 КиБ) скачан 73 раз(а).
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 ..."
Update10.sm (35 КиБ) скачан 108 раз(а).
Nice thing with the plot files naming. Thank you

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
WroteBy 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).
WroteBy 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 ;-)
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
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
Seems that you need to update the plugin. The previous version always expected a file name as second argument of Draw2D/3D.WroteHi Martin,
I can see that Maxima Plugin returns valid filename: p="C:\Users\iskarine\Downloads\sys(300,150,2,1).svg",
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)
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.

See the german pdf handbook for what the plots should look like (extension manager-> handbooks)
Draw2D3D.sm (120 КиБ) скачан 94 раз(а).
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(""))= to the sheet. Or try to launch it by clicking the sm file and alternatively, opening the file from a running system. Any differences?
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
Please look at the log files in attachment.
It looks like my problem is the same on WinXP and Win7.
Regards
MaximaLogs.7z (15 КиБ) скачан 59 раз(а).
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.
ЦитатаYou need to use Maxima 5.31.1-1.
What's wrong with using 5.31.2 ? That's what I do.
Igor
WroteWhat'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.
-
Новые сообщения
-
Нет новых сообщений