thanks, why did i have to add const double pI so i can know for future reference
Type: Posts; User: rcastel2
thanks, why did i have to add const double pI so i can know for future reference
complete code, taking sin (1) as example:
sin(1) in radians = .841470
sin(1) in degrees = .017452
code calculates:
correct sin(1) in radians
wrong sin(1) in degrees -- calculates as if sin(1)...
i tried it but it calculates if it were sin(1) * PI / 180 -calculates as this wrong
instead of sin ( 1 * PI /180) - what i want it to do right
i tried putting
const degree = PI / 180.00;...
I am trying to calculate sin, cos, and tan. The program works but it gives it to me in radians. I needed the conversion to degrees which is sin(x) * PI / 180. when i do this it gives me the wrong...