[sympy] Re: SymPy error running Python3

2014-01-13 Thread Janwillem van Dijk
: Linux-3.11.0-12-generic-x86_64-with-Ubuntu-13.10-saucy python: 3.3.2+ (default, Oct 9 2013, 14:50:09) [GCC 4.8.1] sympy: 0.7.4.1-git numpy: 1.7.1 or python: 2.7.5+ (default, Sep 19 2013, 13:48:49) [GCC 4.8.1] On Tuesday, 7 January 2014 11:04:30 UTC+1, Janwillem van Dijk wrote: I have

[sympy] Re: SymPy error running Python3

2014-01-12 Thread Janwillem van Dijk
' and the same for a variation without * print('function value=', fx(X, a)) TypeError: lambda() missing 2 required positional arguments: 'a_0' and 'a_1' So still all help and explanations welcome! Cheers, Janwillem On Tuesday, 7 January 2014 11:04:30 UTC+1, Janwillem van Dijk wrote: I have a SymPy

[sympy] Re: SymPy error running Python3

2014-01-10 Thread Janwillem van Dijk
' Hope this helps to clearify the point. Cheers, Janwillem On Tuesday, 7 January 2014 11:04:30 UTC+1, Janwillem van Dijk 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

[sympy] SymPy error running Python3

2014-01-07 Thread Janwillem van Dijk
implemented feature? Any help very welcome.heers, Cheers, Janwillem -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post

Re: [sympy] sympy.stats how to lambdify with array arguments

2013-08-31 Thread Janwillem van Dijk
the attributes 'positive' etc implemented; the distribution needs that for the sigma. So I leave it to this for the moment. The resulting beautified version is attached. Cheers, Janwillem On Saturday, 31 August 2013 05:04:16 UTC+2, Matthew wrote: The first input to lambdify should be either a SymPy

Re: [sympy] sympy.stats how to lambdify with array arguments

2013-08-30 Thread Janwillem van Dijk
) would be valid. Showing this both through equations an numbers. Thanks again for paying attention, cheers, Janwillem On Friday, 30 August 2013 06:00:21 UTC+2, Matthew wrote: Is the following snippet of use? In [1]: from sympy.stats import * In [2]: n = 5 In [3]: mus = [Symbol('mu'+str(i

[sympy] sympy.stats how to lambdify with array arguments

2013-08-29 Thread Janwillem van Dijk
. Cheers, Janwillem -- You received this message because you are subscribed to the Google Groups sympy group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit

[sympy] Re: sympy formul from string

2012-02-09 Thread janwillem
I realise that I have to give that more thought. Thanks for getting me on track. On Feb 8, 5:58 pm, Chris Smith smi...@gmail.com wrote: On Wed, Feb 8, 2012 at 4:43 PM, janwillem jwevand...@xs4all.nl wrote: Thanks Chris, I must confess I overlooked sympyfy, however, there is a problem

[sympy] sympy formul from string

2012-02-08 Thread janwillem
] in string.letters: f_tmp.write('%s = sympy.Symbol(%s)\n' % (s, s)) f_tmp.write(f) f_tmp.close() #import temp script from sympy_symbols import * print fx dfdx = sympy.diff(fx, x) print dfdx Many thanks for any suggestions janwillem -- You received this message because you are subscribed

[sympy] Re: sympy formul from string

2012-02-08 Thread janwillem
with defining the symbols. Any additional possibilities? import sympy s = '(signal - 1.01 * blank) / resp' y = sympy.sympify(s) print y #only works when symbol resp is defined resp = sympy.Symbol('resp') dydresp = y.diff(resp) print dydresp thanks again, Janwillem On Feb 8, 10:37 am, Chris Smith

[sympy] partial derivatives, please explain

2010-05-04 Thread janwillem
Janwillem -- You received this message because you are subscribed to the Google Groups sympy group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http

[sympy] Re: partial derivatives, please explain

2010-05-04 Thread janwillem
For getting J I already changed from diff to jacobean as you suggested but doing the same a few lines further on with TrHC fails (the commented version, TrHC is a scalar function of X and C). Why can that be? And why is the syntax of hessian and jacobean so different? Thanks again, Janwillem

[sympy] Re: partial derivatives, please explain

2010-05-04 Thread janwillem
and after lambdify my script works like a charm. Thanks, Janwillem On May 4, 4:47 pm, b45ch1 sebastian.wal...@gmail.com wrote: May I ask in what context you require the matrix derivatives. Depending on what you are after an Algorithmic Differentiation (AD) tool could also be a viable alternative

[sympy] sympy subs speed in Monte Carlo

2010-04-28 Thread janwillem
I have a function of a few variables that is the result of some symbolic manipulations like differentiation and matrix operations. I would like to do some Monte Carlo work on this to get the distribution of the function result as a function of the distributions of the inputs. However, the subs

[sympy] Re: sympy subs speed in Monte Carlo

2010-04-28 Thread janwillem
 pm, Sebastian basti...@gmail.com wrote: On 04/28/2010 07:21 PM, janwillem wrote: I have a function of a few variables that is the result of some symbolic manipulations like differentiation and matrix operations. I would like to do some Monte Carlo work on this to get the distribution

[sympy] Re: Thesis Project - sympy.statistics

2009-06-25 Thread janwillem
. All the best, Janwillem On Jun 25, 4:42 pm, cjkogan111 cjkogan...@gmail.com wrote: Good idea Ondrej. I can motivate the creation of a general stat module as a tool for a specific problem. Clark On Jun 24, 6:43 pm, Ondrej Certik ond...@certik.cz wrote: On Wed, Jun 24, 2009 at 6:36 PM

[sympy] Re: Thesis Project - sympy.statistics

2009-06-25 Thread janwillem
sorry www.bipm.org On Jun 25, 8:32 pm, janwillem jwevand...@xs4all.nl wrote: I would think that a thesis project with a more hefty CAS aspect would be inclusion in SymPy of methods for deriving distributions that are functions of other distributions. I mean the techniques that are dealt

[sympy] Re: sympy version decimal places

2009-06-03 Thread janwillem
again, Janwillem On Jun 2, 7:26 pm, Ondrej Certik ond...@certik.cz wrote: On Tue, Jun 2, 2009 at 3:16 AM, janwillem jwevand...@xs4all.nl wrote: A few month ago I had a script that returned - rho*sigma_f*sigma_n (without the quotes) which with sympy.latex print a nice formula. Now, after

[sympy] sympy version decimal places

2009-06-02 Thread janwillem
ugly in latex. How do I get rid of this 1.00? many thanks, janwillem --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sympy group. To post to this group, send email to sympy@googlegroups.com To unsubscribe