8000 Unreadable real solution for a very simple equation · Issue #22017 · sagemath/sage · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Unreadable real solution for a very simple equation #22017
Closed
@pelegm

Description

@pelegm

Try this (on 7.5.beta4):

sage: solve(x^3 == -8, x)
[x == I*sqrt(3)*(-1)^(1/3) - (-1)^(1/3), x == -I*sqrt(3)*(-1)^(1/3) - (-1)^(1/3), x == 2*(-1)^(1/3)]

The first solution is in fact -2. Looks horrible that way.

Sympy handles this well:

>>> solve(Eq(x**3, -8))
[-2, 1 - sqrt(3)*I, 1 + sqrt(3)*I]

Wolfram Alpha is also ok with this.

Component: symbolics

Keywords: solve

Reviewer: Frédéric Chapoton

Issue created by migration from https://trac.sagemath.org/ticket/22017

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0