Simplifying terms | topic started 4/10/2002; 1:28:23 PM last post 4/10/2002; 11:11:29 PM |
|
Mark Schmitt - Re: Simplifying terms 4/10/2002; 11:11:29 PM (reads: 1189, responses: 0) |
David, In PGpolynomial macros, which is in the CVS, I put a way to convert an array of coefficients into a properly formatted polynomial expression. To get $A x^2 + $Bx + $C, you would do something like @array=($A,$B,$C); $poly = polyString(~~@array); In the text of the problem, you would then just type $poly where you wanted your polynomial. It's not quite as automatic as FEQ, but I think it works. Maybe at some point I will try to code something to work inside the text block, like a \{polynomial($A,$B,$C)\}.
Mark |