Why doesn't public int x( int i, double x ) look more like public int y( int i, double x )?

public int y( int i, double x )

{

int P0, P1, P2, P3 ;

P0 = get( i-1 ).x ;

P1 = get( i ).x ;

P2 = get( i+1 ).x ;

P3 = get( i+2 ).x;

int P = (P3 - P2) - (P0 - P1) ;

int Q = (P0 - P1) - P ;

int R = P2 - P0 ;

int S = P1 ;

return (int ) (P*x*x*x + Q*x*x + R*x + S) ;

}

public int y( int i, double x )

{

int P0, P1, P2, P3 ;

P0 = get( i-1 ).x ;

P1 = get( i ).x ;

P2 = get( i+1 ).x ;

P3 = get( i+2 ).x;

int P = (P3 - P2) - (P0 - P1) ;

int Q = (P0 - P1) - P ;

int R = P2 - P0 ;

int S = P1 ;

return (int ) (P*x*x*x + Q*x*x + R*x + S) ;

}