SHARE
TWEET

Untitled

a guest Dec 10th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let Polekwadratu (x:float)=x*x
  2. Polekwadratu 4.0
  3.  
  4. let Poleprostokata(x:float) y=x*y
  5. Poleprostokata 3.0 4.0
  6.  
  7. let Polekola(x:float)= 3.14 * (x*x)
  8. Polekola 3.0
  9.  
  10. let Obwodkwadratu (x:float)=4.0*x
  11. Obwodkwadratu 1.0
  12.  
  13. let obwodprostokata(x:float) y= 2.0 *x + 2.0*y
  14. obwodprostokata 2.0 2.0
  15.  
  16. let obwodkola(x:float)= 2.0 * 3.14 * x
  17. obwodkola 1.0
  18.  
  19. let zad2(x:float) (y:float) = -3.0 * System.Math.Pow(y,4.0) + 0.5 * System.Math.Pow(x,2.0) + 2.0*y-7.0
  20. zad2 2.0 2.0
  21.  
  22. let rec ciag a q n =
  23.     if n<2 then a
  24.     else q*(ciag a q (n-1))
  25. ciag 1 2 3
  26.  
  27. let rec NWD (x:float) (y:float) =
  28.     if y= 0.0 then x
  29.     else NWD y (x%y)
  30. NWD 4.0 4.0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top