Télécharger su.eso

Retour à la liste

Numérotation des lignes :

su
  1. C SU SOURCE CB215821 22/11/16 21:15:05 11500
  2. C SUFIT SOURCE CB215821 16/04/21 21:18:30 8920
  3. SUBROUTINE SU(Xbar,Sd,RB1,B2,Gma,Dlta,Xlmbd,Xi)
  4. IMPLICIT INTEGER(I-N)
  5. IMPLICIT REAL*8 (A-H,O-Z)
  6. REAL*8 Xbar, Sd, RB1, B2, Gma, Dlta,
  7. $ Xi, Tol, B1, B3, W, Y, W1, WM1, Z, V, A, B, X,
  8. $ Xlmbd
  9. DATA Tol /0.01D0/
  10. C
  11. C Calcul de Beta_1 et Beta_2 -3
  12. C
  13. B1 = RB1 * RB1
  14. B3 = B2 - 3.D0
  15. C
  16. C W premiere estimation de EXP(Dlta**(-2))
  17. C
  18. W = SQRT(SQRT(2.D0 * B2 - 2.8D0 * B1 - 2.D0) - 1.D0)
  19. IF (ABS(RB1).GT.Tol) GOTO 10
  20. C
  21. C Cas distribution symetrique - resultats theoriques
  22. C
  23. Y = 0.D0
  24. GOTO 20
  25. C
  26. C Debut des iterations de Johnson
  27. C
  28. 10 W1 = W + 1.D0
  29. WM1 = W - 1.D0
  30. Z = W1 * B3
  31. V = W * (6.D0 + W * (3.D0 + W))
  32. A = 8.D0 * (WM1 *(3.D0 + W * (7.D0 + V)) - Z)
  33. B = 16.D0 * (WM1 * (6.D0 + V) - B3)
  34. Y = (SQRT(A * A - 2.D0 * B * (WM1 * (3.D0 + W *
  35. $ (9.D0 + W * (10.D0 + V))) - 2.D0 * W1 * Z)) - A) / B
  36. Z = Y * WM1 * (4.D0 * (W + 2.D0) * Y + 3.D0
  37. $ * W1 * W1)** 2 / (2.D0 * (2.D0 * Y + W1) ** 3)
  38. V = W * W
  39. W = SQRT(SQRT(1.D0 - 2.D0 * (1.5D0 - B2 + (B1 *
  40. $ (B2 - 1.5D0 - V * (1.D0 + 0.5D0 * V))) / Z)) - 1.D0)
  41. IF (ABS(B1 - Z).GT.Tol) GOTO 10
  42. C
  43. C Fin de la boucle iterative de Johnson
  44. C
  45. Y = Y / W
  46. Y = LOG(SQRT(Y) + SQRT(Y + 1.D0))
  47. IF (RB1.GT.0.D0) Y = -Y
  48. 20 X = SQRT(1.D0 / LOG(W))
  49. Gma = Y * X
  50. Dlta = X
  51. Y = EXP(Y)
  52. Z = Y * Y
  53. X = Sd / SQRT(0.5D0 * (W - 1.D0) * (0.5D0 * W *
  54. $ (Z + 1.D0 / Z) + 1.D0 ))
  55. Xlmbd = X
  56. Xi = (0.5D0 * SQRT(W) * (Y - 1.D0 / Y)) * X + Xbar
  57. C write(*,*) RB1,B2,Gma,Dlta,Xlmbd,Xi
  58. RETURN
  59. END
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  

© Cast3M 2003 - Tous droits réservés.
Mentions légales