Skip to content

Use math.sqrt(x) instead of x ** 0.5 #30

@DimitriPapadopoulos

Description

@DimitriPapadopoulos

It's not clear whether x ** 0.5 is faster than math.sqrt(x):
Which is faster in Python: x**.5 or math.sqrt(x)?

I find x ** 0.5 less readable so I suggest getting back to math.sqrt(x).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions