Thread: sin (radians -> grades)

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    64

    Question sin (radians -> grades)

    When you calc with sin you get the result in radians.
    What do I do, if i want to calc with sin, and get the result in grades.
    Can it be done??

  2. #2
    30 Helens Agree neandrake's Avatar
    Join Date
    Jan 2002
    Posts
    640
    what are grades? is that degrees? if so, you multiply the number in radians by 180/PI
    Environment: OS X, GCC / G++
    Codes: Java, C#, C/C++
    AOL IM: neandrake, Email: neandrake (at) gmail (dot) com

  3. #3
    Unregistered
    Guest
    grade or grad?

  4. #4
    Unregistered
    Guest
    Conversion is 360° = 2pi rad = 400 grad, if this is what you are looking for. If not, more info please.

  5. #5
    Registered User
    Join Date
    Mar 2002
    Posts
    64
    When i calc sin(65) on my calculater i'll get 0,90630778 and when I calc in c witg (rad) I get 0,826828.
    Is not degrees, but when you are using the (one) cirkel with cosinus & sinus, i dont know the engelsk word for it).
    You are using it, when you teach what sin & cos are, and there is a cirkel with radius 1.

    Hope you can understand this..:-)

    tx
    Gugge
    !G!

  6. #6
    Unregistered
    Guest
    sin 90 degrees = 1.0
    sin 100 grads = 1.0
    sin 1.570796327 rads = 1.0
    Where are you from?
    circle = 360 degrees
    circle = 400 grads
    circle = 2 * pi rads = 6.283185307 rads
    a rad is roughly 57.3 degrees

  7. #7
    Registered User bljonk's Avatar
    Join Date
    Oct 2001
    Posts
    70
    maybe u are just entering the values in DEGREES instead of entering the in RADIANS to the program;

    sin(double radians); //where radians is the value of an angle but expressed in radian not in degrees, otherwise you will never get the right value back to u.

    this macro should do u a big help:

    #define _RAD(x) (x) *(0.017453292) //will convert degrees to radians, but you should write a function to do it for you; more secure and bug free.
    Ünicode¬>world = 10.0£

  8. #8
    Registered User
    Join Date
    Mar 2002
    Posts
    64
    tx foir all you answers i figured it out, and now my program i working prb...tx...
    !G!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. small -> big -> bigger -> bigger than bigger -> ?
    By happyclown in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 03-11-2009, 12:12 PM
  2. Replies: 16
    Last Post: 10-27-2007, 12:42 PM
  3. Sin Tables (and rotations)
    By Epo in forum Game Programming
    Replies: 15
    Last Post: 05-29-2005, 05:41 PM
  4. Grades program has me lost
    By adrea in forum C++ Programming
    Replies: 3
    Last Post: 12-14-2002, 08:35 PM
  5. Replies: 13
    Last Post: 08-15-2002, 09:20 AM