>
> sage: def secant(xpoint):
> : df = f.differentiate(x)
> : m = df(xpoint)
> : a = f(xpoint) - m*(xpoint)
> : g(x) = a + m*x
> : return g
>
> The trick is to define the function, and the, make the return of the
> "abstract" function.
>
>
Yeah! That wa
Jose Guzman ha scritto:
> Hi everybody,
>
> I am pretty new to symbolic math and Sage but I love it.
>
> I am trying create a function which returns an tangent line at a given
> point (xpoint) in a function f(x) already known as follows:
>
> var('x')
> f(x): x**2
>
> def tangent(xpoint):
>
>