Re: Doubt about formula transcription
- From: fj <francois.jacq@xxxxxxx>
- Date: Mon, 7 Apr 2008 13:34:42 -0700 (PDT)
On 7 avr, 22:09, "Michael Metcalf" <michaelmetc...@xxxxxxxxxxxxxx>
wrote:
"Leonardo Marques" <surf...@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
I don't agree : (pi)*4/9 is computed as ((pi)*4)/9) and this is OK.
But the "parameter(k=0.8" is strange, k being no declared REAL !
.
- References:
- Doubt about formula transcription
- From: Leonardo Marques
- Re: Doubt about formula transcription
- From: Michael Metcalf
- Doubt about formula transcription
- Prev by Date: Re: Zero-size arrays
- Next by Date: Re: glibc??
- Previous by thread: Re: Doubt about formula transcription
- Next by thread: Re: Doubt about formula transcription
- Index(es):
Relevant Pages
|
|