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

Latex of ConditionSet gives 'FiniteSet' object has no attribute 'as_expr' #15353

Closed
JMSS-Unknown opened this issue Oct 7, 2018 · 2 comments · Fixed by #15978
Closed

Latex of ConditionSet gives 'FiniteSet' object has no attribute 'as_expr' #15353

JMSS-Unknown opened this issue Oct 7, 2018 · 2 comments · Fixed by #15978

Comments

@JMSS-Unknown
Copy link
Contributor

Solving
sol = nonlinsolve([(sin(a*x)),cos(a*x)],[x,a])
gives
ConditionSet((x, a), {sin(a*x), cos(a*x)}, Complexes(Reals x Reals, False))
calling
latex(sol)
outputs
AttributeError: 'FiniteSet' object has no attribute 'as_expr'
with both versions 1.3 and 1.4.dev

@JMSS-Unknown
Copy link
Contributor Author

Looking back at this, the set of equations should have no solutions. Albeit, I guess it should still be able to print.
pprint gives {(x, a) | (x, a) in S.Complexes and {sin(a*x), cos(a*x)}}
so should latex give something along the lines of
\left\{\left(x, a\right) \mid \left(x, a\right) \in \mathbb{C} \wedge \left\{\sin{\left (a x \right )}, \cos{\left (a x \right )}\right\} \right\}?

@oscargus
Copy link
Contributor

How would
image
do?

\left\{\left( x, \ a\right) \mid \left( x, \ a\right) \in \mathbb{C} \wedge \left\{\sin{\left(a x \right)}, \cos{\left(a x \right)}\right\} \right\} so I realize that it is exactly the same as you requested. In a PR soon near you.

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

Successfully merging a pull request may close this issue.

3 participants