- #1

- 4

- 0

I'm learning to use mathematica and among those things I'm trying to do, is to define a function that can count for me, say, the number of positive zeros less than a given number Z of a familly of function.

For exemple, let f_n(x) = sin(x/n) for any natural number n. I want mathematica (or any other program you may suggest) to compute the cardinality of {x \in ]0,Z[ = (0,Z) : \exists n \in N for which f_n(x)=0}. For Z = \pi + 1, I would expect that cardinality to be 1, in that case. For Z=2\pi +1, it'd be 2, and so on.

I want a general method, so I can apply it to my specific problem.

Just let you know that I've google'd it, I looked wolfram's forums, wolfram documentation, asked friends, and couldn't find it !

I hope I was clear, and that my english wasn't too bad.

Thank you !