Project

General

Profile

Matematika je kul 2012 » lf_simple.pde

preprosta linearna funkcija - Andrej Brodnik, 09.09.2012 00:37

 
void setup() {
int y;
for (int x= 0; x < 100; x++) {
y= lf(x);
predstavi(x, y);
}
}

int lf(int x) {
return 1*x + 1;
}

void predstavi(int x, int y) {
println("lf ( " + x + " ) = " + y);
}
(2-2/6)