[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: exp(A) where A is a matix
From: |
Daniel Heiserer |
Subject: |
Re: exp(A) where A is a matix |
Date: |
Wed, 04 Aug 1999 09:51:45 +0200 |
address@hidden wrote:
>
> 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
>
> :)
I think he asked for a .oct file, not a m-file style.
daniel
---------------------------------------------------------------------
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
---------------------------------------------------------------------