Commit c093e058 authored by Cianciosa, Mark's avatar Cianciosa, Mark
Browse files

Fix test for interger powers to work with non factor of 2 values.

parent 980a1a86
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -370,7 +370,7 @@ namespace graph {
        bool is_integer() {
            const auto temp = this->evaluate().at(0);
            return std::imag(temp) == 0 &&
                   static_cast<size_t> (std::real(temp))%2 == 0;
                   fmod(std::real(temp), 1.0) == 0.0;
        }

//------------------------------------------------------------------------------