Two questions



On Thu, Oct 09, 2003 at 08:14:05PM +0200, Janos Blazi wrote:
> 2)
> Suppose I solve an equation or a system of (simple) equations. How Can I 
> reuse the solutions, that is, how can I assign the solutions to variables?

In various different ways, depending on what you want to do next. For
instance, if you were to find the critical points of a polynomial:

(C28) poly: x^3-6*x^2+11*x-6;

(D28) x^3-6*x^2+11*x-6
(C29) solve(diff(poly, x));

(D29) [x = -(SQRT(3)-6)/3,x = (SQRT(3)+6)/3]
(C30) diff(poly, x, 2);

(D30) 6*x-12
(C31) %, float(d29[1]);

(D31) -3.464101615137754
(C32) d30, float(d29[2]);

(D32) 3.464101615137752
(C33) max: rhs(d29[1]);

(D33) -(SQRT(3)-6)/3
(C34) min: rhs(d29[2]);

(D34) (SQRT(3)+6)/3

Regards,
Jaime