Skip to content

[bug] Incorrect display when change the unit by power and sqrt ... #17

@Routhleck

Description

@Routhleck
import saiunit as u

x = 3. * u.meter
print(u.math.sqrt(x ** 2))
# 3. * meter2 ** 0.5

print((x ** 2) **(1/2))
# 3. * meter2 ** 0.5

print(((x ** 2) ** (1/2)) ** 2)
# 9. * metre ** 2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions