A line test is a visual test for functions that has the form of
. The horizontal axis represent
values from the domain, while the vertical axis represent values from the
range. A dot (infinitely small) in the 2-D area is an element in
.
Here are the tests and how to interpret the results:
- if you cannot draw a vertical line that intersects with more than one
points,
is a function.
- if you can draw a vertical line that intersects with more than one
points,
is not a function. In this case, none of the other
interpretation is useful.
- if you cannot draw a horizontal line that intersects with more than one
points,
is an injection.
- if you can draw a horizontal line that intersects with more than one
points,
is not an injection.
- if you cannot draw a horizontal line that does not intersect with any
points,
is a surjection.
- if you can draw a horizontal line that does not intersect with any
points,
is not a surjection.
Note that line tests are most helpful for continuous mathematical functions
like sin, cosine, and etc. They are not particularly helpful in the
context of discrete mathematics.
Copyright © 2006-10-28 by Tak Auyeung