Skip to content

Rooting with units return undef #2421

@bala7sc

Description

@bala7sc

Describe the bug

when performing a root operation on an number that has units attached epsilon will return undef instead of properly converting it.

Screenshots

Example 1:

Image

Example 2:

Image

To Reproduce

Steps to reproduce the behavior:

  1. Go to the 'CALCULATION' app

  2. Type '√(5m^2)' (any number with units in a root operation)
    OR

  3. Type '√(5J/0.5*2kg)'

  4. Evaluate the expression.

Expected behavior

Example 1:
Expected 2m (2√m^2)

Example 2:
Expected 2.236067997ms^-1 (2.236067997m√(1/s^2))

Environment

  • Epsilon version 24.10.0 & 25.1.0
  • Web Emulator & Android Emulator (v24 only)

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