Skip to content

Error Creating Matrices of Differentials in SageMath 10.3+ #38583

Open
@smelczer

Description

Steps To Reproduce

In SageMath 10.3 or 10.4, run

W = DifferentialWeylAlgebra(PolynomialRing(SR,['t']))
D = list(W.differentials())
matrix(W,[D[0]])

or

W = DifferentialWeylAlgebra(PolynomialRing(SR,['t']))
D = list(W.differentials())
matrix(parent(D[0]),[D[0]])

Expected Behavior

The 1x1 matrix [dt] over the ring W

Actual Behavior

Throws error TypeError: unable to convert (0,) to a symbolic expression

Additional Information

Changing SR to another base ring gives an analogous error. The matrix constructor seems to try and put the differential in the base ring of W instead of W itself. Playing around in CoCalc, this error does not appear in SageMath 10.2 or earlier, but does appear in 10.3 and 10.4. Not sure if there were any changes to matrix (or DifferentialWeylAlgebra) in 10.3 that could be the cause.

Environment

- **OS**: Error occurs on CoCalc and my local mac installation
- **Sage Version**: Error appears in 10.3 and 10.4 on CoCalc (and not on 10.2-)

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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