result = bottom * bottom;
41result = bottom * bottom * a;
69std::srand(std::time(
nullptr));
70std::ios_base::sync_with_stdio(
false);
72std::cout <<
"Testing..."<< std::endl;
73 for(
inti = 0; i < 20; i++) {
74 inta = std::rand() % 20 - 10;
75 intb = std::rand() % 20 - 10;
76std::cout << std::endl <<
"Calculating "<< a <<
"^"<< b << std::endl;
80std::cout <<
"------ "<< a <<
"^"<< b <<
" = "double fast_power_linear(T a, T b)
double fast_power_recursive(T a, T b)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4