Интеграция с SympyPython

Программы на Python
Гость
Интеграция с Sympy

Сообщение Гость »


Я хотел бы интегрировать функцию:
$$ int_0^R sqrt(R^2 - x^2) dx $$

Код: Выделить всё

from sympy import *
x = symbols('x')
R = symbols('R', real = True, constant = True)
integrate(sqrt(R**2-x**2),(x,0,R))
But it solves me this one in complex domain. Is-it possible to force sympy to give me the result which is PI R^2 ?


Источник: https://stackoverflow.com/questions/645 ... with-sympy

Вернуться в «Python»