Skip to content

x^2 - a x + 1 = 0 is not solved for x #300

@antononcube

Description

@antononcube

Description

Consider this equation: x^2 - a x + 1 = 0 -- it can be solved for the variable a, but not for the variable x.

Steps to Reproduce

  • solve('x^2 - a x + 1 = 0', 'x')
  • solve('x^2 - a x + 1 = 0', 'a')

Actual Result

I simply get no result for solve('x^2 - a x + 1 = 0', 'x').

Expected Result

Solution of the quadratic equation. E.g.

{{x -> (a - Sqrt[-4 + a^2])/2}, {x -> (a + Sqrt[-4 + a^2])/2}}

Environment

I used latest version of Compute Engine installed with:

npm install @cortex-js/compute-engine

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