Quote:
I don't know If I am puting the formual in the code right.

No, sorry. Your square root multiplies with the numerator.
Write instead:

f = 1 / (2*PI * sqrt(C*L));


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends