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

improve documentation of 'solve()' #17412

Open
sagetrac-jakobkroeker mannequin opened this issue Nov 28, 2014 · 6 comments
Open

improve documentation of 'solve()' #17412

sagetrac-jakobkroeker mannequin opened this issue Nov 28, 2014 · 6 comments

Comments

@sagetrac-jakobkroeker
Copy link
Mannequin

sagetrac-jakobkroeker mannequin commented Nov 28, 2014

Even if it is expectable that in some cases solve() may not return all solutions, it should be explicitly pointed out; especially it should be stated that an empty list does not necessarily imply there are no solutions.

See also the discussion at https://groups.google.com/d/msg/sage-support/cg7QYw_1ncg/VKdH3CX4qYsJ

Example from that thread:

solve(5^( x -1) == (1/25)^(2*x), x)
# []
solve(5^( x -1) == (1/25)^(2*x), x,to_poly_solve=True)
#[x == (2*I*pi*z41 + log(5))/log(3125)]

Component: documentation

Branch/Commit: u/jakobkroeker/ticket/17412 @ 2d75747

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

@sagetrac-jakobkroeker sagetrac-jakobkroeker mannequin added this to the sage-6.5 milestone Nov 28, 2014
@sagetrac-jakobkroeker
Copy link
Mannequin Author

sagetrac-jakobkroeker mannequin commented Nov 28, 2014

Branch: u/jakobkroeker/ticket/17412

@sagetrac-jakobkroeker
Copy link
Mannequin Author

sagetrac-jakobkroeker mannequin commented Nov 28, 2014

Commit: 2d75747

@sagetrac-jakobkroeker
Copy link
Mannequin Author

sagetrac-jakobkroeker mannequin commented Nov 28, 2014

comment:2

What is about

 solve_mod()
 solve_ineq_univar()
 solve_ineq_fourier()
 solve_ineq()

may they also fail in some cases to return all solutions?
Which other routines need an explicit statement, that an empty result does not imply
that there are no solutions?


New commits:

2d75747explicitly state that solve may not obtain all existing solutions and that an empty result does not imply there are no solutions

@sagetrac-tmonteil
Copy link
Mannequin

sagetrac-tmonteil mannequin commented Nov 28, 2014

comment:3

I think you should also give an explicit example in the doc. However, the one you provide does not work for me (on 6.5.beta0):

sage: solve(5^( x -1) == (1/25)^(2*x), x)
...
NotImplementedError: non-integral exponents not supported

@rwst
Copy link

rwst commented Nov 28, 2014

comment:4

Replying to @sagetrac-tmonteil:

I think you should also give an explicit example in the doc. However, the one you provide does not work for me (on 6.5.beta0):

sage: solve(5^( x -1) == (1/25)^(2*x), x)
...
NotImplementedError: non-integral exponents not supported

Returns empty list on 6.5beta1. Is x already initialized?

@sagetrac-tmonteil
Copy link
Mannequin

sagetrac-tmonteil mannequin commented Nov 29, 2014

comment:5

Uh my bad, i was using the wrong sage console where i used polynomials before. Sorry for the noise.

That said, adding an example showing explicitly the problem (e.g. that particular example, since it works) could be good to make things explicit. The existing example are somehow too optimistic, and we should point what does not work as well.

@mkoeppe mkoeppe removed this from the sage-6.5 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

2 participants