home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!network.ucsd.edu!sdcc12!oba!mstankus
- From: mstankus@oba.ucsd.edu (Mark Stankus)
- Newsgroups: sci.math.symbolic
- Subject: Bug: Mma thinks Sqrt[3] is rational
- Message-ID: <42996@sdcc12.ucsd.edu>
- Date: 3 Jan 93 07:40:47 GMT
- Sender: news@sdcc12.ucsd.edu
- Distribution: usa
- Organization: Mathematics @ UCSD
- Lines: 32
- Nntp-Posting-Host: oba.ucsd.edu
-
- Check out this seession. Sometimes gives a decimal approximation
- to Sqrt[3] instead of just Sqrt[3].
-
- In[126]:= xx = Sqrt[1-r^2]
-
- DialogIndent[0]Out[126]= (1 - r^2)^(1/2)
-
- In[127]:= xx//.r->0.5
-
- DialogIndent[0]Out[127]= 0.866025403784439
-
- In[128]:= (* Now -- the same thing happens *)
-
- In[129]:= 1-r^2 /.r->0.5
-
- DialogIndent[0]Out[129]= 0.75
-
- In[130]:= Sqrt[%]
-
- DialogIndent[0]Out[130]= 0.866025403784439
-
- In[131]:= (* Now 0.75 = 3/4 *)
-
- In[132]:= Sqrt[3/4]
-
- DialogIndent[0]Out[132]= 3^(1/2)/2
-
- In[133]:= (* Sqrt[3] is not rational *)
-
- --
- mstankus
- mstankus@oba
-