Hi everyone,
I was refreshing FORTRAN 95 and I had a problem with SIN and ASIN. I think both problems are related
The first problem is when I try to calculate the sin 45(radians). The calculator gives me 0.70 while Plato gives 0.85.
The other problem is with ASIN. My program does not calculate the ASIN. This is my program:
PROGRAM cap1_7
IMPLICIT NONE REAL :: A,B,S,pi,C REAL :: X,Y,T WRITE(,)'Sides of a triangle (m)' READ(,)A,B pi=3.1416 S=A*B C=SQRT(A2+B2) T=A/C X=ASIN(T) Y=(180-90+X)
PRINT*, 'hypotenuse',C,'m' PRINT*, 'Area of rectangle',S,'m' PRINT*, 'Triangle angles',X,Y,'Radians'
END PROGRAM cap1_7
Thanks in advance