more numpy compatibility

2008-03-31 Thread Alan Bromborsky
Suggestion - I did not expect this to work and it did not, but it would be nice if it did make_symbols('x y z') #my own function V = numpy.array([x,y,z]) print V dVdx = diff(V,x) print dVdx should output [1,0,0] --~--~-~--~~~---~--~~ You received this message b

Re: more numpy compatibility

2008-04-01 Thread Ondrej Certik
On Mon, Mar 31, 2008 at 9:42 PM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: > > Suggestion - I did not expect this to work and it did not, but it would > be nice if it did > > make_symbols('x y z') #my own function > V = numpy.array([x,y,z]) > print V > dVdx = diff(V,x) > print dVdx > > sh