Hi everyone,
I know this is the C board but hopefully someone can help.
I've been tasked with converting a FORTRAN program to C and am having problems with the 'DSIN' function, for example:
Where theta is 0.104, for example. Generally sin (0.104) is 0.104
.
I've found out the D means degrees.
My question is, converting from FORTRAN to C, should I use
Code:
S = sin(theta)
or
S = sin((180/pi)*theta)
to get the same as the FORTRAN? The FORTRAN output appears to be the same as the first option, which would surely mean the 'D' bit of 'DSIN' is pointless?
*confused*