MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: vector multiplication

  • To: mathgroup at
  • Subject: [mg26170] Re: [mg26123] Re: vector multiplication
  • From: BobHanlon at
  • Date: Thu, 30 Nov 2000 01:04:12 -0500 (EST)
  • Sender: owner-wri-mathgroup at

Direct support for matrix trace is new to V4. However, you can easily 

mat = Array[a, {5, 5}];

tr[mat_] := Module[{i}, Sum[mat[[i, i]], {i, Length[mat]}]]

Tr[mat] == tr[mat]


Bob Hanlon

In a message dated 11/28/00 3:31:26 AM, Heiko_Petermann at writes:

>i'm using mathematica 3.0 and tried to follow the example but it
>didn't work for me. Is the Funktion Tr[...]new in version 4 or

  • Prev by Date: export plotting to another software in IGES format?
  • Next by Date: Polar plot with a twist.
  • Previous by thread: Re: vector multiplication
  • Next by thread: Re: vector multiplication