Re: Doubt about formula transcription




"Leonardo Marques" <surf3r0@xxxxxxxxx> wrote in message
news:9c4bdee7-084e-4644-8b90-74cbef524878@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hey guys,

im with a little problem when im transcripting a math formula from
maple to fortran, because when i put a solution on the equation, i got
a result diferent from zero.

The formula is: 2*arctan(sin(a)*cos(a)/(.8-cos(a)^2))-4/9*Pi ;
I've transcripted to fortran as: 2*atan((sin(a)*cos(a))/(0.8-
cos(a)**2))-((pi)*4/9)


I don't know Maple, but in Fortran 4/9 gives zero. Try 4.0/9.0.

Regards,

Mike Metcalf


.



Relevant Pages

  • Re: Doubt about formula transcription
    ... a result diferent from zero. ... I don't know Maple, but in Fortran 4/9 gives zero. ...
    (comp.lang.fortran)
  • Re: Doubt about formula transcription
    ... a result diferent from zero. ... I don't know Maple, but in Fortran 4/9 gives zero. ...
    (comp.lang.fortran)
  • Re: Doubt about formula transcription
    ... im with a little problem when im transcripting a math formula from ... maple to fortran, because when i put a solution on the equation, i got ... You need the statement IMPLICIT NONE after the FUNCTION statement ...
    (comp.lang.fortran)
  • Re: Newbie question about double precision
    ... >>equal to zero. ... of Fortran do not allow it. ...
    (comp.lang.fortran)
  • Re: Finding roots of non-linear equations in Excel
    ... Where's the 'Numeric Recipes in BASIC' book? ... > it's no big deal to find the zero. ... > secant method could all be used (binary search is slowest but also ... Also, you are correct, the Numerical Recipes book is Fortran and C. ...
    (microsoft.public.excel.worksheet.functions)