Skip to content

isequal of two unit vpa precisions #1285

@cbm755

Description

@cbm755

I think the isequal behaviour has changed between SymPy 1.12 and the main branch.

With SymPy 1.13.dev:

>> isequal (vpa (1, 16), vpa (1, 32))
ans = 0

But on 1.12:

>> isequal (vpa (1, 64), vpa (1, 32))
ans = 1

In both cases:

>> vpa (1, 32) == vpa (1, 64)
ans = (sym) True
  • what is correct?
  • what has changed upstream?
  • we should add unit tests for whatever we prefer here.

Related: logspace is failing a test b/c of this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions