Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| teaching:progappchim:scipy_simple [2017/03/14 09:46] – villersd | teaching:progappchim:scipy_simple [2019/03/22 12:07] (Version actuelle) – villersd | ||
|---|---|---|---|
| Ligne 44: | Ligne 44: | ||
| I = quad(f,0,2) | I = quad(f,0,2) | ||
| print(I, I[0]) | print(I, I[0]) | ||
| + | </ | ||
| + | |||
| + | ===== Constantes physiques ===== | ||
| + | |||
| + | <code python scipy.constants-01.py> | ||
| + | # | ||
| + | # -*- coding: utf-8 -*- | ||
| + | """ | ||
| + | https:// | ||
| + | |||
| + | """ | ||
| + | import scipy.constants | ||
| + | for key, val in scipy.constants.physical_constants.items(): | ||
| + | print(key, val) | ||
| + | print(key, scipy.constants.value(key), | ||
| + | |||
| + | print(scipy.constants.find(' | ||
| + | print(scipy.constants.Boltzmann) | ||
| + | print(scipy.constants.physical_constants[' | ||
| + | print(scipy.constants.value(' | ||
| + | print(scipy.constants.unit(' | ||
| + | print(scipy.constants.precision(' | ||
| </ | </ | ||
| Ligne 53: | Ligne 75: | ||
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| + | * [[https:// | ||
| + | |||