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 [2015/04/01 09:52] – villersd | teaching:progappchim:scipy_simple [2019/03/22 12:07] (Version actuelle) – villersd | ||
|---|---|---|---|
| Ligne 28: | Ligne 28: | ||
| Exemple de calcul avec quad : | Exemple de calcul avec quad : | ||
| - | <sxh python; title : integrate-01.py> | + | <code python integrate-01.py> |
| # | # | ||
| # -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||
| Ligne 43: | Ligne 43: | ||
| I = quad(f,0,2) | I = quad(f,0,2) | ||
| - | print I, I[0] | + | print(I, I[0]) |
| - | </sxh> | + | </code> |
| + | |||
| + | ===== 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(' | ||
| + | </code> | ||
| ===== Références ===== | ===== Références ===== | ||
| Ligne 53: | Ligne 75: | ||
| * [[http:// | * [[http:// | ||
| * [[http:// | * [[http:// | ||
| + | * [[https:// | ||
| + | |||