Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium Solvers

New issue 3506 by [email protected]: AttributeError when solveing
http://code.google.com/p/sympy/issues/detail?id=3506

In [1]: solve(diff(pi**(n/2)/gamma(1 + n/2), n), n)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-1-fddcca034a61> in <module>()
----> 1 solve(diff(pi**(n/2)/gamma(1 + n/2), n), n)

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/solvers/solvers.py in solve(f, *symbols, **flags) 776 ###########################################################################
    777     if bare_f:
--> 778         solution = _solve(f[0], *symbols, **flags)
    779     else:
    780         solution = _solve_system(f, symbols, **flags)

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/solvers/solvers.py in _solve(f, *symbols, **flags)
   1202     # fallback if above fails
   1203     if result is False:
-> 1204         result = _tsolve(f_num, symbol, **flags)
   1205         if result is None:
   1206             result = False

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/solvers/solvers.py in _tsolve(eq, sym, **flags)
   1896
   1897     try:
-> 1898         u = unrad(eq, sym)
   1899     except ValueError:
1900 raise NotImplementedError('Radicals cannot be cleared from %s' % eq)

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/solvers/solvers.py in unrad(eq, *syms, **flags)
   2318     # if all the bases are the same or all the radicals are in one
   2319     # term, this is the lcm of the radical's exponent denominators
-> 2320     lcm = reduce(ilcm, [r.exp.q for r in rads])
   2321
   2322     # find the bases of the radicals

AttributeError: 'Mul' object has no attribute 'q'

Bonus points if you recognize that formula.

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

Reply via email to