This week's book giveaway is in the JavaFX forum. We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line! See this thread for details.

It's legible. It's a little rough looking - you might want to render it at a slightly larger size, or try a different font (or whatever options you have with the tool you're using). But it's good enough now that I can tell the difference between 2 and 3 (for the exponents). Is that the sort of feedback you were looking for?

"I'm not back." - Bill Harding, Twister

Ellen Zhao
Ranch Hand

Joined: Sep 17, 2002
Posts: 581

posted

0

No...sigh, until now still nobody sent her/his result here, just try to render it just like you plot a function...I'll reveal the result today later. And happy V........ to everybody!

Hm, I don't have a graphics package, but the intersection with the YZ plane appears to be from a family of curves called a "cardioid" ... I wonder if that's a clue.

(Just teasing. I guessed what it was from the context and confirmed by plotting a few points. It's cute!)

Ellen Zhao
Ranch Hand

Joined: Sep 17, 2002
Posts: 581

posted

0

Good move. And it's in the right direction already. Okay V........ day in Germany is over now, but still a few hours to go over there in America I guess. I'm going to sleep, will try to get up early tomorrow before 0:00 of JavaRanch time and see if there's anyone successfully rendered the pretty graph. Is this equation that hard to program? The algorithm is already there that's why I marked it as simple...curiously waiting...

Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671

posted

0

Got it. If you'd asked what the graph of the equation looks like, I'd have gotten it sooner.

I m trying to plot it on a paper but not getting it correctly cardiode shape.in XY plane,z= 0 so the equation reduces to : 2*x^2 + y^2 = 1 y^2 = 1 - 2*x^2 for x = 0,y = +-1,extreme values of x will be +- Math.sqrt(1/2) Now X Y 0.0 Y coordinate +-1.0 +-0.1 Y coordinate +-0.9899494936611666 +-0.2 Y coordinate +-0.9591663046625438 +-0.30 Y coordinate +-0.905538513 +-0.4 Y coordinate +-0.824621125123532 +-0.5 Y coordinate +-0.7071067811865476 +-0.6 Y coordinate +-0.5291502622129182 +-0.7 Y coordinate +-0.14142135623730995 I m getting bulging ellipse [ February 15, 2005: Message edited by: Arjun Shastry ]