I pulled an expression out of a piecewise function that contains some
derivatives. The full_simplify() method seems unhappy; can anyone
decipher this error or think up a workaround?

sage: load('recovery.py')
sage: r = ZZ(3)
sage: t =  SR.symbol('t', domain='real')
sage: x =  SR.symbol('x', domain='real')
sage: xs = [ZZ(-1), ZZ(1)]
sage: f = function('f', x)
sage: spline = S(r, x, t, xs, f)
sage: type(spline)
<type 'instance'>
sage: s0 = spline(0)
sage: s0
1/8*(sqrt(2) - 1)*sqrt(2)*D[0, 0](f)(1) - 1/8*(2*sqrt(2) -
1)*sqrt(2)*D[0](f)(1) - 1/8*((2*sqrt(2) + 1)*sqrt(2) - 8)*D[0](f)(-1) -
1/8*((sqrt(2) + 1)*sqrt(2) - 4)*D[0, 0](f)(-1) + 1/2*f(-1) + 1/2*f(1)
sage: type(s0)
<type 'sage.symbolic.expression.Expression'>
sage: s0.full_simplify()
---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)
...
...
  File
"/home/mjo/src/sage-4.7.rc2/local/lib/python2.6/site-packages/sage/symbolic/expression_conversions.py",
line 495, in derivative
    raise NotImplementedError, "arguments must be distinct variables"
NotImplementedError: arguments must be distinct variable

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to