Re: problem with cos ( pi/2 )
Re: problem with cos ( pi/2 )
- Subject: Re: problem with cos ( pi/2 )
- From: Greg Guerin <email@hidden>
- Date: Sat, 17 Jun 2006 09:16:09 -0700
I wrote:
>If <fp.h> is being included, I suggest a simple test:
> if ( pi != M_PI )
> printf( "Well, isn't that interesting." );
> if ( pi/2.0 != M_PI_2 )
> printf( "Approximately half as interesting." );
More ideas for simple tests. Print the values of:
M_PI - pi
M_PI_2 - pi/2.0
M_PI_2 - acos( 0.0 )
M_PI_2 - asin( 1.0 )
cos( acos( 0 ) )
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden