Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comparison with wildcard raises error #21070

Open
dkrenn opened this issue Jul 21, 2016 · 2 comments
Open

comparison with wildcard raises error #21070

dkrenn opened this issue Jul 21, 2016 · 2 comments

Comments

@dkrenn
Copy link
Contributor

dkrenn commented Jul 21, 2016

sage: w = SR.wild()
sage: {a*w+b: 0 for a in [1, 2] for b in [1, 2]}

results in a TypeError

...
TypeError: ECL says: THROW: The catch MACSYMA-QUIT is undefined.

This seems to be a problem with comparison as:

sage: w = SR.wild()
sage: bool(w == 1)

results in the same error.

Component: symbolics

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

@dkrenn dkrenn added this to the sage-7.3 milestone Jul 21, 2016
@rwst
Copy link

rwst commented Aug 10, 2016

comment:1

Up to now noone thought about what happens if wildcards are compared. That Python's dictcomp calls Expression.__nonzero__ is problematic is nothing, new but it was just a performance problem. Now we need to make sure in the Maxima interface that no wildcards slip through.

@rwst
Copy link

rwst commented Aug 10, 2016

comment:2

Better still, in __nonzero__ check early for wildcards in equations and use (lhs-rhs).is_trivial_zero().

@mkoeppe mkoeppe removed this from the sage-7.3 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants