Professional Documents
Culture Documents
var('n')
F(n) = (((1+sqrt(5))/2)**n - ((1-sqrt(5))/2)**n)/sqrt(5)
[True, False, False, False, False, False, False, False, False, Fal
se]
In [3]: # ejercicio 3
var('n i')
f_a(n) = n**2/(n+2)
f_b(n) = n**3/(n**3+2*n+1)
f_l(n) = (3**n + (-2.0)**n)/(3**(n+1) + (-2)**(n+1))
f_enye(n) = sum(i/i**2, i, 1, n)
http://localhost:8888/nbconvert/html/ejs-20170925.ipynb?download=false Page 1 of 4
ejs-20170925 01/10/2017, 23)19
In [5]: # ejercicio 6
var('a b')
Out[5]:
http://localhost:8888/nbconvert/html/ejs-20170925.ipynb?download=false Page 2 of 4
ejs-20170925 01/10/2017, 23)19
para b = 8: [
x == -sqrt(2),
x == sqrt(2),
x == -2,
x == 2
]
para b = 9: [
x == -sqrt(I + 3),
x == sqrt(I + 3),
x == -sqrt(-I + 3),
x == sqrt(-I + 3)
]
Out[7]:
http://localhost:8888/nbconvert/html/ejs-20170925.ipynb?download=false Page 3 of 4
ejs-20170925 01/10/2017, 23)19
ddp(x, a) = dp(x,a).derivative(x)
# y la segunda derivada también
print "Soluciones de la segunda derivada: " + str(solve(ddp(x, a=8)
, x))
In [ ]: # 6.8 Sí, es verdad que p(x, a=8, b=0) es creciente en (1,+Inf) pue
s la derivada
# no se anula más veces como hemos visto en la celda anterior
In [ ]:
http://localhost:8888/nbconvert/html/ejs-20170925.ipynb?download=false Page 4 of 4