@@ -136,7 +136,7 @@ protected: | |||||
*/ | */ | ||||
float b = (1.f - lol::sqrt(N + 1.f)) / lol::sqrt((float)N * N * N); | float b = (1.f - lol::sqrt(N + 1.f)) / lol::sqrt((float)N * N * N); | ||||
float a = b + lol::sqrt(N + 1.f) / N; | |||||
float a = b + lol::sqrt((N + 1.f) / N); | |||||
// determinant of matrix M | // determinant of matrix M | ||||
float det = a * (a + (N - 2) * b) - (b * b) * (N - 1); | float det = a * (a + (N - 2) * b) - (b * b) * (N - 1); | ||||
@@ -39,7 +39,7 @@ public: | |||||
{ | { | ||||
std::cout << this->m_base[i][j] << ", "; | std::cout << this->m_base[i][j] << ", "; | ||||
} | } | ||||
std::cout << std::endl; | |||||
std::cout << ";"; | |||||
} | } | ||||
std::cout << std::endl; | std::cout << std::endl; | ||||
@@ -50,8 +50,10 @@ public: | |||||
{ | { | ||||
std::cout << this->m_base_inverse[i][j] << ", "; | std::cout << this->m_base_inverse[i][j] << ", "; | ||||
} | } | ||||
std::cout << std::endl; | |||||
std::cout << ";"; | |||||
} | } | ||||
std::cout << std::endl; | |||||
} | } | ||||
}; | }; | ||||