Re: Function evaluation confusion (and numerics)

2008-04-16 Thread etollerud
On Apr 15, 10:06 pm, "Ondrej Certik" <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 2:01 AM, <[EMAIL PROTECTED]> wrote: > > > I think secant should work with sympy functions too, not only python > lambdas. Even if it's slow. If anyone (you?) would like to implement > that, it'd be awesome.

Re: Function evaluation confusion (and numerics)

2008-04-15 Thread etollerud
On Apr 15, 11:56 am, Gael Varoquaux <[EMAIL PROTECTED]> wrote: > On Tue, Apr 15, 2008 at 11:44:16AM -0700, [EMAIL PROTECTED] wrote: > > For the function of two variables, the natural assumption is that > > f(0,1) means x=0 and y=1 because that's alphabetical order - that's > > how nearly everyone

Re: Function evaluation confusion (and numerics)

2008-04-15 Thread etollerud
For the function of two variables, the natural assumption is that f(0,1) means x=0 and y=1 because that's alphabetical order - that's how nearly everyone does it in the symbolic math world (just think back to algebra and calculus courses - it's ALWAYS written in that order, except for the occasion

Re: Function evaluation confusion (and numerics)

2008-04-15 Thread etollerud
I understand that there are other ways of doing this that may be numerically more efficient, but it seems to me that the expectation that you should be able to call a function of one variable in this fashion (or even a function of two variables as e.g. g=x*y+x/y ; g(4,2) ) seems like a reasonable

Function evaluation confusion (and numerics)

2008-04-14 Thread etollerud
I'm trying to do a fairly simple task as an exercise in trying to understand how sympy works: find the root of a transcendental equation... This is probably some conceptual trip-up that I'm missing, but here it is, starting from the top: >>> from sympy import * >>> f= Function("f") >>> x=symbols(