6 #ifndef LIBNUMERIXPP_MATHEMATICS_CORE_HPP
7 #define LIBNUMERIXPP_MATHEMATICS_CORE_HPP
63 auto binary_power(
double b,
unsigned long long e) -> double;
127 auto intabs(
int x) -> int;
Basic mathematics utils.
Definition: core.cpp:8
auto old_approximate_power(double base, double exponent) -> double
Algorithm for fast exponentiation "'Old' approximation".
Definition: core.cpp:10
auto get_square_root(double num) -> double
Gets the square root.
Definition: core.cpp:94
auto intabs(int x) -> int
Getting the modulus of a number without a comparison operation.
Definition: core.cpp:119
auto fast_power_fractional(double base, double exponent) -> double
Algorithm: "Fractional fast power".
Definition: core.cpp:67
auto another_approximate_power(double base, double exponent) -> double
Algorithm for fast exponentiation "'Another' approximation".
Definition: core.cpp:55
auto fast_power_dividing(double base, double exponent) -> double
Algorithm: "Dividing fast power".
Definition: core.cpp:38
auto binary_power(double base, unsigned long long exponent) -> double
Algorithm: Binary exponentiation.
Definition: core.cpp:23
auto square_it_up(double num) -> double
Gets the number square (N^2).
Definition: core.cpp:92
auto add_percent_to_number(double number, double percentage) -> double
Adds a percent to number.
Definition: core.cpp:85