Skip to content

Add math.curt() function for cube root #130726

@RajBasu24

Description

@RajBasu24

Feature or enhancement

Proposal:

import math
print(math.curt(27))  # Output: 3.0
print(math.curt(64))  # Output: 4.0

Python’s math module has math.sqrt() for square root, but no direct math.curt() for cube root. Adding math.curt(x) would make cube root calculations easier and more intuitive. Currently, users must use x ** (1/3), which can lead to precision issues. So, it is requested to add this feature in the upcoming release of Python.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions