fix reciprocal test

This commit is contained in:
Christophe 2020-11-24 12:19:30 +01:00
parent da542d6354
commit c31b5aecaa

View File

@ -130,8 +130,8 @@ static int test_acsch()
{
int Error = 0;
Error += glm::acsch(glm::dvec1(0.0001)).x > 10000.0, 0.01 ? 0 : 1;
Error += glm::acsch(glm::dvec1(-0.0001)).x < -10000.0, 0.01 ? 0 : 1;
Error += glm::acsch(glm::dvec1(0.0001)).x > 10000.0 ? 0 : 1;
Error += glm::acsch(glm::dvec1(-0.0001)).x < -10000.0 ? 0 : 1;
Error += glm::all(glm::equal(glm::acsch(glm::dvec1(100.0)), glm::dvec1(0.0), 0.01)) ? 0 : 1;
Error += glm::all(glm::equal(glm::acsch(glm::dvec1(-100.0)), glm::dvec1(0.0), 0.01)) ? 0 : 1;