0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

sympyで. (積分) 「2019年 東京大学 前期日程 数学(理科) 第1問」 をやってみたい

Last updated at Posted at 2019-02-26

(参考)東京大学 理科一類、理科二類、理科三類前期の問題・解答<Toshin.com
http://www.toshin.com/sokuho/univ.php?univname=%C5%EC%B5%FE%C2%E7%B3%D8&gakkaname=&gakubuname=%CD%FD%B2%CA%B0%EC%CE%E0%A1%A2%CD%FD%B2%CA%C6%F3%CE%E0%A1%A2%CD%FD%B2%CA%BB%B0%CE%E0&housikiname=%C1%B0%B4%FC&kamokuname=%BF%F4%B3%D8
https://www.wolframalpha.com/input/?i=Integrate%5B(x**2%2Bx%2Fsqrt(1%2Bx**2))*(1%2Bx%2F(1%2Bx**2)%2Fsqrt(1%2Bx**2)),%7Bx,0,1%7D%5D
Integrate[(x2+x/sqrt(1+x2))*(1+x/(1+x2)/sqrt(1+x2)),{x,0,1}]
(-70 + 60 Sqrt[2] + 3 Pi)/24

fullscript.py
from sympy import *
x = Symbol('x')
f=(x**2+x/sqrt(1+x**2))*(1+x/(1+x**2)/sqrt(1+x**2))
print(f)
print(integrate(f,(x, 0, 1)))
# (x**2 + x/sqrt(x**2 + 1))*(x/(x**2 + 1)**(3/2) + 1)
# -35/12 + pi/8 + 5*sqrt(2)/2

解答例の手順通り

製作中

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?