Ich habe in C++ folgenden Code geschrieben:
#include <iostream>
#include <Windows.h>
#include <math.h>
using namespace std;
int main()
{
float a = 100;
float b = 100;
float c = 100;
float d = 100;
float e = 100;
float f = 100;
float yCalcMous = atan((a - b) / sqrt(pow(c - d, 2) + pow(e - f, 2)));
cout << yCalcMous;
system("PAUSE > NUL");
return 0;
}
Als Ausgabe kommt aber leider nur das:
-nan(ind)
Nun weiß ich nicht ob das ein Fehler in c++ ist oder ob ich ein Fehler gemacht habe:/ Ich kann auch nichts dazu im Internet finden.