| View previous topic :: View next topic |
| Author |
Message |
Hanford Carr Guest
|
Posted: Thu Mar 10, 2005 3:51 pm Post subject: arcCos |
|
|
Hi
Just went to fastcode home page and looked at arcCos challenge. The
range is incorrect. The arcCos of a negative number is not between
-PI/2 and PI/2, it is between PI/2 and PI. The range should be 0 to
PI.
Cheers Hanford
|
|
| Back to top |
|
 |
Dennis Guest
|
Posted: Thu Mar 10, 2005 5:21 pm Post subject: Re: arcCos |
|
|
Hi Hanford
| Quote: | Just went to fastcode home page and looked at arcCos challenge. The
range is incorrect. The arcCos of a negative number is not between
-PI/2 and PI/2, it is between PI/2 and PI. The range should be 0 to
PI.
|
You are talking about the description text?
Regards
Dennis
|
|
| Back to top |
|
 |
Hanford Carr Guest
|
Posted: Thu Mar 10, 2005 6:15 pm Post subject: Re: arcCos |
|
|
Dennis wrote:
| Quote: |
snip
You are talking about the description text?
Cheers Hanford
Regards
Dennis
|
Yes, following is the description from the Fastcode Project ArcCos
Challenge section.
"ArcCos Challenge
The objective is to build the fastest replacement for RTL ArcCos.
ArcCos returns the inverse cosine of X. X must be between -1 and 1.
The
return
value will be in the range [-Pi/2..Pi/2], in radians.
There are three overloaded functions differing in the input and output
datatype."
Hanford
|
|
| Back to top |
|
 |
|