public class Divide extends Operator
Exp| Constructor | Description |
|---|---|
Divide(Exp expLeft,
Exp expRight) |
Constructeur de l'opération de division
|
| Modifier and Type | Method | Description |
|---|---|---|
Exp |
copy() |
Permet de faire une "copie profonde" (deep copy) de l'objet.
|
double |
evaluate() |
Évalue l'expression
|
Operator |
opposite() |
Retourne l'opérateur opposé à opérateur instancié, i.e un objet Divide retourne un objet
Times.
|
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, setBothclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclRotateLeft, clRotateRightpublic Exp copy()
Operatorpublic double evaluate()
throws java.lang.Exception
public Operator opposite()
Operatorpublic Exp simplify()
Operatorpublic java.lang.String toString()
Operatorpublic java.lang.String toLatex()
Operatorpublic java.lang.String toLatexTree()
OperatortoLatexTree in class Operator