Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hello,
I plotted this function and the graph looks something "strange", at least at first glance. Normally it should have shown a continuous line, or?
MC8 Prime.
Solved! Go to Solution.
You function f() returns non-real numbers with a tiny imaginary part for a lot of input values. Maybe due to numerical inaccuracies/round offs. Primes plot refuses to plot anything in this case, hence the empty spots.
ttokoro showed that using just the real part of the result for plotting might be a solution to the problem.
You may also consider using the Re() function already in the definition of f().
You function f() returns non-real numbers with a tiny imaginary part for a lot of input values. Maybe due to numerical inaccuracies/round offs. Primes plot refuses to plot anything in this case, hence the empty spots.
ttokoro showed that using just the real part of the result for plotting might be a solution to the problem.
You may also consider using the Re() function already in the definition of f().