(i * i <= radicand) {
41(radicand / x0 + x0) / 2;
44 while(std::max(x0, x1) - std::min(x0, x1) < 0.0001) {
45temp = (radicand / x1 + x1) / 2;
65 autotestcase1 = 125348;
66 autotestcase2 = 752080;
68 autoreal_output1 = 354.045194855;
69 autoreal_output2 = 867.225460881;
76assert(std::max(test_result1, real_output1) -
77std::min(test_result1, real_output1) <
80assert(std::max(test_result2, real_output2) -
81std::min(test_result2, real_output2) <
85std::cout <<
"All tests have successfully passed!\n";
static void test()
Self-test implementations.
int main()
Main function calls automated test function to test the working of fast fourier transform.
double babylonian_method(double radicand)
Babylonian methods is an iterative function which returns square root of radicand.
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