[sympy] Re: What does the second argument in apart() do?

2015-06-26 Thread Hugh
Thanks Sartaj for the clarification. On Tuesday, 16 June 2015 01:25:57 UTC+8, Sartaj Singh wrote: Here, frac is multivariate, i.e it depends on more than one variable. So, you need to explicitly tell the apart function for which variable should it perform the decomposition. Eg. No need to

[sympy] Re: What does the second argument in apart() do?

2015-06-15 Thread Sartaj Singh
Here, frac is multivariate, i.e it depends on more than one variable. So, you need to explicitly tell the apart function for which variable should it perform the decomposition. Eg. No need to give x as the second argument In [21]: apart(1/((x+1)*(x+2))) Out[21]: 1 1 - ─ +