Having a problem to plot a graph of the function y=x^2 (x squared) :S
in
Programming Questions
•
11 months ago
every time i try to create the function it never draws the negative side of the quadratic function
this is what i have so far
int y ;
int x = 0;
void setup()
{
size (600, 600);
}
void draw()
{
x ++;
y = x*x; //equation
y = height - y;
strokeWeight(10);
point (x+200, y);
}
1