When I look at the following function $f(x)$, it would seem to me that because there are no $\le$ or $\ge$ inequalities included where the function's formula changes (for the parts relating to 7,) the integer 7 should (most likely) not be included in the line of this graphed function for $x$.
$$ f(x)=\begin {cases} \frac{5}{x-10}& x \le 5 \\\frac{5}{5x-30}& 5 \lt x \lt 7\\\frac{x-2}{12-x}& x \gt 7 \end {cases} $$
But when I go to graph the line (and subsequently check the function's data table for values) I find that the line of this function actually appears to continue through the integer 7 on my TI-89 calculator (and I am getting a defined value of 1. for $y$ when $x$ equals 7!)
Here is the nested when() functions I am using to graph this on the calculator:
when(x<7, when(x<=5, ((5)/(x-10)), ((5)/(5x-30))), ((x-2)/(12-x)))
How is it possible for $f(x)$ to be defined at the integer 7 if the integer 7 is being skipped in the rules for the function itself?
Unfortunately, this ended up being an issue with the nested
when()functions within the overall $f(x)$ function on a TI-89 calculator. Nestedwhen()statements are great for when there are no gaps between areas where the formula changes in a piecewise function. But when there are gaps, nestedwhen()functions can get pretty complicated.Instead of using nested
when()functions (when there is a gap present in the line being graphed,) it is possible to just define this piecewise function as an entire user-defined function (using theFunccommand on the calculator,) like this:After using this newly-created function on the calculator, when checking the $f(7)$ in the table of the graphed function,
7is now undefined* (as expected.)*Note: "undefined" in this case is displayed as
-1until I can find a better way to represent that the value does not exist at7.