f(x) is graphed below.
\qquad f(\blue{PT}) \approx \red{roundTo(1, FUNC(PT))}\qquad f(\blue{-PT}) \approx \red{roundTo(1, FUNC(-PT))}f(\blue{PT}) \neq f(\blue{-PT}), so f(x) is not even.
f(\blue{PT}) \neq -f(\blue{-PT}), so f(x) is not odd.
Therefore f(x) is neither.
\qquad f(\blue{x}) \approx \red{roundTo(1, FUNC(x))}\qquad f(\blue{-x}) \approx \red{roundTo(1, FUNC(-x))}f(x) is odd because f(x) = -f(-x). (For all x values, not just the ones we checked!)
f(x) is even because f(x) = f(-x). (For all x values, not just the ones we checked!)
f(x) = FUNCLet's try a value for x to see if f(x) fits the definition.
\qquad f(\blue{X_VALUES[0]}) = FUNC.getEvaluateString(X_VALUES[0], 'blue')\qquad f(\blue{X_VALUES[0]}) = \red{CALLABLE_FUNC(X_VALUES[0])}\qquad f(\blue{-X_VALUES[0]}) = FUNC.getEvaluateString(-X_VALUES[0], 'blue')\qquad f(\blue{-X_VALUES[0]}) = \red{CALLABLE_FUNC(-X_VALUES[0])}f(\blue{X_VALUES[0]}) \neq f(\blue{-X_VALUES[0]}), so f(x) is not even.
f(\blue{X_VALUES[0]}) \neq -f(\blue{-X_VALUES[0]}), so f(x) is not odd.
Therefore f(x) is neither.
Let's try a value for x to see if f(x) fits the definition.
\qquad f(\blue{1}) = FUNC.getEvaluateString(1, 'blue')\qquad f(\blue{1}) = \red{CALLABLE_FUNC(1)}\qquad f(\blue{-1}) = FUNC.getEvaluateString(-1, 'blue')\qquad f(\blue{-1}) = \red{CALLABLE_FUNC(-1)}Let's try another value for x.
\qquad f(\blue{2}) = FUNC.getEvaluateString(2, 'blue')\qquad f(\blue{2}) = \red{CALLABLE_FUNC(2)}\qquad f(\blue{-2}) = FUNC.getEvaluateString(-2, 'blue')\qquad f(\blue{-2}) = \red{CALLABLE_FUNC(-2)}
f(x) is odd because f(x) = -f(-x). (For all x values, not just the ones we checked!)
f(x) is even because f(x) = f(-x). (For all x values, not just the ones we checked!)
Is f(x) even, odd, or neither?
SOL
f(x) = f(-x) for all values of x.f(x) = -f(-x) for all values of x.