This is where navigation should be.

ISEVENFUNCTION - True if function is even

Usage

t=isevenfunction(f);
t=isevenfunction(f,tol);

Description

isevenfunction(f) returns 1 if f is whole point even. Otherwise it returns 0.

isevenfunction(f,tol) does the same, using the tolerance tol to measure how large the error between the two parts of the vector can be. Default is 1e-10.

Adding the flag 'hp' as the last argument does the same for half point even functions.