Search:

Type: Posts; User: rcastel2

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    10,637

    thanks, why did i have to add const double pI so...

    thanks, why did i have to add const double pI so i can know for future reference
  2. Replies
    12
    Views
    10,637

    complete code, taking sin (1) as example: sin(1)...

    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)...
  3. Replies
    12
    Views
    10,637

    i tried it but it calculates if it were 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;...
  4. Replies
    12
    Views
    10,637

    calculating sin, cos, and tangent function

    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...
Results 1 to 4 of 4