Skip to Content
Secret Recipes of the Python Ninja
book

Secret Recipes of the Python Ninja

by Cody Jackson
May 2018
Intermediate to advanced content levelIntermediate to advanced
380 pages
9h 37m
English
Packt Publishing
Content preview from Secret Recipes of the Python Ninja

How to do it...

The following functions and constants operate like their normal math cousins, except where noted:

  • exp(x): Calculate math constant e to the power of x.
  • log(x[, base]): There is one branch cutfrom 0, along the negative real axis to -∞, and continuous from above.
  • log10(x): Same branch cut as log
  • sqrt(x): Same branch cut as log
  • acos(x): Two branch cuts—one from 1 to the right along the real axis to  and continuous from below. The other extends left from -1 to -∞ and is continuous from above.
  • asin(x): Same branch cuts as acos
  • atan(x): Two branch cuts: one from 1j along the imaginary axis to ∞j, continuous from the right. The other extends from -1j to -∞j and continuous from the left.
  • cos(x): Calculate the cosine of x.
  • sin(x) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Expanding World of Python

The Expanding World of Python

Dane Hillard

Publisher Resources

ISBN: 9781788294874Supplemental Content