factor_list is not able to check const which is not a `number` #11528

Open
Shekharrajak opened this Issue Aug 18, 2016 · 1 comment

Projects

None yet

1 participant

@Shekharrajak
Member
In [1]: factor_list(sqrt(pi) ,x)
Out[1]: (1, [(1, 1/2), (π, 1/2)])

In [2]: factor_list(pi*sqrt(pi) ,x)
Out[2]: (1, [(1, 3/2), (π, 3/2)])

In [7]: factor_list(sqrt(y) ,x)
Out[7]: (1, [(y, 1/2)])

Ans should be:

In [ ]:  factor_list(sqrt(pi) ,x)
Out[ ]: (√π, [])

In [ ]:  factor_list(pi*sqrt(pi) ,x)
Out[ ]: 
⎛ 3/2    ⎞
⎝π   , []⎠


In [ ]: factor_list(sqrt(y) ,x)
Out[ ]: (sqrt(y), [])

@Shekharrajak
Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment