teaching:progappchim:scipy_simple

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

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] villersdteaching: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])
 +</code>
 +
 +===== Constantes physiques =====
 +
 +<code python scipy.constants-01.py>
 +#!/usr/bin/env python3
 +# -*- coding: utf-8 -*-
 +"""
 +https://docs.scipy.org/doc/scipy-1.0.0/reference/constants.html
 +
 +"""
 +import scipy.constants
 +for key, val in scipy.constants.physical_constants.items():
 +    print(key, val)
 +    print(key, scipy.constants.value(key), scipy.constants.unit(key), scipy.constants.precision(key))
 +
 +print(scipy.constants.find('Boltzmann'))
 +print(scipy.constants.Boltzmann)
 +print(scipy.constants.physical_constants['Boltzmann constant'])
 +print(scipy.constants.value('Boltzmann constant'))
 +print(scipy.constants.unit('Boltzmann constant'))
 +print(scipy.constants.precision('Boltzmann constant'))
 </code> </code>
  
Ligne 53: Ligne 75:
     * [[http://wiki.scipy.org/Cookbook/LoktaVolterraTutorial?action=show&redirect=LoktaVolterraTutorial|Lotka-Volterra]]     * [[http://wiki.scipy.org/Cookbook/LoktaVolterraTutorial?action=show&redirect=LoktaVolterraTutorial|Lotka-Volterra]]
     * [[http://wiki.scipy.org/Cookbook/BrownianMotion|Mouvement brownien]]     * [[http://wiki.scipy.org/Cookbook/BrownianMotion|Mouvement brownien]]
 +  * [[https://uiuc-cse.github.io/2014-01-30-cse/lessons/thw-scipy/tutorial.html]]
 +
  
  • teaching/progappchim/scipy_simple.1489481192.txt.gz
  • Dernière modification : 2017/03/14 09:46
  • de villersd