AndradeGonzalez-wp2017/07/Solutions #07/equations/equations #07 .sagews
2017-11-21 15:41:25 +00:00

29 lines
1003 B
Python

5416f131-01fd-436e-9664-aa14bd0aabc3s
a = x^6-9*x^5+10*x^4+18*x^3+49*x^2+135*x+84==0
a
solve(a,x)
bc58cd50-b069-45dc-bc96-d9b13b0e51e2{"stdout":"x^6 - 9*x^5 + 10*x^4 + 18*x^3 + 49*x^2 + 135*x + 84 == 0\n"}{"stdout":"[x == 7, x == 4, x == -I*sqrt(3), x == I*sqrt(3), x == -1]"}{"stdout":"\n"}{"done":true}
ffd4bab5-4f7d-4404-9ef4-79631dd7bed9s
b = x^3 - 5*x^2 + 8*x - 40 == 0
b
solve(b ,x)
7065b655-9537-4047-a96e-97c05786df9a{"stdout":"x^3 - 5*x^2 + 8*x - 40 == 0\n"}{"stdout":"[x == -2*I*sqrt(2), x == 2*I*sqrt(2), x == 5]\n"}{"done":true}
1e9100f4-6476-47ae-821b-63e72d2e47abs
'''En el intervalo [0, pi]'''
show(n(pi))
c = cos (x) == x
c
c.find_root(0, pi)
59c168ca-72f2-4d44-b2e5-a06eb4807ace{"stdout":"'En el intervalo [0, pi]'\n"}{"html":"<div align='center'>$\\displaystyle 3.14159265358979$</div>"}{"stdout":"cos(x) == x\n"}{"stdout":"0.7390851332151607\n"}{"done":true}
47410d9c-3edc-4365-91b6-36d1a2306247