| Re: Doubt about formula transcription |
|
 |
|
 |
|
 |
|
 |
Group: comp.lang.fortran · Group Profile
Author: glen herrmannsfeldtglen herrmannsfeldt Date: May 4, 2008 19:50
On Apr 7, 3:36 pm, Leonardo Marques gmail.com> wrote:
> I've transcripted to fortran as: 2*atan((sin(a)*cos(a))/(0.8-
> cos(a)**2))-((pi)*4/9)
I would use atan2(sin(a)*cos(a),0.8-cos(a)**2)-pi*4/9
You might also want it in double precision. Likely it won't
come out exactly zero, but should be close if a is close
to a solution.
-- glen
|