Anyone know Fortran?
Author
Discussion

spikeyhead

Original Poster:

20,561 posts

227 months

Wednesday 12th August 2020
quotequote all
Can someone make sense of the line below?

X=SIN(X)/COS(X);A1=X;X=X*X

Which order are the three expressions calculated?

sociopath

3,433 posts

96 months

Wednesday 12th August 2020
quotequote all
Apart from the missing " ; " at the end it's left to right,
they're 3 separate expressions,
Just written on one single line to confuse you

X=SIN(X)/COS(X);
A1=X;
X=X*X

spikeyhead

Original Poster:

20,561 posts

227 months

Wednesday 12th August 2020
quotequote all
sociopath said:
Apart from the missing " ; " at the end it's left to right,
they're 3 separate expressions,
Just written on one single line to confuse you

X=SIN(X)/COS(X);
A1=X;
X=X*X
Thanks, I last wrote some Fortran in 1984 so don't remember such subtle details.