Ellen Zhao

Ranch Hand

Posts: 581

posted 12 years ago

How does this equation look like?

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

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

Sheriff

Posts: 18671

posted 12 years ago

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

Posts: 581

Warren Dew

blacksmith

Ranch Hand

Ranch Hand

Posts: 1332

2

Ellen Zhao

Ranch Hand

Posts: 581

posted 12 years ago

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

Sheriff

Posts: 18671

Ellen Zhao

Ranch Hand

Posts: 581

Arjun Shastry

Ranch Hand

Posts: 1903

1

posted 12 years ago

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 ]

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

Posts: 1392

posted 12 years ago

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.

It is sorta covered in the JavaRanch Style Guide. |