This week's book giveaway is in the Open Source Projects forum.We're giving away four copies of Spark in Action and have Jean-Georges Perrin on-line!See this thread for details.
Win a copy of Spark in Action this week in the Open Source Projects forum!

# parasto harir

Greenhorn
since Jan 04, 2013
Cows and Likes
Cows
0
In last 30 days
0
Total given
0
Likes
0
0
Total given
0
Given in last 30 days
0
Scavenger Hunt
Ranch Hand Scavenger Hunt
Greenhorn Scavenger Hunt

## Recent posts by parasto harir

HI,

I have to make a java applet which create contour plot for different function with 2 or 3 variables, is there any library in java which i can use for my java applet?

thanks
7 years ago
Hi,

yes it seems to be easy to calculate for y in terms of x, in f(x,y)=c . but I have to find a solution which is good enough for general types of equation. in your example it was easy to calculate y and x but for example in :
x² +y²+3+log(x)-cos(x+y) = c how should I solve that?

thanks
7 years ago

I have two frame and I defined two different canvas for each of them, one of them which I defined another class for that does not work with my code:

public class myCanvas extends GLCanvas {

private GL gl;
private GLAutoDrawable drawable;

public void paint(GLAutoDrawable drawable) {

GLUT glut = new GLUT();
GL gl = drawable.getGL();

gl.glBegin(GL.GL_LINES);
gl.glVertex3f(0.0f, -2.5f, 0.0f);
gl.glVertex3f(0.0f, 2.5f, 0.0f);
gl.glEnd();}
}

but this canvas works with this code:

public void paint(Graphics g) {
g.drawOval(13, 23, 65, 66);
}

I do not what is wrong , because I need to draw my object by using those code, I call this class by " contour_canvas.paint(drawable); " in the main class?

7 years ago
Actually my program receives step size, first level and number of contours from user then it has to calculate the collection of all points (x,y) in the domain of a function f for which f(x,y) = c .
then it will show all level curves in related area
I want to have some result similar to this site:

but I do not know how to find the exact value of x and y when f(x,y)= c ?
7 years ago
Actually my program receives step size, first level and number of contours from user then it has to calculate the collection of all points (x,y) in the domain of a function f for which f(x,y) = c .
then it will show all level curves in related area
I want to have some result similar to this site:

but I do not know how to find the exact value of x and y when f(x,y)= c ?

7 years ago
I could not find my subject in that site too, you mean that I send them email?
7 years ago
Thanks for your reply but the video was not related to level curves, I did not get the idea.
7 years ago
Hi,

I have to write a program which can draw contour plot(level curves) of every function, but i do not know how to calculate x and y in f(x,y)=z to draw the level curves?
I could not find any source code which can help me