mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
start with complex number approximations
This commit is contained in:
parent
e485ad5c70
commit
b31aafa4e4
@ -113,8 +113,7 @@ int main(int argc, char **argv)
|
||||
/* initialize root approximations with random values */
|
||||
if (n < degree - 1)
|
||||
{
|
||||
s0[n] = get_rand(coeffs[n]);
|
||||
//+get_rand(coeffs[n]) * I;
|
||||
s0[n] = get_rand(coeffs[n]) + get_rand(coeffs[n]) * I;
|
||||
#if defined(DEBUG) || !defined(NDEBUG)
|
||||
fprintf(log_file, "root_%d,", n);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user