[sympy] SymPy error running Python3

2014-01-07 Thread Janwillem van Dijk
I have a SymPy script with a.o. f_mean = lambdify([mu, sigma], mean, modules='numpy') where mean is a function of mu and sigma and mu and sigma are both arrays mu = symbols('mu_0:%d' % n, real=True, bounded=True) sigma = symbols('sigma_0:%d' % n, positive=True, real=True, bounded=True)

Re: [sympy] SymPy error running Python3

2014-01-07 Thread Ondřej Čertík
Hi Janwillem, On Tue, Jan 7, 2014 at 3:04 AM, Janwillem van Dijk jwe.van.d...@gmail.com wrote: I have a SymPy script with a.o. f_mean = lambdify([mu, sigma], mean, modules='numpy') where mean is a function of mu and sigma and mu and sigma are both arrays mu = symbols('mu_0:%d' % n,

Re: [sympy] SymPy error running Python3

2014-01-07 Thread Aaron Meurer
I'm not sure if lambdify supports nested arguments like this. You may need to do lambdify(mu + sigma, mean) and then call it like f_mean(*(x_n + ux_n)) If it is supposed to support that then it's a bug and we should fix it. If it only doesn't work in Python 3 it may be related to the def f((x,