Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: Exact real parts

  • To: mathgroup at
  • Subject: [mg31203] Re: [mg31201] Exact real parts
  • From: Adriano Pascoletti <pascolet at>
  • Date: Fri, 19 Oct 2001 03:11:52 -0400 (EDT)
  • References: <>
  • Sender: owner-wri-mathgroup at

At 5:35 -0400 17-10-2001, DIAMOND Mark R. wrote:
>Is it possible to get Mathematica to provide the exact real parts of
>something like the 3x3 Hilbert matrix?
>h = Table[1/(i + j - 1), {i, 3}, {j, 3}];
>N and Chop will obviously give their approximations.


let e=Eigenvalues[h]

then use

ComplexExpand[e, TargetFunctions -> {Re, Im}]


Re[ComplexExpand[e]] returns the list of real parts

Im[ComplexExpand[e]] the list of imaginary parts, which is {0,0,0}
for the symmetric matrix h.

Adriano Pascoletti

  • Prev by Date: Switching x and y axes in 2D plots
  • Next by Date: Re: Exact real parts
  • Previous by thread: Exact real parts
  • Next by thread: Re: Exact real parts