Python 3.11 has two NEW math functions!!

preview_player
Показать описание
Python 3.11 has two NEW math functions!!

📓 ML Notebooks available on Patreon:

If you enjoyed this video, please subscribe to the channel:

~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

#Python
Рекомендации по теме
Комментарии
Автор

That is kind of a bad example in the beginning
It isn't wrong, but could be put more clearly as 2**4=4**2
Both is 16, so it is not immediatly obvious what the base is and what the exponent is
For example 3**2=9, but 2**3=8

zugverruckter
Автор

Why does Python not default to a real root if one exists? This is the first time I've seen that (-27)^(1/3) is not -3. What rationale is there to NOT return -3 there?!

floydmaseda
Автор

Wait, python didn't have cbrt all this time?? 👀

ruthvikas
welcome to shbcf.ru