Categories
Why can I see nan?
#include <stdio.h> #include <cmath> #include <math.h> int main() { float b =acos(2.5)/asin(2.5); printf("%f",b); }
Answer the question
In order to leave comments, you need to log in
Sine / cosine can only take values from -1 to 1 , for some reason you have it 2.5
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question