acos()
From Hack Wars Wiki
| Information for free function acos() | |
| Function | acos(float) |
| API | Challenges, Hacktendo |
| Description | Returns the arc-cosine of the float provided in rad. |
Example
This example returns acos(0) which is Pi/2
int main() { float result = 0; result = acos(0.0); setOutputFloat(result); } |
Output: Float Outputted: 1.5707963705062866
