Print "Resonance frequency calculation"
' -----------------------------------

V1 = Input "Capacitance in pF ?"
V1 = V1 / 1000000000000
V2 = Input "Inductance in uH ?"
V2 = V2 / 1000000

V3 = 1 / Sqrt(V1 * V2)
V4 = V3 / (2 * Math_PI)

If v4 >= 1000000
	S1 = V4 / 1000000 + " MHz"
Else
	S1 = V4 + " Hz"
EndIf

Print "Resonance frequency is: " + S1
Stop


'WATCH V1
'WATCH V2
'WATCH V3
'WATCH V4
'WATCH S1
'EXEC v1 = "1.23" : s1 = "1.23"
