Initial structure for refactoring, some conversions still missing. Especially required further test cases.

This commit is contained in:
Klaus Basan
2013-04-19 00:19:41 +02:00
parent 5bf308c54b
commit 8121babe77
22 changed files with 607 additions and 120 deletions

View File

@@ -14,7 +14,7 @@ namespace Math
/*
* Hypotenuse
*/
double CMath::hypot(double x, double y)
qreal CMath::hypot(qreal x, qreal y)
{
x = abs(x);
y = abs(y);
@@ -27,7 +27,7 @@ double CMath::hypot(double x, double y)
/*
* Real part of cubic root
*/
double CMath::cubicRootReal(const double x)
qreal CMath::cubicRootReal(qreal x)
{
double result;
result = std::pow(std::abs(x), (double)1 / 3);