utils.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00023 #ifndef libmath_utils_h
00024 #define libmath_utils_h
00025
00026 #include <vector>
00027 #include <utility>
00028 #include <string>
00029
00030 namespace math {
00031
00032 template<class> class TNode;
00033 template<class> class TLibrary;
00034
00038 bool isPrime(unsigned ANumber);
00039
00044 unsigned primeCount(unsigned long long ANumber,
00045 unsigned long long APrime);
00046
00056 unsigned factorize(unsigned long long ANumber,
00057 std::vector<std::pair<unsigned long long, unsigned long long> >& AResult);
00058
00063 std::string factorize(unsigned long long ANumber);
00064
00069 template<class T>
00070 T calculate(const std::string& AExpression);
00071
00075 template<class T>
00076 T calculate(const std::string& AExpression, const TLibrary<T>&);
00077
00082 template<class T>
00083 TNode<T> *derive(const TNode<T> *AExpression, unsigned ACount = 1);
00084
00089 template<class T>
00090 TNode<T> *simplify(const TNode<T> *AExpression);
00091
00096 template<class T>
00097 TNode<T> *expand(const TNode<T> *AExpression);
00098
00102 template<class T>
00103 TNode<T> *copyOf(const TNode<T> *AExpression);
00104
00108 template<class T>
00109 TNode<T> *createTree(const std::string& AExprStr);
00110
00114 template<class T>
00115 TNode<T> *umkehrfunktion(const TNode<T> *ATree);
00116
00120 template<class T>
00121 TNode<T> *integral(const TNode<T> *ATree);
00122
00123 }
00124
00125 #include <math++/utils.tcc>
00126
00127 #endif
Generated on Thu Jul 29 08:56:44 2004 for MathTypeLibrary(libmath++) by
1.3.7