2023-06-25 Python - math.erf(x):誤差関数 Python3 mathモジュール 概要 インポート 実行結果 表示イメージ 概要erf(x) 誤差関数 mathモジュール ちょこっとメモ誤差関数(ガウスの誤差関数)数学におけるシグモイド形状の特殊関数。記号:「erf 」インポート import math 実行結果 import math print(math.erf(1)) print(math.erf(0)) print(math.erf(-1)) 表示イメージ 0.8427007929497149 0.0 -0.8427007929497149