Math.cbrt | Fil | Observable
Math.cbrt | Fil | Observable
ojs
ojs
ojs
ojs
ojs
ojs
Author
Fil
@fil
Vocateur.
Comments (2)
Job van der Zwan
Apr 1, 2022
I would guess the issue is the rounding error in 1/3 (512 ** (1/3) also gives the wrong answer btw)
Fil
Apr 2, 2022
yup; I've added **1/3 to the tests—but I believe it's only a notational change, and the code goes through the same path as Math.pow
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Explore
Forum
Bluesky
YouTube
X
2
Follow
Follow