Python's math module in TypeScript
- acos
- acosh
- asin
- asinh
- atan
- atan2
- atanh
- ceil
- comb
- copysign
- cos
- cosh
- degrees
- dist
- exp
- expm1
- fabs
- factorial
- floor
- fsum
- gcd
- hypot
- isclose
- isfinite
- isinf
- isnan
- isqrt
- lcm
- log
- log10
- log2
- pow
- prod
- radians
- sin
- sinh
- sqrt
- tan
- tanh
- trunc
Help us add more
Got a rainy Sunday afternoon and a taste for a porting puzzle?
- Get inspiration from the Python 3 standard library string page.
- Click "New file" in the appropriate folder on GitHub. This will fork the project to your account, directly add the file to it, and send a Pull Request to us.
We will then review it. If it's useful to the project and in line with our contributing guidelines your work will become part of Locutus and you'll be automatically credited in the authors section accordingly.
Upstream Surface Inventory 40/56 shipped • 16 next 71%
Namespace-level inventory for Python 3.12: what we already ship, what we may still want,
and what we intentionally skip or keep.
math
71%
shipped
40/56 shipped
16 next
Shipped (40)
Next
Python math helpers map cleanly to JS numbers and arrays.
cbrterferfcexp2fmodfrexpgammaldexplgammalog1pmodfnextafterpermremaindersumprodulp