reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    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;
}