[sympy] Re: Implicit Differentiation

2009-11-07 Thread smichr
On Nov 6, 9:13 am, "Aaron S. Meurer" wrote: > I think there is no need to run solve.  The function will always be   > linear in dy/dx, because it is a linear operator, so the solution will   > always be -diff(eq, ind)/diff(eq, dep).   > Seehttp://en.wikipedia.org/wiki/Implicit_differentiation#F

[sympy] Re: Implicit Differentiation

2009-11-05 Thread Aaron S. Meurer
I think there is no need to run solve. The function will always be linear in dy/dx, because it is a linear operator, so the solution will always be -diff(eq, ind)/diff(eq, dep). See http://en.wikipedia.org/wiki/Implicit_differentiation#Formula_for_two_variables Aaron Meurer On Nov 5, 2009,

[sympy] Re: Implicit Differentiation

2009-11-05 Thread smichr
p.s. just remembering that you will always just get a single solution for dy/dx so you can return the answer rather than a list. It can all be encapsulated as: def implicit_diff(eq, dep, ind): """Return d_dep/d_ind given eq(y) = 0 >>> import sympy as s >>> s.var('x y') (x, y)

[sympy] Re: Implicit Differentiation

2009-11-05 Thread smichr
On Nov 5, 7:54 am, Andrew Hidden wrote: > I was reading another post here on Implicit Differentiation however it > was not quiet what I was looking for. I am just wondering how to do it > in a more simple way like finding dy/dx  for  x^2+y^2 - 36  Is there > something I dont know of like implici

[sympy] Re: Implicit Differentiation

2008-10-07 Thread Alan Bromborsky
Friedrich Hagedorn wrote: > On Mon, Oct 06, 2008 at 06:26:11PM -0400, Alan Bromborsky wrote: > >> Yes almost, but can you suppress the (x1,x2,x3) in the output so that >> the output would be >> >> A*dB/dx1+B*dA/dx1 ? >> > > I dont think that > > dA/dx1 > > is a good idea for a CAS. This

[sympy] Re: Implicit Differentiation

2008-10-06 Thread Ondrej Certik
On Mon, Oct 6, 2008 at 11:28 PM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: > > Suppose I have two symbols A and B that I wish to declare implicit > functions of say the symbols x1, x2, and x3. Then I wish to calculate > the derivative of A*B with respect to x1 and x2 and x3. Can I do this > and

[sympy] Re: Implicit Differentiation

2008-10-06 Thread Ondrej Certik
On Tue, Oct 7, 2008 at 12:26 AM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: > > Ondrej Certik wrote: >> On Tue, Oct 7, 2008 at 12:07 AM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: >> >>> Ondrej Certik wrote: >>> On Mon, Oct 6, 2008 at 11:28 PM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: >

[sympy] Re: Implicit Differentiation

2008-10-06 Thread Alan Bromborsky
Ondrej Certik wrote: > On Tue, Oct 7, 2008 at 12:07 AM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: > >> Ondrej Certik wrote: >> >>> On Mon, Oct 6, 2008 at 11:28 PM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: >>> >>> Suppose I have two symbols A and B that I wish to declare impl

[sympy] Re: Implicit Differentiation

2008-10-06 Thread Ondrej Certik
On Tue, Oct 7, 2008 at 12:07 AM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: > > Ondrej Certik wrote: >> On Mon, Oct 6, 2008 at 11:28 PM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: >> >>> Suppose I have two symbols A and B that I wish to declare implicit >>> functions of say the symbols x1, x2, and

[sympy] Re: Implicit Differentiation

2008-10-06 Thread Alan Bromborsky
Ondrej Certik wrote: > On Mon, Oct 6, 2008 at 11:28 PM, Alan Bromborsky <[EMAIL PROTECTED]> wrote: > >> Suppose I have two symbols A and B that I wish to declare implicit >> functions of say the symbols x1, x2, and x3. Then I wish to calculate >> the derivative of A*B with respect to x1 and x2