[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Derivative function
From: |
Etienne Grossmann |
Subject: |
Re: Derivative function |
Date: |
Wed, 19 Feb 2003 15:28:18 +0000 |
User-agent: |
Mutt/1.3.28i |
Hello,
for numerical differentiation, there are the following functions in
octave-forge :
deriv (f,x0[,h,O,N])
## 1st, 2nd, 3rd or 4th order derivative of a function, computed
## using 2nd or 4th order method.
bs_gradient (f, args, narg)
## 1st Derivative of f wrt the narg'th argument.
cdiff (f, ...)
## Return code that defines a function that computes the 1st
## derivative of f.
Hth,
Etienne
On Wed, Feb 19, 2003 at 03:37:56PM +0100, 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.
--
Etienne Grossmann ------ http://www.isr.ist.utl.pt/~etienne
-------------------------------------------------------------
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
-------------------------------------------------------------