just a question: is sin() not defined with arguments from 0 to 2*PI and 
the result is from -1 to 1? So, what do you expect to get from your 
function? A straight line? I bet you get a straight line...

Henk

Al Smith wrote:

> 
> 
> well,,nope,,I dont get anything drawn..what I have is this..
> 
> case GraphDisplayButton:
>                     {
>                     int n,y;
>                     double x;
> 
>                     for (n = 0; n < 180; n++)
>                     {
>                         x = 4 * n *(RADDEG);
>                         y = sin(x);
>                         WinDrawPixel(n,80+y);
>                     }
>                     handled = true;
>                     break;
>                     }
> 
> where RADDEG =(180.0/PI)
> 


-- 
-------------------------------------------------------------------------
[EMAIL PROTECTED]                                       www.metaviewsoft.de

<A HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946";>
<IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung.jpg";></A>
-------------------------------------------------------------------------


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to