[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Differentiation
From: |
Michael Creel |
Subject: |
Re: Differentiation |
Date: |
Tue, 20 Apr 2004 09:32:04 +0200 |
User-agent: |
KMail/1.6.2 |
Hi, numgradient, which is in Octave Forge, will do this for you. Cheers, M.
octave:1> x = rand(3,1)
x =
0.62400
0.49499
0.81590
octave:2> function y = f(x)
> y = sin(x);
> endfunction
octave:3> g = numgradient("f",{x})
g =
0.81155 0.00000 0.00000
0.00000 0.87997 0.00000
0.00000 0.00000 0.68521
octave:4>
On Monday 19 April 2004 17:52, Subhradip Ghosh wrote:
> Hi,
> I would like to know how to do the numerical differentiation of a function
> in octave.
>
> For my case, I have a matrix A, dependent on the variable x. I would like
> to get d/dx(A(x)) for aome value of x.
>
> Is it possible in octave?
>
> Thanks in advance.
>
> Subhradip
>
>
> *******************************************************************
> Subhradip Ghosh
> Post doctoral Fellow
> Department of Materials Science & Engineering
> University of Illinois at Urbana-Champaign
> ********************************************************************
> Office Home
> **********************************************************************
> MSEB 312C * 2001 South Orchard Street Apt D
> 1304 W Green street * Urbana, IL-61801
> Urbana, IL-61801 * Phone # 2173841824
> Phone # 2173336584 * E-mail: address@hidden
> E-mail: address@hidden *
> ************************************************************************
>
>
>
> -------------------------------------------------------------
> 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
> -------------------------------------------------------------
-------------------------------------------------------------
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
-------------------------------------------------------------
- Differentiation, Subhradip Ghosh, 2004/04/19
- Re: Differentiation,
Michael Creel <=