Nice generalization! The old code allowed constants like %e as the axis
variable, so why not also allow 2.718 and 87/32? :-)
More seriously, does the code know how to bind a subscripted variable
locally?
-s
On Fri, Feb 22, 2013 at 2:50 PM, Robert Dodier <robert.dodier at gmail.com>wrote:
> On 2013-02-22, Raymond Toy <toy.raymond at gmail.com> wrote:
> >>>>>> "Hugo" == Hugo Coolens <coolens at kahosl.be> writes:
>
> > Hugo> plotting: range must be of the form [variable, min, max]; found:
> > Hugo> [tau[12],0.1,5]
>
> > Perhaps it's a bug that plotd2 doesn't like tau[12] as the independent
> > variable.
>
> Yeah -- plotting code assumes variables are simple symbols. Following
> patch relaxes that assumption, and seems to have the desired effect.
> I'll investigate some more before pushing this patch.
>
> best
>
> Robert Dodier
>
> PS.
> $ git diff src/plot.lisp
> diff --git a/src/plot.lisp b/src/plot.lisp
> index d344265..badf3a7 100644
> --- a/src/plot.lisp
> +++ b/src/plot.lisp
> @@ -1675,7 +1675,7 @@ output-file))
> (defun check-range (range &aux tem a b)
> (or (and ($listp range)
> (setq tem (cdr range))
> - (symbolp (car tem))
> + ($mapatom (car tem))
> (numberp (setq a ($float (meval* (second tem)))))
> (numberp (setq b ($float (meval* (third tem)))))
> (< a b))
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>