+ 3

Can anyone explain

Print(abs(3+4j))

3rd May 2020, 1:34 PM
《A$# ☆ $ING#》
《A$# ☆ $ING#》 - avatar
3 Answers
+ 5
'j' actually stands for imaginary number :)) However, here abs(3+4j) is finding out the hypotenuse of a right triangle having sides length of 3 and 4. Therefore the answer is : √(3^2 + 4^2) = 5.0 Hope that helps!
3rd May 2020, 1:43 PM
Arb Rahim Badsa
Arb Rahim Badsa - avatar
+ 2
Arb Rahim Badsa awesome, I just learned something that seems like fundamental math and I should have known already. Thank you :)
3rd May 2020, 2:18 PM
Tibor Santa
Tibor Santa - avatar
3rd May 2020, 3:14 PM
Daljeet Singh
Daljeet Singh - avatar