x[i] = 3.6f * i; y[i] = (float) Math.sin(x[i] * PI / 180.0);
x[i] = 3.6 * i; y[i] = Math.sin(x[i] * Math.PI / 180.0);
    void plot3()    {        int space0 = 0, mark0 = 0, space1 = 1500, mark1 = 1500;        int i;    // For the final graph we wish to override the default tick intervals,    // and so do not use plenv().        pls.adv(0);    // Use standard viewport, and define X range from 0 to 360 degrees, Y    // range from -1.2 to 1.2.        pls.vsta();        pls.wind( 0.0f, 360.0f, -1.2f, 1.2f );    // Draw a box with ticks spaced 60 degrees apart in X, and 0.2 in Y.        pls.col0(1);        pls.box("bcnst", 60.0f, 2, "bcnstv", 0.2f, 2);    // Superimpose a dashed line grid, with 1.5 mm marks and spaces.     // plstyl expects a pointer!        pls.styl(1, mark1, space1);        pls.col0(2);        pls.box("g", 30.0f, 0, "g", 0.2f, 0);        pls.styl(0, mark0, space0);        pls.col0(3);        pls.lab( "Angle (degrees)", "sine",                 "#frPLplot Example 1 - Sine function" );        for (i = 0; i < 101; i++) {            x[i] = 3.6f * i;            y[i] = (float) Math.sin(x[i] * PI / 180.0);        }        pls.col0(4);        pls.line(101, x, y);    }