Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

Re: Annoying Little Problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg24865] Re: Annoying Little Problem
  • From: Alan <kd7cyb at mac.com>
  • Date: Wed, 16 Aug 2000 03:24:24 -0400 (EDT)
  • References: <8mdm1e$5li@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Mathematica thinks that Sqrt[v2.v2] is sufficiently accurate enough that
the parameter specified to reduce it down to 3 digit precision is not used;
thus, it reverts to the default 6 display digits. This is normal. Use
SetPrecision of 3 instead. N[Sqrt[v2.v2], 3] should be:

SetPrecision[Sqrt[v2.v2],3]

Alan

Nalanji Dreaming wrote:

> I'm having an annoying little problem with version 4.0.1.0. I wrote the
> following info in a notebook and ran it:
>
> Clear[v2]
> v2 = {4, 0, -6}
> N[Sqrt[v2.v2]]
> N[Sqrt[v2.v2], 3]
>
> Now the third line gives me 7.2111 but the fourth line gives me the
> same instead of 7.21. Does anyone have any idea what may be the problem?
> Am I doing something wrong?
>
> thanks,
> Nalanji Dreaming


  • Prev by Date: Re: postscript!
  • Next by Date: Re: Mathematica newbie
  • Previous by thread: RE: Annoying Little Problem
  • Next by thread: Re: Re: Annoying Little Problem