Skip to content

odd nth roots of negative numbers evaluate to NaN #210

@mdavis7168

Description

@mdavis7168

Description

See title

Steps to Reproduce

Reproducible on the MathLive demo site:
Screenshot from 2024-10-18 11-32-52

Actual Result

E.g. (-1)^{1/3}, (-32)^{1/5} evaluate to NaN

Expected Result

(-1)^{1/3} should evaluate to -1, (-32)^{1/5} to -2

Environment

Is this a regression: did it use to work in a previous version?

Compute Engine version If using the cortexjs.io site, the version is displayed
at the bottom of the page. If using the library, the version is available as
window[Symbol.for('io.cortexjs.compute-engine')].version in the browser or by importing
version from the library.

MathLive version 0.101.1
ComputeEngine version 0.26.4

Metadata

Metadata

Assignees

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