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

Allow solving of inequalities #7155

Closed
kcrisman opened this issue Oct 8, 2009 · 2 comments
Closed

Allow solving of inequalities #7155

kcrisman opened this issue Oct 8, 2009 · 2 comments

Comments

@kcrisman
Copy link
Member

kcrisman commented Oct 8, 2009

From a Maxima FAQ:

(%i1) load(fourier_elim)$

(%i2) fourier_elim([abs(x - abs(5-x)) < 1],[x]);
(%o2)                          [2<x,x<3]

(%i3) fourier_elim([x + y < 1, x - y > 9],[x,y]);
(%o3)                     [y+9<x,x<1-y,y<-4]

(%i4) fourier_elim([max(-x,x) < 7 * x + 1],[x]);
(%o4)                           [-1/8<x]

From pre-release codebase:

 (%i79) to_poly_solve((x-1)*(x-6) < 0,x);
 (%o79) %union([1 < x,x < 6])

 (%i80) to_poly_solve(min(x,1) < max(-5,x),x);
 (%o80) %union([1 < x],[x < -5])

 (%i81) to_poly_solve(min(x,1) # max(x,4),x);
 (%o81) %union([1 < x,x < 4],[4 < x],[x = 1],[x < 1],[x = 4])

 (%i82)  to_poly_solve((x+1)/(x-1) < 4,x);
 (%o82) %union([5/3 < x],[x < 1])

So it should not be too hard to wrap this, checking input/output for < or > or something. This is one of those basic things people want, but which we assume it's too hard to write from scratch (which it probably is!).

CC: @jasongrout @jhpalmieri @burcin

Component: symbolics

Keywords: solve, inequality, Maxima

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

@kcrisman kcrisman added this to the sage-4.2.1 milestone Oct 8, 2009
@kcrisman
Copy link
Member Author

comment:1

This is now a duplicate of #7325, which already has a first patch, so I am closing this ticket.

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Oct 28, 2009

comment:2

Replying to @kcrisman:

This is now a duplicate of #7325, which already has a first patch, so I am closing this ticket.

kcrisman, please don't close tickets. That's the job of the release manager. See this section of the Developer's Guide for conventions on closing tickets.

@sagetrac-mvngu sagetrac-mvngu mannequin removed this from the sage-4.2.1 milestone Oct 28, 2009
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

1 participant