rseq3d
C RSEQ3D SOURCE CHAT 05/01/13 03:07:21 5004 C IMPLICIT INTEGER(I-N) IMPLICIT REAL*8 (A-H,O-Z) -INC PPARAM -INC CCOPTIO C C*********************************************************************** C************** RESOLUTION D UNE EQUATION DE 3EME DEGRE *************** C**************** AAA X**3 + BBB X**2 + CCC X + DDD =0 ***************** C********************* RACINES REELLES UNIQUEMENT ********************** C*********************************************************************** C RF=YUNG*YUNG*1.D-16 C IF(IIMPI.EQ.9) THEN WRITE(6,*) 'AAA',AAA WRITE(6,*) 'BBB',BBB WRITE(6,*) 'CCC',CCC WRITE(6,*) 'DDD',DDD ENDIF C IF(AAA.EQ.0.D0) GO TO 100 A1=BBB/AAA A2=CCC/AAA A3=DDD/AAA RETURN C 100 IF(BBB.EQ.0.D0) GO TO 200 IF(IIMPI.EQ.9) WRITE(6,*) 'CAS D UNE EQ DU 2EME DEGRE' X1=0.5D0*(-CCC+RADE)/BBB X2=0.5D0*(-CCC+RADE)/BBB X3=X1 RETURN C 200 IF(CCC.EQ.0.D0) GO TO 300 X1=-DDD/CCC X2=X1 X3=X1 RETURN C 300 IF(DDD.EQ.0.D0) GO TO 400 X1=1.D0 X2=X1 X3=X1 RETURN C 400 X1=0.D0 X2=X1 X3=X1 RETURN C 500 KERRE=470 REAERR(1)=AAA REAERR(2)=BBB REAERR(3)=CCC REAERR(4)=DDD RETURN C END
© Cast3M 2003 - Tous droits réservés.
Mentions légales