I need to know the name of a function that's 1 at every integer and 0 everywhere else. Anyone have any info on a function like this?
HI!!
they call this kind of thing a "characteristic function"
this would be the characteristic function of the integers
Should be nice to see, I'll look into that. Here's some alternative definition I came up with among others to help me out in the mean time: \[\Large f(x) = \lim_{r \to \infty} \cos^r(\pi x)\]
@misty1212 Hey could you give me some more information, I'm sorta having trouble in google searching "Characteristc Function" haha
should be possible with floor/ceil : \[f(x) = -\lfloor x\rfloor -\lfloor -x\rfloor \]
That's something I hadn't thought of that looks pretty cool! The reason I'm interested in this function is because: \[\Large \tau (x) = \sum_{n=1}^{ \infty } f(\frac{x}{n})\]
that gives 0 when x is integer and 1 otherwise
(refering to floor function)
Oh so I need 1-that I think? I'm going to play with it and just figure it out one sec.
Here's what I believe/am saying right now. \[\Large \lim_{r \to \infty} \cos^r( \pi x) = 1+ \lfloor x \rfloor + \lfloor -x \rfloor\]
I typically call them indicator functions http://en.wikipedia.org/wiki/Indicator_function when I hear characteristic function I think of this http://en.wikipedia.org/wiki/Characteristic_function_%28probability_theory%29
Ahhh good and it's related to the Heaviside and Delta functions, thanks this is something I think I can work with now.
\[\mathbb{1}_{\mathbb{Z}}(x)\]
Interesting, I think this might be the first time I've seen a function denoted with a number instead of a letter before haha.
what is wrong with plain old \[f(x) = \left\{\begin{array}{rcc} 1 & \text{if} ~x\in\mathbb{Z} \\ 0& \text{otherwise} \end{array} \right. \]
that would require one to not be lazy
I'm too lazy to write that much
how about "one if x is an integer, zero otherwise"?
That seems like a lot of words to me. I don't like to write that much when I'm on vacation.
Join our real-time social learning platform and learn together with your friends!