( TCH | 2021. 04. 14., sze – 17:15 )

Nitpicking rovat:

    if (q==0) return NAN;
    if (p==0) return 1.0;
+   if (p==q) return a;