hi, i was just wondering what i'm doing wrong below with the ~ operator ...

public class PiTest

{

public static void main (String[] args)

{

System.out.println(Pi.piR(2));

System.out.println(Pi.piI(2));

System.out.println(Pi.piI(420000));

}

}

class Pi

{

private int n;

public static double piR(int n)

{

if (n < 1)

return 0;

double v = n;

if ( v % 2 == 0)

return piR(n-1) - (4.0 / (2*v-1));

//~4 / (2*v-1) + piR(n-1) ;

else

return (4 / (2*v-1)) + piR(n-1);