Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #1247
| From | Peter Pein <petsie@dordos.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Why Mathematica does not issue a warning when the calculations |
| Date | 2011-03-30 09:09 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <imurvc$hs9$1@smc.vnet.net> (permalink) |
| References | <imfa3k$iks$1@smc.vnet.net> <imsh8t$5lt$1@smc.vnet.net> |
Am 29.03.2011 13:54, schrieb John Travolta Sardus:
...
> Just to make an (extreme?) example of what can happen, I was fooling
> around with ill-conditioned matrices, to see whether I could obtain
> accurate results for the solution of ill-conditioned linear systems
> using the second argument to the N function. After a while of playing
> around I entered the following (I wanted to introduce a new vector of
> known values into my calculations)
>
> b = {1, -999999999999998}
>
> Resulting into the output:
>
> {1, -999997999000002}
>
>
> I guess one needs first to learn how to use Mathematica, then he can use
> it effectively
>
>
>
>
>
As you entered (exact) integer values, it is hard to believe that any
version of Mathematica should have given the above result:
In[1]:= b = {1, -999999999999998}
Out[1]= {1, -999999999999998}
and even inexact input will not be altered in a visible way (if any):
In[2]:= b={1.,-999999999999998.}
Out[2]= {1.,-1.*10^15}
In[3]:= NumberForm[%,20]
Out[3]//NumberForm= {1.,-9.99999999999998*10^(14)}
what did you do to the poor (not so) small numbers?
sorry, I don't get it
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Why Mathematica does not issue a warning when the calculations Peter Pein <petsie@dordos.net> - 2011-03-30 09:09 +0000
csiph-web