Hello I am trying to do some Math and therefore I need sin and cos.
I had some issuse getting random numbers with no sence so than I focused on Math.sin() my result was that there are some Numbers that give wrong answers.
sinOf(347); returns as an answer 0.9893626321... also sin347° = -0.224951...
sinOf(26); returns 0.762558... also sin26°= 0.438371...
I think it is because I want to use Degrese (°) but I don't know how to chance it in the java code so that it is treading it as ° and not as somethink else.
1 2 3 4 5 6 | public double sinOf( double Grad) { return Math.sin(Grad); } |