555oya

Untitled

Nov 6th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Unit SFun;
  2. Interface
  3. Type func=function(x:Single):Single;
  4. Procedure TabFun(f:func;a,b:Single;n:integer;
  5. var Masf,MasX:array of Single);
  6. Implementation
  7. Procedure TabFun;
  8. Var h,x:Single; i:integer;
  9. Begin
  10. h:=(b-a)/(n-1);
  11. for i:=0 to n-1 do
  12. begin MasX[i]:= a+h*i;
  13. Masf[i]:=f(MasX[i]);
  14. end;
  15. End;
  16. End.
Add Comment
Please, Sign In to add comment