Also by the way I may abandon matrices altogether and just use a list structure as the defining entity for a piecewise
function.
R
----- Original Message -----
From: "Richard Hennessy" <rvh2007 at comcast.net>
To: "Barton Willis" <willisb at unk.edu>
Cc: "Maxima List" <maxima at math.utexas.edu>
Sent: Friday, October 03, 2008 2:11 AM
Subject: Re: [Maxima] Assigning custom properties
Hi Barton and list members,
I tried this but matrices are non atoms so it does not help. I think I am going to stick to something simpler like just
making the fourie package aware and able to handle piecewise functions. The rest of Maxima will not be able to do
anything right with these new critters, but I am going to make package fourie work with them.
BTW I have changed the dimensions of the matrices to 4 by n instead of 11 by n. I don't like strings inside a matrix.
I wish there were a way to tag a matrix with a new property and test to see if a matrix has that new property. Do you
think something like this can be done in Lisp code instead of Maxima code? I am afraid to mess with Maxima internals
because I don't want to break anything. That is why just fourie will know about these critters for now. I am also
changing the names of my functions to all have pw at the beginning so I will not be redefining integrate or diff. There
will be pwintegrate and pwdiff instead.
Thanks,
Rich
----- Original Message -----
From: "Barton Willis" <willisb at unk.edu>
To: "Richard Hennessy" <rvh2007 at comcast.net>
Cc: "Maxima List" <maxima at math.utexas.edu>
Sent: Tuesday, September 30, 2008 11:08 PM
Subject: Re: [Maxima] Assigning custom properties
-----maxima-bounces at math.utexas.edu wrote: -----
>I would like to assign a property to an object or expression in Maxima
>that is not already known to Maxima. For example
>I would like to be able to say, declare(expr, 'piecewise) even though
>there is no such thing to Maxima.
Non-atoms cannot be declared, but you can do this:
(%i1) declare(piecewise,feature)$
(%i2) declare(f, piecewise)$
(%i3) featurep(f, piecewise);
(%o3) true
Barton
_______________________________________________
Maxima mailing list
Maxima at math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima