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, assumeReal
public static IAssumptions getInstance(IExpr expr)
Assumptions
from the given expression. If the creation is not possible return null
expr
- null
if Assumptions
could not be created from the given expression.public boolean isNegative(IExpr expr)
IAssumptions
true
, if the symbol is assumed to be a negative value, false
in all other cases.isNegative
in interface IAssumptions
isNegative
in class AbstractAssumptions
public boolean isPositive(IExpr expr)
IAssumptions
true
, if the symbol is assumed to be a positive value, false
in all other cases.isPositive
in interface IAssumptions
isPositive
in class AbstractAssumptions
public boolean isNonNegative(IExpr expr)
IAssumptions
true
, if the symbol is assumed to be a non-negative value, false
in all other cases.isNonNegative
in interface IAssumptions
isNonNegative
in class AbstractAssumptions
public boolean isAlgebraic(IExpr expr)
IAssumptions
true
, 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 IAssumptions
isAlgebraic
in class AbstractAssumptions
public boolean isBoolean(IExpr expr)
IAssumptions
true
, 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 IAssumptions
isBoolean
in class AbstractAssumptions
public boolean isComplex(IExpr expr)
IAssumptions
true
, 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 IAssumptions
isComplex
in class AbstractAssumptions
public boolean isInteger(IExpr expr)
IAssumptions
true
, 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 IAssumptions
isInteger
in class AbstractAssumptions
public boolean isPrime(IExpr expr)
IAssumptions
true
, 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 IAssumptions
isPrime
in class AbstractAssumptions
public boolean isRational(IExpr expr)
IAssumptions
true
, 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 IAssumptions
isRational
in class AbstractAssumptions
public boolean isReal(IExpr expr)
IAssumptions
true
, 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 IAssumptions
isReal
in class AbstractAssumptions