document.write( "Question 1139600: Consider the equation y=1 if x is rational
\n" ); document.write( " 0 if x is irrational\r
\n" ); document.write( "\n" ); document.write( "Answer the following
\n" ); document.write( "
\n" ); document.write( "What is the domain\r
\n" ); document.write( "\n" ); document.write( "What is its range\r
\n" ); document.write( "\n" ); document.write( "Is it even. odd, or neither\r
\n" ); document.write( "\n" ); document.write( "Need each step explained in detail line by line step by step
\n" ); document.write( "

Algebra.Com's Answer #760083 by rothauserc(4718)\"\" \"About 
You can put this solution on YOUR website!
The domain is all real numbers
\n" ); document.write( ":
\n" ); document.write( "The range is y=0, y=1
\n" ); document.write( ":
\n" ); document.write( "This is a discontinuous function, the graph would be just \"dots\" at either y = 0 or at y = 1.
\n" ); document.write( ":
\n" ); document.write( "This is an \"even\" function, because the negative of any positive rational would have a corresponding y value of 1 and the negative of any positive irrational would have a corresponding y value of 0. Thus, f(x) = f(-x).
\n" ); document.write( ":
\n" ); document.write( "The y intercept would be the \"dot\" at (0, 1) - because 0 is rational.
\n" ); document.write( ":
\n" ); document.write( "The \"x\" intercepts would just be the \"dots\" where the irrational numbers are located on the number line because \"f(x)\" would be 0 at those points.
\n" ); document.write( ":
\n" ); document.write( "
\n" ); document.write( "
\n" );