:

## accessing elements of a solution assigned from solve

How does one assign from a solution set? In the following example, I would like to get the square roots of b and c where when solved, b=9 and c=10. How does one assigned the values obtained in the solution to be able to manipulate them later? Thanks. > `πx`^2 = `kπ`(y^2-x^2); print(`πx`^2 = `kπ`(y^2-x^2)); 2 / 2 2\ πx = kπ\y - x / > `kπ`(y^2-x^2) = Pi(z^2-y^2); print(`kπ`(y^2-x^2) = Pi(z^2-y^2)); / 2 2\ / 2 2\ kπ\y - x / = Pi\z - y / > `πx`^2 = `kπ`(z^2-y^2); print(`πx`^2 = `kπ`(z^2-y^2)); 2 / 2 2\ πx = kπ\z - y / > k := .125; print(k := .125); 0.125 > a := 1; print(a := 1); 1 > (1+k)*a-k*b = 0; print(1.125-.125*b = 0); 1.125 - 0.125 b = 0 > c-(1+k)*b+k*a = 0; print(c-1.125*b+.125 = 0); c - 1.125 b + 0.125 = 0 > c-b-a = 0; print(c-b-1 = 0); c - b - 1 = 0 > solutions := solve({c-b-a = 0, c-(1+k)*b+k*a = 0}, [b, c]); print(solutions := [[b = 9., c = 10.]]); [[b = 9., c = 10.]] print(??); > evalf(sqrt(a)), evalf(sqrt(b)), evalf(sqrt(c)); print(1., sqrt(b), sqrt(c)); (1/2) (1/2) 1., b , c > s0 := solutions; print(s0 := [[b = 9., c = 10.]]); [[b = 9., c = 10.]] > print(??);

﻿