Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef FACTOR_H
- #define FACTOR_H
- #include <iostream>
- #include <cmath>
- #include <fstream>
- #define PI 3.14
- using namespace std;
- struct SQ{
- string name;
- string a;
- string b;
- string c;
- };
- class Factor
- {
- public:
- double n = 0;
- long long int pot = 0;
- bool inf = false;
- string name = "";
- Factor();
- virtual ~Factor();
- protected:
- private:
- };
- extern int digits = 0;
- extern bool degrees = true;
- extern ofstream* o;
- extern Factor nullFactor;
- template<typename T>
- void Send(T a){
- *o << a;
- cout << a;
- }
- template<typename T>
- void Send(T a, bool b){
- *o << a << "\n";
- cout << a << "\n";
- }
- void Send(Factor a, bool b);
- void Send(Factor a);
- void Send(Factor* a, int n, char c, bool d);
- void Send(Factor* a, int n, char c);
- Factor fixFactor(Factor a);
- bool operator==(Factor a, Factor b);
- bool operator<(Factor a, Factor b);
- bool operator>(Factor a, Factor b);
- bool operator>=(Factor a, Factor b);
- bool operator<=(Factor a, Factor b);
- bool operator!=(Factor a, Factor b);
- Factor operator+(Factor a, Factor b);
- Factor operator-(Factor a, Factor b);
- Factor operator-(Factor a);
- Factor operator*(Factor a, Factor b);
- Factor operator/(Factor a, Factor b);
- Factor F(double b);
- Factor sqrt(Factor a);
- Factor cbrt(Factor a);
- Factor corruptFactor(Factor a);
- Factor tan(Factor a);
- Factor atan(Factor a);
- Factor sin(Factor a);
- Factor asin(Factor a);
- Factor cos(Factor a);
- Factor acos(Factor a);
- #endif // FACTOR_H
Advertisement
Add Comment
Please, Sign In to add comment