Maxima Plugin - Messages
WroteI can not figured out what is going on here by looking at the log file. Please look at the picture and the attached file. If I use numbers inside distrib package functions I have the result, but if I use variables - problems arise. Am I missing something here?
This is a distrib package issue. By whatever reason, some functions in distrib seem to insist on floating point values for some of their arguments in order to issue a numeric result. Otherwise they return the unevaluated function form, which you do not see due to numeric optimization of your result display regions.
[MATH lang=eng]Maxima(quantile_student_t(α/2,30))=quantile.student.t(1/40,30)[/MATH]
[MATH lang=eng]Maxima(quantile_student_t(α/2,30.0))=-2.0423[/MATH]
In the current experimental SVN-version of Maxima plugin, there is no conversion of underscores to periods any more.
Here is the code of quantile_student_t:
quantile_student_t(q,n):=block([cp:control1(n), cq:controlq(q), fq:float(q), aux, sgn],
if cp=-1 or cq=-1 then error("Illegal parameter"),
if cp=0 or cq=0 then return(funmake('quantile_student_t,[q,n])),
if fq=0.0 then return('minf),
if fq=1.0 then return('inf),
if fq=0.5 then return(0),
if numberp(q) and numberp(n) and
(numer or ?floatp(q) or ?floatp(n))
then(if fq<0.5
then (aux : 2*fq,
sgn : -1)
else (aux : 2*(1-fq),
sgn : 1),
sgn*sqrt(n*(1 / ?iibeta(aux,float(n/2),0.5)-1)) )
else funmake('quantile_student_t,[q,n]) )$
Regards,
Radovan
WroteThank you Martin. I have to admit that it is a bit strange and I would hardly guessed that. Sorry, but I did not quite understand why this is necessary in SMath now but not in wxMaxima for instance (see the picture). Therefore, due to the changes in Maxima plugin this example - distrib-maxima is outdated and does not work anymore.
To me that looks strange as well. However, it is not the plugin to blame. Your wxMaxima example uses 5.31.1-1, whereas the plugin seems to use 5.33 in your previous post. There seem to be differences in the distrib package between these versions. I'll ask in the maxima list about the backgrounds.
Edit: All the problems are gone if you switch the definition of alpha from symbolic to numeric optimization. (As always ;-)
In wxMaxima, a is considered to be a float and so is a/2. In SMath, defining a as 0,05 with symbolic optimizaition, immediately changes that to 1/20, which is not a float anymore.
I tried your previous example at my home computer in wxMaxima (Maxima 53.3.0) and and it is the same problem with SMath and wxMaxima regarding floats and distrib package.
A bit confusing,

Regards,
Radovan
[EDIT]
Wrote
Edit: All the problems are gone if you switch the definition of alpha from symbolic to numeric optimization. (As always ;-)
In wxMaxima, a is considered to be a float and so is a/2. In SMath, defining a as 0,05 with symbolic optimizaition, immediately changes that to 1/20, which is not a float anymore.
I can not simply believe it



Changes:
- SS-94 Portable configuration enabled
- SS-95 Path selection dialog in the Maxima settings window
- SS-88 Fit() for curve fitting implemented
- SS-81 Translation problem with elliptic_e() fixed
- SS-128 Translation problem with user_preamble fixed
- SS-148 Translation of , and _ in names reworked
Updates to come soon:
- Portable version including pre-installed Maxima
- Image region with external edit capability (Kay is in contact with uni for update/upload details)
- interactive handbook
- Draw help snippet (option help texts in english)
Wrote
Updates to come soon:
- Portable version including pre-installed Maxima
- Image region with external edit capability (Kay is in contact with uni for update/upload details)
- interactive handbook
- Draw help snippet (option help texts in english)
Thank you all

Martin, what did you mean by "- Image region with external edit capability"? Just curious.
Regards,
Radovan
WroteMartin, what did you mean by "- Image region with external edit capability"? Just curious.
I think he means that this project will be embedded in the maxima plugin

WroteWroteMartin, what did you mean by "- Image region with external edit capability"? Just curious.
I think he means that this project will be embedded in the maxima plugin
Ah yes, I remembered now. Thank you Davide

Regards,
Radovan
Wrote
Martin, what did you mean by "- Image region with external edit capability"? Just curious.
As Davide said, this is the former ImageEditRegion, which is derived from uni's image region and finally some day will be merged with it again. Kay is in contact with uni in order to manage the details. Meanwhile, in the portable distribution, I just exchanged the imageregion.dll in the imageregion plugin. This is somewhat dirty but I just want to roll out the portable version. The region is completely independent of Maxima.
Still there is work on Maxima-based interactive plot regions, but that is not coming soon.
A ready-to-use portable version including a full Maxima installation is available for download. The download is approx. 60 MB, extracted you get 160 MB, mainly due to Maxima, but also due to the documentation.
Basically, you can unzip the file wherever you want and launch SMathStudio_Desktop.exe.
More fun is gained if you link file extensions .sm to SMathStudio_Desktop.exe and png files to some image editor, say, Paint.
The attached screenshot is from welcome.sm in the root directory of the distribution.
There is a new Image Region included.
Try Insert> Image. You get an empty region with some text informing you about the options:
- Double click to launch the image editor with an empty image - that's how you can create illustrations on the fly
- Import an existing image via context menu
- Specify a file name in the placeholder to dynamically display that file
- Specify a matrix to dynamically display it's contents (just like with the original image region by uni
You can dynamically (with the mouse) resize the region and reset it to the original size via context menu.
The expression in the placeholder is evaluated by the region, thus you can place any commands generating file names or matrices just there. And hide the whole lot if you wish. No need for intermediate storage variables any more.
The image region is not yet in the online gallery of the extension manager. Kay and uni have to find a way how we can publish the region without irritating the user by two image regions.
When testing the distribution on my wife's notebook, I had to reset the screen font scaling to 100% in order to not spoil the formatting of the interactive handbook.
Please report any issue.
SS-159
This might be related to wrong results provided by Optimization None (SS-160). However, if at all, that can only be partial excuse, because for optimization symbolic or numeric the bug appears depending on what the variable name is.
EDIT: This problem is mitigated by switching to SMath release 0.97.5280 (SS-160 fixed)
By whatever reason, the region looses contact to the temporary image file. This happened to me three time just when I tried to save the file. Then I got an error message saying that the file does not exist.
In that case the only chance to keep your image is to make a screenshot, delete the region, create a new one, open in the editor and paste the screenshot.
Sorry for the inconvenience, we try to fix that.
WroteThe ImageRegion as contained in the portable SMath with Maxima distribution seems to occasionally loose data.
The problem is that multiple instances of SMath use the same scratch dir for images. When one of the instances is closed, then this dir is cleaned up.
To be safe, just run a single instance (multiple open documents are ok).
I have also problems with the eigenvectors-funktion.
Since some days I use the very useful and well dokumentationed Maxima-Plugin.
Maxima: 5.33.0.1
SMath: 097.5154
There eare two Problems at the moment:
* more and more maxima-tasks are startet, so the system crashed (see the screenshot)
* eigenvalues in SMath can't be solved but maxima can (there
I tried to find out the reasens but i didn't.
Thanks for your help and best regards
Wrote
There eare two Problems at the moment:
* more and more maxima-tasks are startet, so the system crashed (see the screenshot)
* eigenvalues in SMath can't be solved but maxima can (there
Thanks for reporting the problem.
I can reproduce the problem with SMath 0.97.5301 and Maxima 5.33.0
However, I do not get a solution in Maxima (may be I did not wait long enough).
The handling of hanging maxima processes is poor in the plugin. I'll add the example to the bug tracking system.
It should be very simple but I have spent an hour trying to extract result of the maxima Solve() function so it can be used further in the notebook.
This is what I did and it does not quite work. Do you guys have a suggestion? I feel that I am missing something crucial..
Thank you!!!
Page1.sm (6 KiB) downloaded 86 time(s).
Changes:
- SS-140 and SS-178 improved handling of hanging processes
- SS-152 Translation bug with at() fixed
- SS-166 Missing bracket fixed
- SS-184 Correct tramslation of decimal exponents
- SS-185 Improved info texts
- New interactive Maxima Draw2D/3D regions
- Enhanced png Draw output

Of course, it is a bit unstable at the moment. Sometimes strange things happen. The part of the notebook moves into the Draw2D(), Draw3D() region and scrolling is inside that region. SMath crashes then. I can not reproduce this at the moment, sorry.
Regards,
Radovan
-
New Posts
-
No New Posts