|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Operator | +--Puissance
Noeuds ^ des expressions arithmétiques
Constructor Summary | |
(package private) |
Puissance(ArithExpr left,
ArithExpr right)
|
Method Summary | |
double |
eval()
Évaluation sans environnement |
double |
eval(Environment e)
Évaluation avec environnement |
protected double |
operation(double x,
double y)
Opération entre nombres flottants associée à ce noeud. |
protected String |
symbol()
Chaîne représentant l'opération en infixe |
protected String |
tag()
Chaîne représentant l'opération en MathML |
String |
toMathML()
Représentation infixe de l'expression |
String |
toString()
Représentation infixe de l'expression |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
Puissance(ArithExpr left, ArithExpr right)
Method Detail |
protected double operation(double x, double y)
operation
in class Operator
x
- premier nombre flottanty
- deuxième nombre flottant
protected String symbol()
symbol
in class Operator
protected String tag()
tag
in class Operator
public double eval()
eval
in interface ArithExpr
public double eval(Environment e) throws UnboundVariableException
eval
in interface ArithExpr
UnboundVariableException
- si aucune expression
n'est affectée à une variable apparaissant dans
l'expression.public String toString()
toString
in class Object
public String toMathML()
toMathML
in interface ArithExpr
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |