package PlotPackage;
import java.awt.*;

/* ------------------------------------------------ */
/* Inherited Plot classes                           */
/* Each contains its own function and label         */
/* ------------------------------------------------ */


public class Plot1 extends BasePlot {
    
    // Constructor

    public Plot1(int dX, int dY, Color color) {
	
	super(dX, dY, color);
	this.label = "y = sin(x)";
	
    }
    
    double f(double x) 
    {
	int phase = dX / 2;
	
	return dY/2 - Math.sin((x - phase)/16) * dY / 4;
    }
    
    void move(int time)
    {}
}

