Ask Your Question

Revision history [back]

Taylor expansion twice for a general function cause problem?

Hi,

I met a problem when expanding a general function twice:

f = function('f',var('x')) g = f(x=var('eps')*y) h = taylor(g, eps, 0, 1) taylor(h, eps, 0, 1)

The last expression ends up with an error: NotImplementedError: arguments must be distinct variables

Is it a bug or I got anything wrong? Thanks!

Taylor expansion twice for a general function cause problem?

Hi,

I met a problem when expanding a general function twice:

f = function('f',var('x'))
g = f(x=var('eps')*y)
h = taylor(g, eps, 0, 1)
taylor(h, eps, 0, 1)

1)

The last expression ends up with an error: NotImplementedError: arguments must be distinct variables

Is it a bug or I got anything wrong? Thanks!

click to hide/show revision 3
No.3 Revision

updated 2011-12-16 09:27:26 -0600

kcrisman gravatar image

Taylor expansion twice for a general function cause problem?

Hi,

I met a problem when expanding a general function twice:

y = var('y')
f = function('f',var('x'))
g = f(x=var('eps')*y)
h = taylor(g, eps, 0, 1)
taylor(h, eps, 0, 1)

The last expression ends up with an error: NotImplementedError: arguments must be distinct variables

Is it a bug or I got anything wrong? Thanks!