[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: Derivative function

**From**: |
A S Hodel |

**Subject**: |
Re: Derivative function |

**Date**: |
Wed, 19 Feb 2003 08:42:39 -0600 |

Symbolic derivatives, no, e.g.,
y = derivative('sin(x)','x'); (derivative of sin(x) with respect to x)

`is not available in Octave. Someone wrote to this list recently (in
``the last week or so) about
`using macsyma for symbolic work.
Numerical derivatives:
t = (vector of values)
y = sin(t);
dydt = diff(y) ./ diff(t)
can be done.
On Wednesday, February 19, 2003, at 08:37 AM, Ricardo Cervera wrote:

Hello.
I wanted to know if it is possible to get the derivative function of a
function given, using Octave. I mean, something like:
function y = f(x)
y = sin(x);
endfunction
And what I am looking for is f'(x), for example cos(x).
Thanks a lot.
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------

`A. S. Hodel, Assoc. Prof, Dept. Elect & Comp Eng, Auburn University, AL
``36849-5201
``(334) 844-1854 200 Broun Hall address@hidden
``http://www.eng.auburn.edu/~scotte
`
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------