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≔diff⁡g⁡x,x
f≔ⅆⅆxg⁡x
type⁡f,indexedfun⁡x
true
type⁡f,indexedfun⁡y
false
f≔int⁡g⁡t,t=1..2
f≔∫12g⁡tⅆt
type⁡f,indexedfun⁡t
f≔limit⁡1−exp⁡−x,x=∞
f≔1
See Also
function
indexed
type
type/indexed
Download Help Document