 |
|
| Science Forum Index » Math - Symbolic Forum » Trying out maxima... |
|
Page 1 of 1 |
|
| Author |
Message |
| rouben... |
Posted: Sun Nov 01, 2009 5:04 am |
|
|
|
Guest
|
Motivated by recent posts on this newsgroup about alternatives
to Maple and Mathematica, I tried out maxima but immediately
ran into trouble. Perhaps someone with more experience with
maxima can tell me what I am doing wrong.
The function plotdf is maxima's numerical integrator for initial
value problems for differential equations. The first example in
its documentation is:
dy/dx = y + exp(-x),
y(2) = -0.1.
So I loaded the plotdf package and then plotted the solution, as
specified in the manual:
load("plotdf")$
plotdf(exp(-x)+y,[trajectory_at,2,-0.1])$
This plots the solution within the default window [-10,10]x[-10,10].
However, the graph extends quite a bit outside the plotting window
from the bottom. Is this the way it's supposed to be?
Then I restricted the plotting range to 0 < x < 6, as in:
plotdf(exp(-x)+y,[trajectory_at,2,-0.1], [x,0,6])$
Now the graph extends quite a bit outside the plotting window from
the left and right.
Then I restricted the plotting range to 0 < x < 7, as in:
plotdf(exp(-x)+y,[trajectory_at,2,-0.1], [x,0,7])$
This generates:
Error: Input file has syntax errors
and refuses to plot anything.
Here are the package details, if it matters:
OS: Ubuntu Linux
Maxima 5.13.0, using Lisp GNU Common Lisp (GCL) GCL 2.6.8
Gnuplot version 4.2 patchlevel 2
--
Rouben Rostamian |
|
|
| Back to top |
|
|
|
| Rouben Rostamian... |
Posted: Sun Nov 01, 2009 5:56 am |
|
|
|
Guest
|
In my previous post I wrote about the trouble I was having
with maxima. An upgrade to a newer version resolves the
issues. The test problems now work correctly.
--- old setup (bad) ------------
Maxima 5.13.0, using Lisp GNU Common Lisp (GCL) GCL 2.6.8
Gnuplot version 4.2 patchlevel 2
--- new setup (good) -----------
Maxima 5.17.1 using Lisp GNU Common Lisp (GCL) GCL 2.6.7
Gnuplot version 4.2 patchlevel 5
---- original message -------------------------------------------
Motivated by recent posts on this newsgroup about alternatives
to Maple and Mathematica, I tried out maxima but immediately
ran into trouble. Perhaps someone with more experience with
maxima can tell me what I am doing wrong.
The function plotdf is maxima's numerical integrator for initial
value problems for differential equations. The first example in
its documentation is:
dy/dx = y + exp(-x),
y(2) = -0.1.
So I loaded the plotdf package and then plotted the solution, as
specified in the manual:
load("plotdf")$
plotdf(exp(-x)+y,[trajectory_at,2,-0.1])$
This plots the solution within the default window [-10,10]x[-10,10].
However, the graph extends quite a bit outside the plotting window
from the bottom. Is this the way it's supposed to be?
Then I restricted the plotting range to 0 < x < 6, as in:
plotdf(exp(-x)+y,[trajectory_at,2,-0.1], [x,0,6])$
Now the graph extends quite a bit outside the plotting window from
the left and right.
Then I restricted the plotting range to 0 < x < 7, as in:
plotdf(exp(-x)+y,[trajectory_at,2,-0.1], [x,0,7])$
This generates:
Error: Input file has syntax errors
and refuses to plot anything.
Here are the package details, if it matters:
OS: Ubuntu Linux
Maxima 5.13.0, using Lisp GNU Common Lisp (GCL) GCL 2.6.8
Gnuplot version 4.2 patchlevel 2 |
|
|
| Back to top |
|
|
|
| Peter Nachtwey... |
Posted: Thu Nov 05, 2009 4:25 am |
|
|
|
Guest
|
I am using the latest wxMaxima. The plotdf example you posted never completes. I noticed that this is one of the examples in the help.
I usually use ODE2, IC2 and then wxplot2d()
Peter Nachtwey |
|
|
| Back to top |
|
|
|
| Peter Nachtwey... |
Posted: Thu Nov 05, 2009 4:30 am |
|
|
|
Guest
|
oops, it did work. The plot window was hidden behind other windows I had open. I learned something new. I can drag the trajectory with my mouse, cool. Tck/Tk?
Now back to the original problem.
Peter Nachtwey |
|
|
| Back to top |
|
|
|
|
|
All times are GMT - 5 Hours
The time now is Mon Nov 30, 2009 2:14 am
|
|