Function f(x): Rationals = 0, Irrationals = 1

  • Thread starter Lonewolf
  • Start date
  • Tags
    Function
In summary, the function defined over the real numbers as f(x) = {0, x rational} {1, x irrational} is commonly known as the characteristic function of the set of irrationals, or the "salt and pepper" function. It is a special case of the Dirichlet function and can be remembered as the "0 if rational and 1 if irrational" function. However, there is some debate over its name, with some suggesting the simpler name "Dirichlet Function."
  • #1
Lonewolf
336
1
The function defined over the real numbers as

Code:
f(x) = {0, x rational
       {1, x irrational

appears quite a lot in mathematics textbooks. Does anybody know if this function has a commonly accepted name?
 
Mathematics news on Phys.org
  • #2
Well, it's the characteristc function of the set of irrationals, [tex]\chi (R - Q)[/tex].
 
  • #3
I've heard it called the "salt and pepper" function.
 
  • #5
i've got a simple name and a mnemoic to remember it's name.

name: the 0 if rational and 1 if irrational function.
simple mnemoic: tziraoiif
 
  • #6
Originally posted by phoenixthoth
i've got a simple name and a mnemoic to remember it's name.

name: the 0 if rational and 1 if irrational function.
simple mnemoic: tziraoiif

that doesn't sound simple
 
  • #7
What do you mean? I think it rolls right off the tounge.
 
  • #8
Probably Dirchlet Function(Check Spelling)
 
  • #9
Sure about that? The name Dirichlet has popped quite a number of time in my textbooks. I've never heard of Dirchlet.
 

FAQ: Function f(x): Rationals = 0, Irrationals = 1

What does the function f(x) represent?

The function f(x) represents a mathematical relationship between the input value x and the output value, where the output is 0 if the input is a rational number and 1 if the input is an irrational number.

How do you graph this function?

To graph this function, you can plot points on a coordinate grid where the x-axis represents the input value and the y-axis represents the output value. For example, if the input x is 0, the output y would be 0 since 0 is a rational number. If the input x is √2, the output y would be 1 since √2 is an irrational number. You can then connect the plotted points to create a line graph.

What is the domain of this function?

The domain of this function is all real numbers, since the input x can be any rational or irrational number.

Is this function continuous?

Yes, this function is continuous since there are no breaks or jumps in the graph. The function is defined for all real numbers and there are no gaps in the graph.

What is the purpose of this function?

The purpose of this function is to categorize numbers as either rational or irrational. This can be useful in mathematical analysis and understanding the properties of different types of numbers.

Back
Top