How to calculate the area of a circle?

Tom Brinkman reportbase at
Mon Mar 29 03:19:11 CEST 2004

How do i solve for the area of a circle?

symbol r("r");
ex e = pow(r,2) * Pi ==  30;
ex solve = lsolve(e,r);

//This example does not work.  An error message
indicating that this is not a linear equation is
returned.  How do I solve for "r" in this case.  

//Could you also show an example of how to solve for a
simple polynomial, such as: 
ex = pow(a,2) + a = 3
How do i solve for "a".

Tom Brikman

Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

More information about the GiNaC-list mailing list