Maxima Plugin - Сообщения
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator

Thank you for the reply.
Plugin updated.
Changes/Features:
- List and matrix translation improved, mixed and nested arrays now supported
- arcus and area functions are correctly translated
The changes improve the access to many functions in Maxima, which require mixed
or nested list/matrices as input or produce such output.
Also, note that the example shows how to produce scalable svg with the draw
package.
Extended doc in SVN and update of inofficial version coming soon...
Update8.sm (47 КиБ) скачан 257 раз(а).
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator

I just tried your example file. It crashes my SMath, but never mind. I copied parts of your file into another one to see what causes the problem.
I just wanted to thank you for stats package. It seems it is working

Resizing of svg plot example is working for me as well. At the moment I do not know the details of it and how to use it for other plots using draw package, but never mind - I will figure it out sooner or later.
It seems that the problem and crash of SMath appeared just at the beginning of your example (linearalgebra regions also did not produce output). I copied the regions and "stack empty" errors appeared sometimes, sometimes crash happened. It does not look that those regions should cause problems. Actually, only by disabling the calculation of the first two math regions in your example (these first two like in the picture will suppress the SMath crash - calling functions from linearalgebra will still fail).
See the picture and the log file please.
Regards,
Radovan
Maxima.zip (814 Б) скачан 185 раз(а).
I don't know what could be the cause for the crash. You might try
- to close and re-open SMath
- to verify that you have the most current version of the Plugin (there were 2 bugfixes in the Gallery in the last two days.
- you might try the binary from SVN (under bin/debug)
- you might try to call the debugger from the Maxima command by adding a second argument: Maxima(...;debug) and go through the steps of the translation process.
As for the plot commands: Now, most of the Maxima handbook plots should be reproducible in SMath without error messages. To learn plot control, best is to try the Maxima handbook examples. If there are any problems with translation from Maxima to SMath input, let me know.
For the gnuplot preamble commands, see the gnuplot documentation. I found the example page quite helpful.
In order to be really user-friendly, we would need sort of control dialog similar to Mathcad with fast and obvious access to the options. Also, mouse interaction should be as extensive as possible. But that would require a custom region with either Maxima or directly gnuplot in the background.
For now, I could imagine to set up some support functions of the type
Draw2D(opt_list,...)=filename, where filename is a unique random name. Putting this directly into the ImageRegion placeholder would make up a rather comfortable and yet flexible arrangement.
Section Maxima Plotoptions Draw.sm (126 КиБ) скачан 229 раз(а).
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator

I see your point in the drawing with many options and a problem related to them. I am not that experienced with this, and to be honest I forgot them constantly. It is impossible to memorize them. That is why we must have them available all the time.
At the moment just wanted to point out about the crashing problem of the few mentioned regions. If you have the patience just see these two videos.
Maxima crashes SMath
Debug - extra commas?
Or see the pictures, where I suppose might be a problem.
Regards,
Radovan

They take a list of options and objects as first argument, the output file name as second argument and optionally a two element list or matrix as size specification (defaults to 300x240 pixels).
Filenames can be given with .svg or .png extension, the output format is set accordingly. If no extension is given, it defaults to .svg. The functions return the actual name of the produced output.
For display, image regions are used. If the image region would evaluate the file name expression, the complete command for making the plot could reside in the placeholder and eventually be hidden. For now, the file name must be assigned to a variable and that variable must be put in the placeholder of the image region.
The attached sheet contains snapshot regions, as it was made to produce images for the pdf-handbook.
The examples in the attached sheet are mainly from the Maxima-Handbook, but also from the Plot3D plugin by uni (Klein bottle). The screenshots show the complete code required to produce the plots (except init like setting current dir to document directory and eventual reset of Maxima incl. loading of the draw package.
After some playing around and eventual feedback from the forum we shall implement the proposed functions in the Maxima plugin. Feel free to test and propose improvements.

In the attached files there are some more example plots.
Maxima-draw-filledcurves.sm (40 КиБ) скачан 223 раз(а).
- Adjustments to plugin interface changes
- bug fixes
- functions Draw2D() and Draw2D()
- improved messages on pos/neg assumptions
- xml settings file with options for customization
EDIT:
You might need to execute the example twice in order to get the image paths right. Is on the todo list.
The translation process is purely regexp based and slow, but more reliable than ever.
Plotting more than 200 points (if not Maxima-generated) is not recommended.
Update9.sm (24 КиБ) скачан 223 раз(а).
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator
WroteHmm...I can not find the Slider Region in the Extensions Gallery. Where it is? It is made by Davide but I could not even guess the password this time (as I usually do)?
Don't worry, will be relased ASAP :d
![2014-02-11 10_08_24-SMath Studio Desktop - [test.sm_].png](/ru-RU/files/Download/kMopHY/2014-02-11-10_08_24-SMath-Studio-Desktop---[test.sm_].png)
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator
It seems there is a bit unstability in Maxima plugin and the recent SMath nightly build. I used both on my Win7(x86) and Win7(64). On x86 performs better, but sometimes crashed when using Reference Notebook. If not crashed than [Maxima] no data availiable appered - see the picture pleas. On x64 it is much worse. I attached the logfile and your file. It crashes SMath. You can also see this on the video
Regards,
Radovan
Testing.zip (7 КиБ) скачан 165 раз(а).
The function, however, should throw a standard error message instead of complaining of no data or just crashing (which I confirm).
Meanwhile, you might use Solve(), which I use by default for solving equations or systems. Have you ever had an example that Alsgsys could handle but Solve could not?
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator
Regards,
Radovan
Wrotethose changes in SMath will not be so often
What changes do you mean? I don't think this is something was introduced because of API changed.
Anyway please do let me know if there is something I can help.
Best regards, Andrey Ivashov.
325 сообщений из 2 052 понравились и 1 не понравились пользователям.
Группа: Moderator
WroteRadovan,
Wrotethose changes in SMath will not be so often
What changes do you mean? I don't think this is something was introduced because of API changed.
Anyway please do let me know if there is something I can help.
I am not able to follow what changed - I am not a programmer. Actually, I was just thinking from the point of users and plugin makers. I remember uni mentioned that there is no definite agreement about the plugins (do not know what that actually means). I also remember there some time ago a similar situation when Extension Gallery was introduced. Plugin makers had to change the things. I do not how much time would take to stabilize the things regarding plugins. I hope I made myself understood.
Regards,
Radovan
Last change you're talking about was made only for plug-ins which adds new Region types. Maxima plug-in is another type of plug-ins - nothing was changed there.
It seems, that current issue is something not related to API. However the reason still can be in SMath Studio binaries...
Best regards.
-
Новые сообщения
-
Нет новых сообщений