Subject: Mathematica 8 has conditional expressions
From: Richard Hennessy
Date: Tue, 12 Jun 2012 13:46:03 -0400
"Note also (maybe for Rich H.) the definition for piecewise may be of
interest."
I know about this. Maple also has one. The Mathematica way for defining
piecewise functions is similar to Maple, but both differ from pw.mac. I
don't know which is better, lists of expression bound to inequalities or
lists of expressions separated by numbers. I think the pw.mac way is fine
but if enough people want me to change it, I would.
I thought it would be good to do more work on pw, like being able to solve a
complex ode with step functions in the input. Mathematica 8 can't do this
for very simple cases.
DSolve[{D[f[x],x]=Abx[x]},x]
Mathematica loops forever, apparently, when the answer is pretty easy to get
from inspection. Maxima's ode2() can do this kind of problem on the other
hand, so maybe this is beyond the scope of pw, I am not the maintainer for
ode2().
I wrote pw.mac when I was unemployed and not in school. I had plenty of
free time on my hands. Now things are much different. I am in school
fulltime. I will graduate in about a month. Then I will have to get a job.
The harsh reality is, sooner or later the money runs out. Another issue is
that I don?t want to do any more packages in Maxima script, I would want to
do them in Lisp, assuming I had time and energy to work on this as a hobby
after I get a job. That is a questionable assumption however.
Rich