2
2

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による導関数の算出・描画

Posted at

導関数算出・描画

  • 細かい設定等は後で順々に調べていくとして、まずは一番シンプルに。
import sympy as sy

x = sy.Symbol('x')

f = (1 * x**3) + (0 * x**2) + (-2 * x) + (0)
print f

g = f.diff()
print g

sy.plot(f, g, (x, -2, 2))
実行結果
hogehoge$ python plot2.py 
x**3 - 2*x
3*x**2 - 2

image.png

参考記事

2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?