You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
143 B
11 lines
143 B
#ifndef MYMATH_HPP
|
|
#define MYMATH_HPP
|
|
|
|
#include <cmath>
|
|
|
|
bool even(double x) {
|
|
return (((int)floor(x)) % 2 == 0);
|
|
}
|
|
|
|
#endif // MYMATH_HPP
|
|
|
|
|