libnumerixpp  0.1.3
A Powerful C++ Library for High-Performance Numerical Computing
core.hpp
Go to the documentation of this file.
1 
6 #ifndef LIBNUMERIXPP_MATHEMATICS_CORE_HPP
7 #define LIBNUMERIXPP_MATHEMATICS_CORE_HPP
8 
9 #pragma once
10 
15 namespace mathematics {
30  auto old_approximate_power(double base, double exponent) -> double;
31 
45  auto another_approximate_power(double base, double exponent) -> double;
46 
63  auto binary_power(double b, unsigned long long e) -> double;
64 
78  auto fast_power_dividing(double base, double exponent) -> double;
79 
89  auto fast_power_fractional(double base, double exponent) -> double;
90 
99  auto add_percent_to_number(double number, double percentage) -> double;
100 
108  auto square_it_up(double num) -> double;
109 
117  auto get_square_root(double num) -> double;
118 
127  auto intabs(int x) -> int;
128 } // namespace mathematics
129 
130 #endif // LIBNUMERIXPP_MATHEMATICS_CORE_HPP
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