SM-4-Fibonacci

4146 days ago by MathFest

solve(x^2-x-1,x) 
       
[x == -1/2*sqrt(5) + 1/2, x == 1/2*sqrt(5) + 1/2]
[x == -1/2*sqrt(5) + 1/2, x == 1/2*sqrt(5) + 1/2]
factor(x^2-x-1,x) 
       
x^2 - x - 1
x^2 - x - 1
A=Matrix([[1,1],[(1+sqrt(5))/2, (1-sqrt(5))/2]]) B=vector([0,1]) A.solve_right(B) 
       
(1/5*sqrt(5), -1/5*sqrt(5))
(1/5*sqrt(5), -1/5*sqrt(5))