Maxima: Piecewise function differentiation and simplification.
Subject: Maxima: Piecewise function differentiation and simplification.
From: Constantine Frangos
Date: Sat, 2 Aug 2008 11:54:23 +0200
Following your suggestion, the following modification seems to work with
maxima 5.12:
if ...... and verbify(op(e)) = verbify("if" ) then ........
( I will try to download maxima 5.16 later).
Regards,
C. Frangos.
On Friday 01 August 2008 07:45, you wrote:
> On 7/31/08, Constantine Frangos <cfrangos at telkomsa.net> wrote:
> > (%i101) odd_args(vpen);
> >
> > (%i102) even_args(vpen);
>
> Well, I wouldn't expect these operations to yield useful results;
> here's what odd_args and even_args are supposed to do:
>
> odd_args (if a then b elseif c then d else e);
> => [a, c, true] /* i.e. these are the conditions */
>
> even_args (if a then b elseif c then d else e);
> => [b, c, e] /* i.e. these are the branches */
>
> > The step, op(vpen), returns ?mcond, instead of "if", and the relevant
> > part of the program is not executed.
> >
> > Is it possible to modify the program so that it runs correctly (with
> > maxima 5.10, 5.12) ?
>
> Try replacing the test op(e) = "if" with verbify(op(e)) = "if" .
>
> Please consider updating the most recent version -- many things
> have changed since 5.12. There will be a 5.16 version in a week
> or two.
>
> best
>
> Robert Dodier
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
--
Constantine Frangos, Pr.Eng.
Professor
Dept. of Statistics
University of Johannesburg
Auckland Park Kingsway Campus
P O Box 524
Auckland Park
Johannesburg 2006
South Africa
Tel: +27-11-559-2452
Fax: +27-11-559-2832
e-mail: cfrangos at uj.ac.za , cfrangos at telkomsa.net