Maxima Plugin

Maxima Plugin - Сообщения

#41 Опубликовано: 17.12.2013 06:04:37
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

The file_name argument must be inside scatterplot(). In your example, it comes as second argument to Maxima().
scatter.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#42 Опубликовано: 17.12.2013 08:32:08
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Oh my... I simply did not see that, sorry.

Thank you for the reply.
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#43 Опубликовано: 01.01.2014 20:03:47
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Happy new year to the forum users!

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 КиБ) скачан 174 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
Radovan Omorjan 02.01.2014 07:08:00
#44 Опубликовано: 02.01.2014 07:05:40
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Happy new year to you Martin

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 . The results are put in the system as you presented in your example.

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 Б) скачан 118 раз(а).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#45 Опубликовано: 02.01.2014 19:01:04
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Radovan, thanks for the feedback.

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 КиБ) скачан 152 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
Radovan Omorjan 03.01.2014 04:57:00
#46 Опубликовано: 03.01.2014 05:05:31
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

You are welcome

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

maximacrash-2.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 пользователям понравился этот пост
Martin Kraska 03.01.2014 05:24:00
#47 Опубликовано: 03.01.2014 05:26:25
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Thanks, Radovan, I can reproduce the problem and forwarded it to Kay.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#48 Опубликовано: 21.01.2014 18:39:50
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Here is a preview on how graphics could be supported in the Maxima plugin. In the attached sheet, the functions Draww2D() and Draw3D() are defined.
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.
draw_033.png
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
Radovan Omorjan 22.01.2014 03:59:00
#49 Опубликовано: 01.02.2014 15:46:22
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Improved version of the functions Draw2D() and Draw3D(). It is now easier to use gnuplot preamble commands (no need to include the internal terminal settings).
In the attached files there are some more example plots.
Maxima-draw-filledcurves.sm (40 КиБ) скачан 144 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
Radovan Omorjan 02.02.2014 02:47:00
#50 Опубликовано: 10.02.2014 22:12:48
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Plugin updated.

- 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 КиБ) скачан 147 раз(а).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 пользователям понравился этот пост
Radovan Omorjan 11.02.2014 02:29:00
#51 Опубликовано: 11.02.2014 02:31:55
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Hmm...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)?
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#52 Опубликовано: 11.02.2014 05:07:26
Davide Carpi

Davide Carpi

1417 сообщений из 2873 понравились пользователям.

Группа: Moderator

Wrote

Hmm...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
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 пользователям понравился этот пост
Radovan Omorjan 11.02.2014 07:09:00
#53 Опубликовано: 11.02.2014 05:59:20
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

I deactivated the sliders in the example. No need to ask the NSA for the password, it is not that strong. However (Davide, forgive me), I might trade it against hints on how to use the modeller region ;-)
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#54 Опубликовано: 11.02.2014 10:45:25
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Hello Martin,

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 КиБ) скачан 108 раз(а).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 пользователям понравился этот пост
Martin Kraska 11.02.2014 13:27:00
#55 Опубликовано: 11.02.2014 13:26:25
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: Moderator

Seems that Algsys requires the arguments to be lists, as the error message in the log file says. This is an unintended new feature which we shall remove.

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?

Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#56 Опубликовано: 11.02.2014 13:53:45
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

I just was a bit worried about the messages like "memory damaged ..." on my office comuputer and the crash things. Moreover Algsys() also can produce this problem like in this video. The problem is with Ans you defined in the Notebook. I just hope you are aware of all of this and those changes in SMath will not be so often in order to produce this behavior of Maxima plugin. Than would be almost impossible to keep Maxima plugin up to date

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#57 Опубликовано: 11.02.2014 14:50:04
Andrey Ivashov

Andrey Ivashov

2270 сообщений из 3734 понравились пользователям.

Группа: Super Administrator

Radovan,

Wrote

those 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.
#58 Опубликовано: 11.02.2014 15:03:55
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Hello Andrey,
Wrote

Radovan,

Wrote

those 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
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#59 Опубликовано: 11.02.2014 16:04:39
Andrey Ivashov

Andrey Ivashov

2270 сообщений из 3734 понравились пользователям.

Группа: Super Administrator

Yes, thank you. Now I see...

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.
#60 Опубликовано: 11.02.2014 17:55:50
TacticalFAte

TacticalFAte

0 сообщений из 1 понравились пользователям.

Группа: User

Can the maxima plugin be used in Linux? I have maxima installed, but the maxima control window crashes when I try to open it
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений