On Sat, 26 Feb 2005 21:47:49 -0800 (PST), Robert Dodier
wrote:
> To get a 1-d Maxima string: (setq s (meval '(($string) $foo)))
>
> To output to a stream: (displaf $foo stream)
> (like displa, but to a stream)
This is mildly useful, thanks.
> About making the coding less painful -- there are macros
> m+, m-, m*, m//, and m^ to carry out addition, subtraction,
> multiplication, division, and exponentiation, which return a
> number if the operands evaluate to numbers and an expression
> otherwise. So instead of writing '((mplus simp) $foo $bar)
> one could write (m+ '$foo '$bar). So I think [...]
Those are almost exactly what I was looking for. The only problem is
when I have to deal with functions like sin and cos, and that isn't
much of a problem.
> Anyway these are just some random ideas. Hope this helps,
> and I wouldn't be surprised if there are much better ways
> to do any or all of this.
It's good enough for me (so far). Thanks for the help.
-Peter