2
1

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.

製薬企業研究者がSciPyについてまとめてみた

Posted at

はじめに

SciPyは、科学技術計算を行うためのライブラリです。
ここでは、SciPyでよく使うメソッドなどについて解説します。
Python3系の使用を想定しています。

インポート

以下のいずれかの方法でライブラリをインポートします。

SciPy_1.py
import Scipy as sp

from SciPy import モジュール名

積分

積分には、scipy.integrate.quadが使えます。

SciPy_2.py
from scipy.integrate import quad


def my_func(x):
    return x**2 + 2*X + 3

result, error = integrate.quad(my_func, 0, 10)

まとめ

ここでは、SciPyでよく使われるメソッドなどについて紹介してきました。
基本的な計算はNumPyでできることが多いですが、少し応用的なことになると、SciPyが必要になります。

参考資料・リンク

プログラミング言語Pythonとは?AIや機械学習に使える?

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?