create Maxima list from multiple return values of a Lisp function
Subject: create Maxima list from multiple return values of a Lisp function
From: Stavros Macrakis
Date: Fri, 17 Jun 2011 09:57:58 -0400
For most operators, I agree. But mlists don't have any default
simplifications, and *shouldn't* have any non-default simplifications on
them. They should always be plain old lists. If you want to use lists to
represent some other object with some other semantics, you should use some
other operator....
-s
On Thu, Jun 16, 2011 at 20:55, Barton Willis <willisb at unk.edu> wrote:
> ----maxima-bounces at math.utexas.edu wrote: -----
>
>
> >(cons '(mlist simp) ...
>
> This is mostly OK, but don't get carried away. In general, the better way
> is (take '(mlist) ...). That way, the expression gets simplified.
> Doing (cons '(mlisp simp) ...) can cause tellsimpafter rules to not happen,
> I think. Maybe there is an opcon macro or something like
> that that will work instead of 'take.'
>
>
> ---Barton
>
>