Hello all,
I'm trying to draw a 2D graph based off of the function e^-(x^2 + y^2). I was origionally thinking I could use two for loops and connect the points with the line function; however, since this is a 2D graph, I'm thinking that won't work, as it would connect every Y coordinate to EVERY x coordinate. Now I'm thinking it might be easier to evaluate the function at simply turn a pixel on at each location... Would that work, or would it be easier to treat the funtion as two separate functions (by separating the variables)?
The function is actually a double integral, evaluated from negative infinity to positive infinity both times, if that helps anyone think about it
thanks!!
-maxthecat