m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
396 B

6 months ago
  1. from sympy.core.symbol import Symbol
  2. from sympy.functions.elementary.trigonometric import sin
  3. from sympy.integrals.integrals import integrate
  4. x = Symbol('x')
  5. def bench_integrate_sin():
  6. integrate(sin(x), x)
  7. def bench_integrate_x1sin():
  8. integrate(x**1*sin(x), x)
  9. def bench_integrate_x2sin():
  10. integrate(x**2*sin(x), x)
  11. def bench_integrate_x3sin():
  12. integrate(x**3*sin(x), x)