D
D
DAN_ON2020-09-30 16:39:55
C++ / C#
DAN_ON, 2020-09-30 16:39:55

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

1 answer(s)
1
15432, 2020-09-30
@DAN_ON

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 your question

Ask a Question

731 491 924 answers to any question