indets - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Algebra : Expression Manipulation : indets

indets

find indeterminates of an expression

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

indets(expr)

indets(expr, typename)

indets[flat](expr)

indets[flat](expr, typename)

Parameters

expr

-

any expression

typename

-

(optional) the name of a type

Description

• 

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 sinx, fx,y, and x are treated as indeterminates.

• 

Expressions of type constant, such as sin(1), f3,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.

Examples

indetsxy+zx

x,y,z

(1)

indets3x25xy+6y2

x,y

(2)

a5x3siny+xy4+ⅇz2

a:=5x3siny+xy4+ⅇz2

(3)

indetsa

x,y,z,ⅇz2,siny

(4)

indetsa,function

ⅇz2,siny

(5)

indetsa,constant

3,2,4,5

(6)

indetsa,trig

siny

(7)

indetsa,name

x,y,z

(8)

indetsa,atomic

3,2,4,5,x,y,z

(9)

ex12+ⅇx2+f9:

indetse

x,x,ⅇx2

(10)

indetse,constant

2,9,12,f9

(11)

indetse,function

ⅇx2,f9

(12)

Efficiently selecting all occurrences of functions f and g from an expression:

indetse,'specfuncanything,f,g'

f9

(13)

When there are no occurrences of the specified type, an empty set is returned:

indets262

(14)

indetsx,constant

(15)

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.

indetssinx

x,sinx

(16)

indets[flat]sinx

sinx

(17)

indets[flat]fgx,function

fgx

(18)

indets[flat]fgx,list

fgx

(19)

Compatibility

• 

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

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam