I am trying to make a Java program to calculate the formula for the Ricoeur wavelet:

But the results are not true.
This is what I use:
private static double rickerWavelet(double t, double f){ double p = (Math.pow(Math.PI, 2))*(Math.pow(f, 2))*(Math.pow(t, 2)); double lnRicker = 1 - (2 * p) * Math.exp(-p); return lnRicker; }
Am I using Math functions incorrectly?
java math
Rikkin
source share