Skip to content

Instantly share code, notes, and snippets.

@Sinitca-Aleksandr
Created February 3, 2016 12:16
Show Gist options
  • Save Sinitca-Aleksandr/7e37069e6c8e06e43e92 to your computer and use it in GitHub Desktop.
Save Sinitca-Aleksandr/7e37069e6c8e06e43e92 to your computer and use it in GitHub Desktop.
>>> from sympy import *
>>> x = Symbol('x')
>>> y = symbols('y')
# Интегралы от простых функций
>>> integrate(7*x**6, x)
x**7
>>> integrate(-4*x*sin(2*x**2), x)
cos(2*x**2)
# Интегралы от специальных функций
>>> integrate(exp(-x**2)*erf(x), x)
sqrt(pi)*erf(x)**2/4
# Определенные интегралы
>>> integrate(x**3, (x, 0, 1))
1/4
>>> integrate(cos(x), (x, 0, pi/2))
1
# Несобственный интеграл
>>> integrate(exp(-x), (x, 0, oo))
1
1/4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment