xxxxxxxxxx
16
function setup() {
createCanvas(400, 400);
let x=-sqrt(2)
let y=-2
while(x<sqrt(2)){
while(y<2){
print('('+round(x,2)+','+round(y,2)+','+round(f(x,y),2)+')')
y+=0.1
}
x+=0.1
}
}
function f(x,y) {
return sq(x)/2+sq(y)/4-1
}