wood burning stoves 2.0*
The moose likes Programming Diversions and the fly likes [simple]Quiz Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "[simple]Quiz" Watch "[simple]Quiz" New topic
Author

[simple]Quiz

Ellen Zhao
Ranch Hand

Joined: Sep 17, 2002
Posts: 581

How does this equation look like?

worth rendering it out with Java graphic API or Matlab or whatever, for tomorrow it might be useful.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
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
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!
Ellen Zhao
Ranch Hand

Joined: Sep 17, 2002
Posts: 581
Jim I'm disappointed.
Warren Dew
blacksmith
Ranch Hand

Joined: Mar 04, 2004
Posts: 1332
    
    2
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
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
Got it. If you'd asked what the graph of the equation looks like, I'd have gotten it sooner.
Ellen Zhao
Ranch Hand

Joined: Sep 17, 2002
Posts: 581
Now the result here.
Arjun Shastry
Ranch Hand

Joined: Mar 13, 2003
Posts: 1874
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 ]

MH
Joyce Lee
Ranch Hand

Joined: Jul 11, 2003
Posts: 1392
Didn't have a Matlab tool and was too lazy to plot it out manually. Made a wild guess and thought this would be the answer. Got that wrong.
Warren Dew
blacksmith
Ranch Hand

Joined: Mar 04, 2004
Posts: 1332
    
    2
Arjun Shastry:

I m trying to plot it on a paper but not getting it correctly cardiode shape.in XY plane

Try the YZ plane (x = 0).
 
jQuery in Action, 2nd edition
 
subject: [simple]Quiz