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.(1)」 をやってみたい

Posted at

読売新聞
https://www.yomiuri.co.jp/nyushi/sokuho/k_mondaitokaitou/kobe/mondai/img/kobe_zenki_sugaku_ri_mon.pdf
https://sokuho.yozemi.ac.jp/sokuho/k_mondaitokaitou/13/kaitou/img/kobe_zenki_sugaku_ri_kai.pdf
wolframalpha
log(x)/x
https://www.wolframalpha.com/input/?i=log(x)%2Fx
max{log(x)/x} = 1/e at x = e

fullscript.py
from sympy import *
x = symbols('x', real=True)
f = symbols('f', cls=Function)
f=log(x)/x
eq=f.diff(x,1)
v = solve(eq)
print("v=",v[0])
print(f.subs(x,v[0]))
# v= E
# exp(-1)
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?