Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #7789
| From | Jan Burse <janburse@fastmail.fm> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: higher precision doubles |
| Date | 2011-09-11 13:29 +0200 |
| Organization | albasani.net |
| Message-ID | <j4i63n$4ib$1@news.albasani.net> (permalink) |
| References | <j1hqc1$1ch$1@news.albasani.net> <strictfp-20110806003831@ram.dialup.fu-berlin.de> <j1k4db$1n2$1@news.albasani.net> <j4hev1$lho$1@speranza.aioe.org> <a3e5037d-d719-4cab-b903-8849933f52a7@glegroupsg2000goo.googlegroups.com> |
Lew schrieb:
> Since Mathematica runs on *floating point hardware*, create by humans,
This is not quite true what your are saying
here. Mathematica has actually 3 modes in
dealing with sin. The modes are as follows:
- Symbolic
- Machine Precision
- High Precision
What the poster showed, sin[2 Pi] = 0, was an
implicit FunctionExpand of sin, so a symbolic
manoeuvre. If he would force mathematica to
use machine precision or high precision he
would get another result. Here is an example:
N[pi,18] = 3.14159265358979324.
N[sin[3.14159265358979324],18] =
-1.53735661672049712×10^-18
Whether the machine precision uses the floating
point hardware is unspecified. Most likely, but
it could also use some software emulation. So as
to prevent differences from platform to platform,
like the strictfp modifier. Would need to further
dig into the Mathematica documentation for this
question.
For more details and many example uses
of the modes see for example here:
http://reference.wolfram.com/mathematica/ref/Sin.html
For a first intro into the modes see the "Scope" section.
Bye
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Re: higher precision doubles "Nasser M. Abbasi" <nma@12000.org> - 2011-09-10 21:53 -0700
Re: higher precision doubles Lew <lewbloch@gmail.com> - 2011-09-10 22:22 -0700
Re: higher precision doubles "John B. Matthews" <nospam@nospam.invalid> - 2011-09-11 05:36 -0400
Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-09-11 13:29 +0200
Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-09-11 13:50 +0200
Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-09-11 14:09 +0200
Re: higher precision doubles Jan Burse <janburse@fastmail.fm> - 2011-09-11 10:59 +0200
csiph-web