Guest User

Untitled

a guest
Sep 23rd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. class Math {
  2.  
  3. /** Initializes the library. */
  4. function void init() {
  5. return Math_orig.init();
  6. }
  7.  
  8. /** Returns the absolute value of x. */
  9. function int abs(int x) {
  10. return Math_orig.abs(x);
  11. }
  12.  
  13. /** Returns the product of x and y. */
  14. function int multiply(int x, int y) {
  15. return Math_orig.multiply(x,y);
  16. }
  17.  
  18. /** Returns the integer part of x/y. */
  19. function int divide(int x, int y) {
  20. return Math_orig.divide(x,y);
  21. }
  22.  
  23. /** Returns the integer part of the square root of x. */
  24. function int sqrt(int x) {
  25. return Math_orig.sqrt(x);
  26. }
  27.  
  28. /** Returns the greater number. */
  29. function int max(int a, int b) {
  30. return Math_orig.max(a,b);
  31. }
  32.  
  33. /** Returns the smaller number. */
  34. function int min(int a, int b) {
  35. return Math_orig.min(a,b);
  36. }
  37. }
Add Comment
Please, Sign In to add comment