Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from IPython.display import display
- import sympy as sy
- sy.init_printing() # LaTeX like pretty printing forIPython
- alpha, beta, x, y = sy.symbols("alpha, beta, x, y", real=True)
- f = sy.exp(-x**2 - y**2) # sy.exp() is better than the numeric constant
- val = sy.integrate(f, (x, -1+alpha, 1+alpha), (y, -1+beta, 1+beta))
- display(val)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement