type/evenfunc - Maple Programming Help

Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/evenfunc

type/evenfunc

check for an even function

type/oddfunc

check for an odd function

 Calling Sequence type(f, evenfunc(x)) type(f, oddfunc(x))

Parameters

 f - function x - name

Description

 • These procedures test the parity of the function f, that is, whether it is even or odd, with respect to x.

Examples

 > $\mathrm{type}\left({x}^{2},\mathrm{evenfunc}\left(x\right)\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{type}\left({x}^{2}{y}^{3}+2,\mathrm{evenfunc}\left(x\right)\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{type}\left(\mathrm{sin}\left(x\right),\mathrm{oddfunc}\left(x\right)\right)$
 ${\mathrm{true}}$ (3)
 > $\mathrm{type}\left(\frac{{x}^{2}}{x-1},\mathrm{oddfunc}\left(x\right)\right)$
 ${\mathrm{false}}$ (4)