Comment #4 on issue 2813 by smi...@gmail.com: solve(x**2 - x - 0.1) doesn't give both solutions
http://code.google.com/p/sympy/issues/detail?id=2813

The only way to get this single solution now is to explicitly say that
you don't want solve to work in Rationals:

```python

@XFAIL
def test_issue_2813x():
    #polys's roots gives only one answer
    assert len(solve(x**2 - x - 0.1, rational=False)) == 2

def test_issue_2813():
    assert solve(x**2 - x - 0.1, rational=True) == \
        [S(1)/2 + sqrt(35)/10, -sqrt(35)/10 + S(1)/2]
    assert all(s.is_Number for s in solve(x**2 - x - 0.1)) #
[-0.0916079783099616, 1.09160797830996]

```

(This is from https://github.com/sympy/sympy/pull/656 .)

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to