23 #ifndef libmath_utils_h
24 #define libmath_utils_h
32 template<
class>
class TNode;
33 template<
class>
class TLibrary;
38 bool isPrime(
unsigned ANumber);
44 unsigned primeCount(
unsigned long long ANumber,
45 unsigned long long APrime);
56 unsigned factorize(
unsigned long long ANumber,
57 std::vector<std::pair<unsigned long long, unsigned long long> >& AResult);
63 std::string factorize(
unsigned long long ANumber);
70 T calculate(
const std::string& AExpression);
76 T calculate(
const std::string& AExpression,
const TLibrary<T>&);
83 TNode<T> *derive(
const TNode<T> *AExpression,
unsigned ACount = 1);
90 TNode<T> *simplify(
const TNode<T> *AExpression);
97 TNode<T> *expand(
const TNode<T> *AExpression);
103 TNode<T> *copyOf(
const TNode<T> *AExpression);
109 TNode<T> *createTree(
const std::string& AExprStr);
115 TNode<T> *umkehrfunktion(
const TNode<T> *ATree);
121 TNode<T> *integral(
const TNode<T> *ATree);
125 #include <math++/utils.tcc>