simplify



On Sep 12, 2009, at 2:19 PM, Barton Willis wrote:

>
>
> And...in your cost function, consider using 'reduce' instead of (apply
> #'+ .... Using GCL:
>
> OK:
>
>   (%i16) cost(sum(concat(a,k),k,1,6));
>   (%o16) 7
>
> Not OK:
>
>   (%i17) cost(sum(concat(a,k),k,1,65));
>   Maxima encountered a Lisp error:
>  Error in APPLY [or a callee]:  Lisps arglist maximum surpassed
>
> Barton
>

Thanks for your comments.

I have to gain some understanding of the internal forms maxima uses -  
'rat' form, for instance, I don't understand.. I also have to study  
what various Maxima commands do to an expression before I can  
implement a somewhat usable 'simplify'. Simplify should be smarter  
than just calling the user level simplification commands.. But this  
requires some knowledge.

'cost' will be named 'leaf_count'.

Regards,
Ziga