public class Variable extends Leaf
Exp| Constructor | Description |
|---|---|
Variable(java.lang.String name) |
Constructeur de la feuille Vombre
|
| Modifier and Type | Method | Description |
|---|---|---|
Exp |
copy() |
Permet de faire une "copie profonde" (deep copy) de l'objet.
|
double |
evaluate() |
Évalue l'expression
|
java.lang.String |
getName() |
Retourne le nom de la variable
|
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 Variable(java.lang.String name)
name - Nom de la variablepublic java.lang.String getName()
public Exp copy()
Exppublic double evaluate()
throws VariableEvaluationException
Expevaluate in class ExpVariableEvaluationExceptionpublic Exp simplify()
Exppublic java.lang.String toString()
Exppublic java.lang.String toLatex()
Exppublic java.lang.String toLatexTree()
ExptoLatexTree in class Exp