127 reputation
13
bio website
location cool story beyonce
age 72
visits member for 2 years, 3 months
seen Jan 1 at 6:34

when someone smiles at me, all I see is an ape bearing its teeth


Jun
25
comment Putting semicolons after while and if statements in C++
But shouldn't that mean then the block after while is no longer part of it and thus should also run?
Jun
25
comment Putting semicolons after while and if statements in C++
Ok that makes sense, although I still don't see why if(expr); should run when it's false while while(expr); doesn't run when it is false.
May
6
comment Trying to sort the coefficients of the polynomial (z-a)(z-b)(z-c)…(z-n) into a vector
I was a bit careless, the number of roots is an even positive integer which I foolishly also called n, but a,b,...,n are arbitrary complex numbers. Ok I'll take a look at that answer thanks.
May
6
comment Trying to sort the coefficients of the polynomial (z-a)(z-b)(z-c)…(z-n) into a vector
Ya for n=3 that's correct, above I was explaining how one derives these inputs for arbitrary n and arbitrary complex numbers. I also edited it above to include the alternating sign.
May
6
comment Trying to sort the coefficients of the polynomial (z-a)(z-b)(z-c)…(z-n) into a vector
Ok just added one.