Hi, the following code works in SageCell if I remove the argument of the anonymous function and uncomment line 3.
@interact def _(f=('$f$',x^2)): # f(x)=x^2 x0=1 def tangent(g,z): return derivative(g,x)(z)*(x-z)+g(z) pf=plot(f,-5,5) t=tangent(g=f,z=x0) pt=plot(t,-5,5) show(pf+pt) But in this form I get the deprecation warning sagemathcell.py:8: DeprecationWarning: Substitution using function-call syntax and unnamed arguments is deprecated and will be removed from a future release of Sage; you can use named arguments instead, like EXPR(x=..., y=...) See http://trac.sagemath.org/5930 for details. t=tangent(g=f,z=x0) None of my experiments after reading related posts helped. Any hints? Ingo -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.