public final class MathRadical extends MathElementBase implements IMathRadical
Specifies the radical function, consisting of a base, and an optional degree. Example of radical object is √𝑥.
Example:MathRadical radical = new MathRadical(new MathematicalText("x"), new MathematicalText("3"));
Constructor and Description |
---|
MathRadical(IMathElement baseArgument,
IMathElement degreeArgument)
Initializes a new instance of the MathRadical class.
|
Modifier and Type | Method and Description |
---|---|
IMathElement |
getBase()
Base argument
|
IMathElement |
getDegree()
Degree argument
|
boolean |
getHideDegree()
Hide degree
When is true, the degree is not shown, as in √𝑥
|
void |
setHideDegree(boolean value)
Hide degree
When is true, the degree is not shown, as in √𝑥
|
accent, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, divide, divide, divide, divide, enclose, enclose, function, function, getParent_Immediate, group, group, integral, integral, integral, integral, integral, join, join, nary, nary, overbar, radical, radical, setLowerLimit, setLowerLimit, setSubscript, setSubscript, setSubSuperscriptOnTheLeft, setSubSuperscriptOnTheLeft, setSubSuperscriptOnTheRight, setSubSuperscriptOnTheRight, setSuperscript, setSuperscript, setUpperLimit, setUpperLimit, toBorderBox, toBorderBox, toBox, toMathArray, underbar
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accent, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, asArgumentOfFunction, divide, divide, divide, divide, enclose, enclose, function, function, group, group, integral, integral, integral, integral, integral, join, join, nary, nary, overbar, radical, radical, setLowerLimit, setLowerLimit, setSubscript, setSubscript, setSubSuperscriptOnTheLeft, setSubSuperscriptOnTheLeft, setSubSuperscriptOnTheRight, setSubSuperscriptOnTheRight, setSuperscript, setSuperscript, setUpperLimit, setUpperLimit, toBorderBox, toBorderBox, toBox, toMathArray, underbar
public MathRadical(IMathElement baseArgument, IMathElement degreeArgument)
Initializes a new instance of the MathRadical class.
Example:MathRadical radical = new MathRadical(new MathematicalText("x"), new MathematicalText("3"));
baseArgument
- BasedegreeArgument
- Degreepublic final IMathElement getBase()
Base argument
Example:MathRadical radical = new MathRadical(new MathematicalText("x"), new MathematicalText("3")); IMathElement baseElem = radical.getBase();
getBase
in interface IMathRadical
public final IMathElement getDegree()
Degree argument
Example:MathRadical radical = new MathRadical(new MathematicalText("x"), new MathematicalText("3")); IMathElement degreeElem = radical.getDegree();
getDegree
in interface IMathRadical
public final boolean getHideDegree()
Hide degree When is true, the degree is not shown, as in √𝑥
Example:MathRadical radical = new MathRadical(new MathematicalText("x"), new MathematicalText("3")); radical.setHideDegree(true);
getHideDegree
in interface IMathRadical
public final void setHideDegree(boolean value)
Hide degree When is true, the degree is not shown, as in √𝑥
Example:MathRadical radical = new MathRadical(new MathematicalText("x"), new MathematicalText("3")); radical.setHideDegree(true);
setHideDegree
in interface IMathRadical