Metrick

ГАММА ЁПТЫТЬ

Jun 7th, 2014
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.51 KB | None | 0 0
  1. program Formula_eptit;
  2.  
  3. function power(x: Real; y: Integer): Real;
  4. var
  5.    i: Integer;
  6.    r: Real;
  7. begin
  8.    r := 1;
  9.    for i := 1 to y do
  10.       r := r * x;
  11.    power := r;
  12. end;
  13.  
  14. function Gamma_ept(x, a, b, h: Real): Real;
  15. begin
  16.    Gamma_ept := 0.7*a*((4*pi*power(b, 3)*h) / 3*sqrt(power((sqr(h)+sqr(x)), 3));
  17. end;
  18.  
  19. var
  20.    x: Real;
  21.  
  22. begin
  23.    x := 0;
  24.    while x <= 200 do
  25.    begin
  26.       WriteLn('x = ', x, ' y = ', Gamma_ept(x, 0.5, 20, 35));
  27.       x := x + 20;
  28.    end;
  29.    WriteLn;
  30.    ReadLn;
  31. end.
Advertisement
Add Comment
Please, Sign In to add comment