|
From: 有坂富雄 <ari...@ic...> - 2017-07-30 07:35:17
|
Hello,
I think the error happens due to "xmaxima".
(the value of "stepsize" included in xmaxima has been changed.)
Following examples included in manual of Maxima cause the same error.
plotdf([v,-k*z/m], [z,v], [parameters,"m=2,k=2"],
[sliders,"m=1:5"], [trajectory_at,6,0])$
plotdf([y,-(k*x + c*y + b*x^3)/m],
[parameters,"k=-1,m=1.0,c=0,b=1"],
[sliders,"k=-2:2,m=-1:1"],[tstep,0.1])$
In my case, next patch fixed this problem.
----------------------------------------
$ diff -u xmaxima.orign xmaxima
--- xmaxima.orign 2017-06-02 17:56:45.000000000 +0900
+++ xmaxima 2017-07-30 14:52:07.000000000 +0900
@@ -5355,7 +5355,7 @@
{psfile "" "A filename where the graph will be saved in PostScript."}
{nobox 0 "if not zero, do not draw the box around the plot."}
{axes "xy" "if zero, no axes are drawn. x, y or xy to draw the axes."}
- {number_of_arrows 225 "Approximate. Choose a square number as the number of arrows to draw"}
+ {number_of_arrows 196 "Approximate. Choose a square number as the number of arrows to draw"}
{nolegend 0 "if not zero, do not write down the legend."}
}
----------------------------------------
My environment is the following:
$ wish
% info patchlevel
8.6.6
% exit
$
$ rmaxima
(%i1) build_info();
(%o1)
Maxima version: "5.40.0"
Maxima build date: "2017-06-02 03:14:38"
Host type: "x86_64-apple-darwin10.8.0"
Lisp implementation type: "SBCL"
Lisp implementation version: "1.3.14"
----------------------------------------
Thanks,
Tomio Arisaka
On 2017-7-30, Robert Dodier <rob...@gm...> wrote:
> On 2017-07-29, Jaime Villate <vi...@fe...> wrote:
>
>> Here is a feature that only works if xmaxima is correctly installed
>> (direction fields)
>>
>> plotdf([-y,x]);
>>
>> To make that command work, even if you are using Wxmaxima or console
>> Maxima, you need to run xmaxima in the background. As a matter of fact,
>> somebody made some recent commits to Xmaxima which have completely
>> broken plotdf, even in Unix. It used to run fine in version 5.37.3 but
>> since version 5.38.0 it stopped working.
>
> When I try plotdf([-y, x]) with current Maxima, I get an error about
> "Input file has syntax errors". I've pasted the whole message below.
> What are you seeing?
>
> FWIW I glanced at the output of
> git diff branch-5_37-base...branch-5_38-base -- interfaces/xmaxima and
> and I don't see anything related to that.
>
> best
>
> Robert Dodier
> PS.
> Input file has syntax errors
> domain error: argument not in valid range
> while executing
> "expr {$fac * $dfx}"
> (procedure "drawDF" line 64)
> invoked from within
> "drawDF $win $tinitial"
> (procedure "replotdf" line 14)
> invoked from within
> "replotdf $win"
> (procedure "plotdf" line 28)
> invoked from within
> "plotdf -dxdt "-1.0*y" -dydt "x" -xaxislabel x -yaxislabel y "
> ("eval" body line 1)
> invoked from within
> "eval $inputdata"
>
|