help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exp(A) where A is a matix


From: Mirek Kwasniak
Subject: Re: exp(A) where A is a matix
Date: Wed, 4 Aug 1999 08:30:13 +0200

On Tue, Aug 03, 1999 at 02:29:30PM -0500, heberf wrote:
> How do I implement exp(A), where A is a matix, in an .oct file?  The only 
> thing 
> I could find is A.expm but this return the matrix exponential.  I want the 
> thing 
> that returns a matrix B where Bij = exp(Aij).

Hi,

octave:1> e
e = 2.7183
octave:2> a=[1 2; 3 4]
a =

  1  2
  3  4

octave:3> e.^a
ans =

   2.7183   7.3891
  20.0855  54.5982

:)

Mirek



---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.  To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]