Re: [sympy] Elementary integration fails

2016-11-10 Thread Aaron Meurer
Keep in mind that indefinite integrals are only defined up to a constant. simplify(u.diff(x) - c(x)*c(x-y)) gives 0, which demonstrates that the integral is correct. As to why they are different, for some reason, integrate isn't giving arctangents in the former case. This could be considered a bug

[sympy] Elementary integration fails

2016-11-10 Thread qm
Why do these identical elementary integrations lead to differing results? In the 1st version the parameters y,G are kept arbitrary before doing the integration. In the 2nd version the parameters are set before the integration. The integrand is completely harmless, both with respect to the variable

Re: [sympy] multiply numerator and denominator of rational expression

2016-11-10 Thread Aaron Meurer
SymPy expressions are immutable. You have to create a new expression. I would recommend something like def mul_and_div_factor(expr, factor): n, d = expr.as_numer_denom() return (n*factor)/(d*factor) Aaron Meurer On Thu, Nov 10, 2016 at 7:40 AM, Scott Calabrese Barton wrote: > Hi, I wond

Re: [sympy] solvers.nsolve() vs. sympy.solvers.solveset.nonlinsolve()

2016-11-10 Thread Aaron Meurer
nsolve stands for "numeric solve". It isn't going away. nonlinsolve symbolically solves nonlinear systems of equations. If you want a symbolic solution, you should use it. If you want a numeric solution, use nsolve. Aaron Meurer On Thu, Nov 10, 2016 at 3:08 AM, wrote: > Hello, > > I have code t

[sympy] solvers.nsolve() vs. sympy.solvers.solveset.nonlinsolve()

2016-11-10 Thread homerun4711
Hello, I have code that uses solvers.nsolve(). Is sympy.solvers.solveset.nonlinsolve() the recommended function to replace that? Kind regards, Joe -- You received this message because you are subsc

[sympy] multiply numerator and denominator of rational expression

2016-11-10 Thread Scott Calabrese Barton
Hi, I wonder if there is an easy way to multiply the numerator and denominator of a rational expression by the same factor. I'd like to do this to group terms so that I can make a substitution. I tried making a function to do this: def tb(exp,factor): if exp.func==Mul and exp.args[-1].func=

[sympy] nsolve and nonlinsolve

2016-11-10 Thread homerun4711
Hallo, I hope this is no double post, my previous thread is not displayed in the group. Will nonlinsolve from sympy.solvers.solveset replace solvers.nsolve? I could not find that in the documentation. I tried to run some examples for nonlinsolve but get an ImportError after from sympy.solvers.

[sympy] UCD CS Senior Design Call for Proposals, Deadline Dec 1

2016-11-10 Thread Jason Moore
Last year we had a student group from UCD implement series in SymEngine that was a positive experience for all involved. The call for proposals is open again this year and the deadline is Dec 1. I plan to submit a proposal again and maybe others would too. Keep in mind that this requires mentoring

Re: [sympy] Re: Sympy and mpmath imported but still ImportError

2016-11-10 Thread Alexander Tille
Ok! Thank you for this answer. I still used the standard python interpreter. I changed it to #!~/.anaconda2/bin/python and it works. Thank you for your explanations. Alex Am Mittwoch, 9. November 2016 20:30:34 UTC+1 schrieb Aaron Meurer: > > If you are using the Anaconda Python, neither of th