Bonjour,
je viens d'écrire mon premier programme en fortran
Code:IMPLICIT REAL*8 (A-H,O-Z) REAL*8 b,K,sz,lz,adec,gR,gK,fff INTEGER Z,A CHARACTER*1 plus,moins,etoile,indic,blanc,pop plus='+' moins='-' etoile='*' blanc=' ' MG=1 IW=2 open(MG,status='old',file='magnetic.dat',form='formatted') open(IW,status='new',file='magnetic.res',form='formatted') CONTINUE gsfreep=5.585d0 gsfreen=-3.826d0 glp=1.0d0 gln=0.0d0 gs=(7.0d0/10.0d0)*gsfreep read(1,*)K,sz,lz gK=(1.0/K)*(gs*sz+glp*lz) read(1,*)Z,A gR=Z/A read(1,*)adec f=1.0/(gk-gR) fl=gR-glp fff=gs+gK−2.0d0*glp tig=(−1.0d0)**lz tif=(1.d0/2.0d0)*tig b=f*(fl*adec−tif*fff) write(2,*)b CONTINUE RETURN END
il m'affiche ces erreurs
qu'il qu'un peut m'aider svp ?Code:26 | fff=gs+gK−2.0d0*glp | 1 Error: Invalid character 0xE2 at (1) magnetic.FOR:27:13: 27 | tig=(−1.0d0)**lz | 1 Error: Invalid character 0xE2 at (1) magnetic.FOR:27:12: 27 | tig=(−1.0d0)**lz | 1 Error: Syntax error in expression at (1) magnetic.FOR:29:20: 29 | b=f*(fl*adec−tif*fff) | 1 Error: Invalid character 0xE2 at (1) magnetic.FOR:29:19: 29 | b=f*(fl*adec−tif*fff) | 1 Error: Expected a right parenthesis in expression at (1)
-----