MathGroup Archive 1999

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

Search the Archive

Re: Normalize a vector ????

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16586] Re: Normalize a vector ????
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Wed, 17 Mar 1999 23:55:00 -0500
  • References: <7clevu$9ov@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

alessandro agresti wrote in message <7clevu$9ov at smc.vnet.net>...
>Let's take the complex-vector vett={1, i}
>The normalized complex-vector is {1/sqrt(2), i/sqrt(2)};
>in fact : Conjugate[vett].vett , we get 1.
>Now let's take the LinearAlgebra`Orthogonalization` packet and
>let's do : Normalize[vett].
>We get 1/0 infinity warning......
>why???


Alessandro:
The default inner product is Dot.
We can set the correct one with an option:


<<LinearAlgebra`Orthogonalization`

vett={1, I};

Normalize[vett, InnerProduct -> (Conjugate[#].#&)]

    {1/Sqrt[2], I/Sqrt[2]}

Allan

---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565





  • Prev by Date: Re: Animation
  • Next by Date: need a hand ordering functions
  • Previous by thread: Re: Normalize a vector ????
  • Next by thread: Re: Normalize a vector ????