public class Assumptions extends AbstractAssumptions
| Modifier and Type | Method and Description |
|---|---|
static IAssumptions |
getInstance(IExpr expr)
Create
Assumptions from the given expression. |
boolean |
isAlgebraic(IExpr expr)
Gives
true, if the symbol is assumed to be an algebraic value (i.e. an element of the Algebraics
domain), false in all other cases. |
boolean |
isBoolean(IExpr expr)
Gives
true, if the symbol is assumed to be a boolean value (i.e. an element of the Booleans
domain), false in all other cases. |
boolean |
isComplex(IExpr expr)
Gives
true, if the symbol is assumed to be a complex value (i.e. an element of the Complexes
domain), false in all other cases. |
boolean |
isInteger(IExpr expr)
Gives
true, if the symbol is assumed to be an integer value (i.e. an element of the Integers
domain), false in all other cases. |
boolean |
isNegative(IExpr expr)
Gives
true, if the symbol is assumed to be a negative value, false in all other cases. |
boolean |
isNonNegative(IExpr expr)
Gives
true, if the symbol is assumed to be a non-negative value, false in all other cases. |
boolean |
isPositive(IExpr expr)
Gives
true, if the symbol is assumed to be a positive value, false in all other cases. |
boolean |
isPrime(IExpr expr)
Gives
true, if the symbol is assumed to be a prime number (i.e. an element of the Primes domain),
false in all other cases. |
boolean |
isRational(IExpr expr)
Gives
true, if the symbol is assumed to be a rational value (i.e. an element of the Rationals
domain), false in all other cases. |
boolean |
isReal(IExpr expr)
Gives
true, if the symbol is assumed to be an integer value (i.e. an element of the Reals domain),
false in all other cases. |
assumeAlgebraic, assumeBoolean, assumeComplex, assumeInteger, assumeNegative, assumeNonNegative, assumePositive, assumePrime, assumeRational, assumeRealpublic static IAssumptions getInstance(IExpr expr)
Assumptions from the given expression. If the creation is not possible return nullexpr - null if Assumptions could not be created from the given expression.public boolean isNegative(IExpr expr)
IAssumptionstrue, if the symbol is assumed to be a negative value, false in all other cases.isNegative in interface IAssumptionsisNegative in class AbstractAssumptionspublic boolean isPositive(IExpr expr)
IAssumptionstrue, if the symbol is assumed to be a positive value, false in all other cases.isPositive in interface IAssumptionsisPositive in class AbstractAssumptionspublic boolean isNonNegative(IExpr expr)
IAssumptionstrue, if the symbol is assumed to be a non-negative value, false in all other cases.isNonNegative in interface IAssumptionsisNonNegative in class AbstractAssumptionspublic boolean isAlgebraic(IExpr expr)
IAssumptionstrue, if the symbol is assumed to be an algebraic value (i.e. an element of the Algebraics
domain), false in all other cases.isAlgebraic in interface IAssumptionsisAlgebraic in class AbstractAssumptionspublic boolean isBoolean(IExpr expr)
IAssumptionstrue, if the symbol is assumed to be a boolean value (i.e. an element of the Booleans
domain), false in all other cases.isBoolean in interface IAssumptionsisBoolean in class AbstractAssumptionspublic boolean isComplex(IExpr expr)
IAssumptionstrue, if the symbol is assumed to be a complex value (i.e. an element of the Complexes
domain), false in all other cases.isComplex in interface IAssumptionsisComplex in class AbstractAssumptionspublic boolean isInteger(IExpr expr)
IAssumptionstrue, if the symbol is assumed to be an integer value (i.e. an element of the Integers
domain), false in all other cases.isInteger in interface IAssumptionsisInteger in class AbstractAssumptionspublic boolean isPrime(IExpr expr)
IAssumptionstrue, if the symbol is assumed to be a prime number (i.e. an element of the Primes domain),
false in all other cases.isPrime in interface IAssumptionsisPrime in class AbstractAssumptionspublic boolean isRational(IExpr expr)
IAssumptionstrue, if the symbol is assumed to be a rational value (i.e. an element of the Rationals
domain), false in all other cases.isRational in interface IAssumptionsisRational in class AbstractAssumptionspublic boolean isReal(IExpr expr)
IAssumptionstrue, if the symbol is assumed to be an integer value (i.e. an element of the Reals domain),
false in all other cases.isReal in interface IAssumptionsisReal in class AbstractAssumptions