operator for equations, was: Re: [Maxima] Plot options foo=bar vs [foo, bar]
Subject: operator for equations, was: Re: [Maxima] Plot options foo=bar vs [foo, bar]
From: Jaime E. Villate
Date: Mon, 12 Jun 2006 17:14:20 +0100
On Sun, 2006-06-11 at 18:50 -0700, Daniel Lakeland wrote:
> plot2d(expr,x in a..b,
> plot_type:gnuplot,plot_options:[foo:bar,baz:quux]);
I like the use of : instead of =
For the intervals, I'd prefer what Robert Dodier proposed:
plot2d(expr, x in range(a,b), plot_format:gnuplot, option_foo: bar,...)
and an interval a <= x <=b with steps of length d:
plot2d(expr, x in range(a,b,d), plot_format:gnuplot, option_foo:
bar,...)
or any other function name instead of range().
When called outside of plot2d, that function could return a list of
values:
(%i1) range(2.2,3.5,0.4);
(%o1) [2.2, 2.6, 3.0, 3.4]
And we could ever accept something such as:
plot2d(log(x), x in [0.1,0.2,0.5,1,2], bbox: [0,-3,2,1])
Jaime