Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. # Importamos la librería SymPy, así como el módulo de LaTeX
  2. from sympy import *
  3. init_printing(use_latex='mathjax')
  4. # importamos el módulo para hacer divisiones
  5. from __future__ import division
  6. # Damos de alta la variable simbólica X
  7. x= symbols('x')
  8. # Expresemos la función a integrar
  9. y=exp(1)**-x/sqrt(x)
  10. y
  11. # Integramos con el comando "integrate", evaluando de 0 a infinito(doble "o")
  12. I=integrate(y,(x,0,oo))
  13. # Mostramos resultado de nuestra integral
  14. I
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement