Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*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 1996

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

Search the Archive

Re: Numerical Evaluation of Sqrt[]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg4076] Re: Numerical Evaluation of Sqrt[]
  • From: fateman at peoplesparc.cs.berkeley.edu (Richard J. Fateman)
  • Date: Fri, 31 May 1996 01:34:36 -0400
  • Organization: University of California, Berkeley
  • Sender: owner-wri-mathgroup at wolfram.com

In article <4obg6v$na9 at dragonfly.wolfram.com>,
Dennis S. Lindell <lindell at ARL.MIL> wrote:

>In[]:=	a=2;
>	b=2;
>	c=2;
>	d=2;
>	e=2;
>	f=2;
>	g=Sqrt[(a+b)^2 + (c+d)^2 + (e+f)^2]
>
>Out[]=	Sqrt[32. + 16. ]

You've clearly left out some things that are quite important. Your
numbers should not appear as 32. or 16.  And if anyone types your
input into Mathematica, the results are 4 Sqrt[3].

You must have some hidden characters in there, or you did something
very strange with Precision and Accuracy.  Mathematica has problems
with numbers if you are used to conventional interpretations as
in Fortran or C.




-- 
Richard J. Fateman
fateman at cs.berkeley.edu   http://http.cs.berkeley.edu/~fateman/

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: SurfaceGraphics vs. Graphics3D
  • Next by Date: Re: Error Tracing - NDSolve
  • Previous by thread: Re: Numerical Evaluation of Sqrt[]
  • Next by thread: Error Tracing - NDSolve