LoginSignup
0
0

More than 1 year has passed since last update.

数学_Q19

Last updated at Posted at 2023-01-10

考察

image.png

$ \displaystyle xy の係数なので \frac{1}{2!}と 2xy $ の関係に注意して計算。
偏微分。分数と2変数の偏微分がからんで計算量多め。3分でいけるか?
atanの微分と分数の微分。

コードで解決

sympyではどうやら2変数の偏微分をサポートしていない。
なのでseries(マクローリン展開)はこのケースでは使用できない。
計算の過程をトレースする。

# 変数定義
x, y = symbols('x y', real=True)
a, b = symbols('a b', nonzero=True)

# 関数定義
f = atan(a*x + b*y + 1)
display(f)

# 偏微分
display(f.diff(x))
display(f.diff(x).diff(y))

# 偏微分演算
## x,yの値渡しかた:留意
print(f'解答:xyの係数')
display(f.diff(x).diff(y).subs([(x, 0),(y, 0)]))

Screenshot from 2023-01-09 12-05-04.png

0
0
1

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