物理の駅 Physics station by 現役研究者

テクノロジーは共有されてこそ栄える

2020-05-03から1日間の記事一覧

How to use uncertainties to automatically propagate the error.

uncertainties をpipでインストールする pip install uncertainties 誤差付きの小数の定義はufloat である。 >>> from uncertainties import ufloat >>> a=ufloat(10,1) >>> b=ufloat(3,0.1) >>> a+b 13.0+/-1.004987562112089 >>> a-b 7.0+/-1.004987562112…