blob: 7d2b47cf10f916fb81f645b1a88cab7fc1aca6cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "abs.h"
#include "bytes.h"
#include "pow.h"
bool loopWords() {
uint64_t totalInt = 0;
double totalFloat = 0;
for (uint16_t i = 1; i != 0; ++i) {
double a = logarithm(i);
a = abs(a);
totalInt += abs(pow(i, static_cast<uint16_t>(a)));
totalFloat += pow(static_cast<decltype(a)>(i), a);
}
return totalInt > totalFloat;
}
|