public class Number extends Leaf
Exp| Constructor | Description |
|---|---|
Number(float value) |
Constructeur de la feuille Nombre
|
| Modifier and Type | Method | Description |
|---|---|---|
Exp |
copy() |
Permet de faire une "copie profonde" (deep copy) de l'objet.
|
double |
evaluate() |
Évalue l'expression
|
float |
getValue() |
Valeur contenue dans la feuille
|
Exp |
simplify() |
Lance une itération de simplification de l'arbre
|
java.lang.String |
toLatex() |
Affiche le mot en LaTeX de l'expression
|
java.lang.String |
toLatexTree() |
Affiche le mot en LaTeX pour dessiner l'arbre en suivant la méthode suivante proposé sur
tex.stackexchange.com/
|
java.lang.String |
toString() |
Affiche l'expression à partir de l'arbre
|
areEqual, fullSimplify, main, setBothpublic Number(float value)
value - Valeur du nombrepublic Exp copy()
Exppublic float getValue()
public double evaluate()
Exppublic Exp simplify()
Exppublic java.lang.String toString()
Exppublic java.lang.String toLatex()
Exppublic java.lang.String toLatexTree()
ExptoLatexTree in class Exp