At first , open the cmd and enter "pip install scipy";
After the successful installation of the scipy , don't forget to configure the environment variable .
The configuration process: Pycharm->"File"->"Settings"->"Project:Desktop"->"Python Intepreter"->the setting-like button->"Add"->"Existing Environment"->the Ellipsis0-select the "python.exe"->"OK".
And now we can capitalize on the module scipy to caculate the definite integrations or the differentials .
Here is an example to caculate ∫(x^3)dx . x∈(0,4) .
from scipy import integrate;
y=lambda x:x**3;
result=integrate.quad(y,0,4);
print(result);
And here , we import the module numpy to capitalize on some mathematic expressions. Combined with the scipy we can realize some relatively complex integral caculations .
import numpy as np; from scipy import integrate; y=lambda x:np.exp(x); # It means y=f(x),f(x)=e^(x); result=integrate.quad(y,0,3); #It means that ∫ydx,the Integral interval is (0,3); print(result);