mramine364

Math header

Aug 21st, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include <vector>
  4. #include <cmath>
  5. #include <random>
  6.  
  7. using namespace std;
  8.  
  9. class Math
  10. {
  11.     static double pi;
  12.  
  13. public:
  14.     Math();
  15.     ~Math();
  16.  
  17.     static int sign(long);
  18.     static double round(double, int);
  19.     static double max(vector<double>);
  20.     static double min(vector<double>);
  21.     static double gcd(int, int);
  22.     static double lcm(int, int);
  23.     static double PI(){ return pi; }
  24.     static int modpow(int, int, int);
  25.     static int rand(int, int);
  26.     static long factorial(int);
  27. };
Advertisement
Add Comment
Please, Sign In to add comment