SymPy

SymPy
Description de l'image Sympy logo.svg.

Informations
Développé par Ondřej Čertík et Aaron Meurer
Première version Voir et modifier les données sur Wikidata
Dernière version 1.14.0 ()[1]Voir et modifier les données sur Wikidata
Dépôt github.com/sympy/sympyVoir et modifier les données sur Wikidata
Assurance qualité Intégration continueVoir et modifier les données sur Wikidata
État du projet Actif
Écrit en Python
Système d'exploitation Type UnixVoir et modifier les données sur Wikidata
Type Système de calcul formel
Licence licence BSD
Documentation docs.sympy.org/latest/index.htmlVoir et modifier les données sur Wikidata
Site web sympy.org

SymPy est une bibliothèque en Python spécialisée dans le calcul formel qui ne dépend d'aucune bibliothèque supplémentaire. Elle est à la fois disponible en tant qu'application de bureau et d'application sur Internet avec Sympy Live. Elle permet de faire du calcul arithmétique formel basique, de l'algèbre, des mathématiques différentielles, de la physique, de la mécanique classique ou quantique. C'est un logiciel libre.

Exemples

Développement

L'exemple qui suit développe l'expression mathématique définie dans la variable e tout en détaillant le processus :

>>> from sympy import init_printing, Symbol, expand
>>> init_printing()
>>>
>>> a = Symbol('a')
>>> b = Symbol('b')
>>> e = (a + b)**5
>>> e
       5
(a + b) 
>>> e.expand()
 5      4        3  2       2  3       4    5
a  + 5a b + 10a b  + 10a b  + 5ab  + b

Dérivée

L'exemple qui suit, cette-fois, calcule la dérivée différencielle, puis la dérivée partielle de la fonction f définie dans la variable f :

>>> from sympy import init_printing, symbols, ln, diff
>>> init_printing()
>>> x,y = symbols('x y')
>>> f = x**2 / y + 2 * x - ln(y)
>>> diff(f,x)
 2x    
 ─── + 2
  y 
>>> diff(f,y)
    2    
   x    1
 - ── - 
    2   y
   y
>>> diff(diff(f,x),y)
 -2x
 ────
   2 
  y

Voir aussi

Références

  1. « Release 1.14.0 », (consulté le )

Liens externes

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.