This seems really powerful and I am increasingly interested in
learning to program in Maxima (and I planning to learn more lisp for
emacs anyways). Can you give me a bit more explanation on the divsimp
function. A brief comment for each line would help me learn a lot.
I get the if atom line (I think) - basically just return whatever the
input was if the input is not a compound expression.
What kind of expressions would have "+" as part 0? That seems like an
expression with a "+" out front. I guess it could come up in
recurssive applications of rules or something. Does it need to also
include "-"?
After that, I need more explanations.
Thanks again, you have been very helpful.
Ryan
On 5/16/07, Stavros Macrakis <macrakis at alum.mit.edu> wrote:
> On 5/16/07, Stavros Macrakis <macrakis at alum.mit.edu> wrote:
> >
> >
> > > Is there a way to do this sort of thing less interactively?
> >
>
> Using the divsimp function I just sent, it turns out that your original
> expression cleans up rather nicely using any one of several divisors, with
> no substparts.
>
> Try divsimp(test, beta), divsimp(test,L), or divsimp(test,EI); they all give
> the same result as the factorsum/substpart/factor solution I showed you
> yesterday.
>
> As I say, that does depend on your knowing something about the structure of
> your expression in advance....
>
> -s
>
>