-
Notifications
You must be signed in to change notification settings - Fork 1
Calculatrice HP en Python
Venodez edited this page Nov 30, 2020
·
13 revisions
Les calculatrice HP utilisent la notation polosaise inversée Reverse Polish Notation. Cet notation permet d'exprimer des opérations mathématiques sans parenthèses à l'aide d'une pile.
Pour le programme, on a besoins des bibliothéques math et Pile crée au préalable.
On rentre en premier les valeurs puis les opérations.
Exemple : 2 2 + = 4
-
+: Addition -
-: Soustraction -
*: Multiplication -
/: Division -
**: Puissance -
sin: Sinus -
cos: Cosinus -
tan: Tangente -
exp: Exponentiel -
log: Logarithme -
log10: Logarithme base 10