0

How am I supposed to calculate the following double integral in python and get a result in terms of t equation

f(x) and g(y) are polynomials.

Shi Feng
  • 3
  • 1

1 Answers1

0

E.g. using sympy:

>>> from sympy import *
>>> init_printing(use_unicode=False, wrap_line=False)
>>> x = Symbol('x')
>>> y = Symbol('y')
>>> t = Symbol('t')
>>> integrate(integrate(x * y, (y, t + x, 1)), (x, 0, t))
      4      /     2\
  11*t     2 |1   t |
- ----- + t *|- - --|
    24       \4   4 /
>>> 

See: https://docs.sympy.org/latest/modules/integrals/integrals.html

Roman Pavelka
  • 3,736
  • 2
  • 11
  • 28