type/indexedfun
for use with substitution
Calling Sequence
Parameters
Description
Examples
type(f, indexedfun(x))
f
-
expression or list or set of expressions
x
name or list or set of names
Returns true if the expression f is an indexed function in the name(s) x, that is, if the input is a function and the variable(s) x are used as the index variable in a derivative, limit, integral, sum, product, and transform (for example, fourier and laplace). The purpose of this routine is to avoid substitution for x in an expression like diff(f(x), x) or int(f(x), x=a..b) where substitution of x=y2 would produce an erroneous expression, for example.
f≔diffgx,x
f≔ⅆⅆxgx
typef,indexedfunx
true
typef,indexedfuny
false
f≔intgt,t=1..2
f≔∫12gtⅆt
typef,indexedfunt
f≔limit1−exp−x,x=∞
f≔1
See Also
function
indexed
type
type/indexed
Download Help Document