0
Math domain error
I am wrote code and i am had an a error, "Math domain error", why? How to fix it? https://code.sololearn.com/cU7NtZgaY2d2/?ref=app
1 Answer
+ 1
it's because : list.append(num-i)
will result in negative numbers
num2 is negative by the last assignment, math.sqrt(num2) is a complex number.
Hot today
Please help, any idea?
2 Votes
Loop question, I've tried everything that I knew I just don't know. Please help me solve it out
1 Votes
What is wrong? Error on test.
1 Votes
Help me solve this (using loop)
1 Votes
Help me wiht python
1 Votes
how can i flip any word with c++
0 Votes