Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7691
| From | "David Park" <djmpark@comcast.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | RE: For a variety of plotting experiences, maybe bugs? (small intervals) |
| Date | 2012-01-09 08:25 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jee89n$d24$1@smc.vnet.net> (permalink) |
| References | <je3vti$eeh$1@smc.vnet.net> <je6e5h$q7b$1@smc.vnet.net> <24475751.93762.1326015447306.JavaMail.root@m06> |
Small domains and small intervals are often treated masochistically. And why
the powers of 2 instead of 10?
This is the easy way to make the plots. Use a reasonable domain and range
and enough WorkingPrecision.
With[{n = 140},
Plot[(Cos[x 10^-n + 1] - Cos[1]) 10^n, {x, 0, 1},
WorkingPrecision -> n + 3,
Frame -> True,
FrameLabel -> {(y - 1) 10.^n, 10.^n (Cos[y] - Cos[1])}]
]
Or use a series expansion:
Series[10^n (Cos[1 + x 10^-n] - Cos[1]), {x, 0, 2}] // Normal
-2^(-1 - n) 5^-n x^2 Cos[1] - x Sin[1]
and then use MachinePrecision:
With[{n = 145},
Plot[-2^(-1 - n) 5^-n x^2 Cos[1] - x Sin[1], {x, 0, 1},
WorkingPrecision -> MachinePrecision,
Frame -> True,
FrameLabel -> {(y - 1) 10.^n, 10.^n (Cos[y] - Cos[1])}]
]
That is the way they do it in technical journals all the time.
David Park
djmpark@comcast.net
http://home.comcast.net/~djmpark/index.html
From: Richard Fateman [mailto:fateman@cs.berkeley.edu]
try this (I did it on version 7...)
>
Table[Plot[Cos[x], {x, 1 , 1 + 2.0^-i}], {i, 40, 45}]
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
JordanDecompose[] Leslaw Bieniasz <nbbienia@cyf-kr.edu.pl> - 2012-01-05 11:01 +0000
Re: JordanDecompose[] danl@wolfram.com - 2012-01-06 09:16 +0000
For a variety of plotting experiences, maybe bugs? (small intervals) Richard Fateman <fateman@cs.berkeley.edu> - 2012-01-08 09:23 +0000
Re: JordanDecompose[] Leslaw Bieniasz <nbbienia@cyf-kr.edu.pl> - 2012-01-09 08:16 +0000
Re: JordanDecompose[] danl@wolfram.com - 2012-01-10 10:59 +0000
RE: For a variety of plotting experiences, maybe bugs? (small intervals) "David Park" <djmpark@comcast.net> - 2012-01-09 08:25 +0000
Re: For a variety of plotting experiences, maybe bugs? Richard Fateman <fateman@eecs.berkeley.edu> - 2012-01-09 08:26 +0000
csiph-web