[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can anyone help me fix my circle math?


  • To: omega List <omega-list@xxxxxxxxxx>
  • Subject: Re: Can anyone help me fix my circle math?
  • From: "Gary Fritz" <fritz@xxxxxxxx>
  • Date: Thu, 10 Feb 2005 21:30:41 -0700
  • Priority: normal

PureBytes Links

Trading Reference Links

> Anyone see something that might be wrong?
> value3=sine(idx*180);
> if value3>0 then begin
>   plot1(centerprice+radius*squareroot(value3));  //top half
>   plot2(centerprice-radius*squareroot(value3));  //bottom half
> end;

Why are you taking the sqrt of the sine?  The Y offset of a 
circle is radius * sin(theta).

Taking the sqrt of the sin should make for squarish circles, 
since sin(45deg) = 0.7071 and sqrt(sin(45deg)) is 0.8409.  See 
attached for an example.

Gary

Attachment: sqrtsin.gif
Description: GIF image