Skip to content

CannotEvalException in 1.4.0 for certain vector values #662

Description

@calummackervoy

Unexpected behaviour or bug: When running the query MathS.FromString("(|[12,15] - [0,0]|)").EvalNumerical() in version 1.4.0, I get an error "AngouriMath.Core.Exceptions.CannotEvalException: Result cannot be represented as a simple number! Use EvaluableNumerical to check beforehand."

When using version 1.3.0 (or 1.3.0-preview3, as in the demo), I get 19.2093734741211.

Curiously, when using other vector values, such as "(|[2,1] - [1,1]|)" in 1.4.0, I get 1, as expected. I don't know why this is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions