indets
find indeterminates of an expression
Calling Sequence
Parameters
Description
Examples
Compatibility
indets(expr)
indets(expr, typename)
indets[flat](expr)
indets[flat](expr, typename)
expr
-
any expression
typename
(optional) the name of a type
The command indets with only one argument returns a set containing all the indeterminates of expr.
The argument expr is viewed as a rational expression (an expression formed by applying only the operations +, -, *, / to its subexpressions). Therefore, expressions such as sin⁡x, f⁡x,y, and x are treated as indeterminates.
Expressions of type constant, such as sin(1), f⁡3,5, and 2, are not considered to be indeterminates in the single-argument case.
If a second argument typename is specified then the value returned is a set containing all subexpressions in expr which are of type typename, including subexpressions which may not have been considered to be indeterminates in the single-argument case.
If the flat option is supplied as an index to the indets command, then Maple will not recursively look inside any subexpressions of the given typename for further (nested) subexpressions of that type.
indets⁡x⁢y+zx
x,y,z
indets⁡3⁢x2−5⁢x⁢y+6−y2
x,y
a≔5⁢x−3⁢sin⁡y+x⁢y4+exp⁡z2
a≔5⁢x−3⁢sin⁡y+x⁢y4+ⅇz2
indets⁡a
x,y,z,ⅇz2,sin⁡y
indets⁡a,function
ⅇz2,sin⁡y
indets⁡a,constant
−3,2,4,5
indets⁡a,trig
sin⁡y
indets⁡a,name
indets⁡a,atomic
−3,2,4,5,x,y,z
e≔x12+exp⁡x2+f⁡9:
indets⁡e
x,x,ⅇx2
indets⁡e,constant
2,9,12,f⁡9
indets⁡e,function
ⅇx2,f⁡9
Efficiently selecting all occurrences of functions f and g from an expression:
indets⁡e,specfunc⁡anything,f,g
f⁡9
When there are no occurrences of the specified type, an empty set is returned:
indets⁡262
∅
indets⁡x,constant
If the flat option is supplied as an index to indets, Maple will stop recursion into an expression once a matching subexpression has been found.
indets⁡sin⁡x
x,sin⁡x
indetsflat⁡sin⁡x
sin⁡x
indetsflat⁡f⁡g⁡x,function
f⁡g⁡x
indetsflat⁡f⁡g⁡x,list
The indets command was updated in Maple 2016.
The flat option was introduced in Maple 2016.
For more information on Maple 2016 changes, see Updates in Maple 2016.
See Also
depends
evalindets
subsindets
type/structure
Download Help Document