Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10739
| From | "Nasser M. Abbasi" <nma@12000.org> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Higher precision in Error function Erf[] needed. |
| Date | 2012-07-02 09:28 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jsrpkh$d3i$1@smc.vnet.net> (permalink) |
| References | <jsbt4i$6pq$1@smc.vnet.net> <jseeua$i3d$1@smc.vnet.net> <jsjqhg$d2j$1@smc.vnet.net> <jsmg81$1jj$1@smc.vnet.net> |
On 6/30/2012 4:17 AM, Ray Koopman wrote:
>
> Just alter the precision of its input. First define
>
> f[x_,n_] := 8*(10 - Abs[10 - 20000*SetPrecision[x,n]])
>
> Then
>
> Plot[Exp@#*(1-Erf@Sqrt@#)&@f[x,20], {x,0,10^-3}, Compiled->False]
>
> works fine.
>
fyi;
using Mathematica 8, the 'Compiled->False' is shown in RED
letters, meaning is not valid option for Plot.
on a side note, I myself, and this is just a styling thing,
when using pure function, find it easier to use @ for
only the RHS of the pure function. Hence the above command
would become
Plot[ Exp[#] * (1-Erf[Sqrt[#]])& @f[x,20], {x,0,10^-3}]
vs.
Plot[Exp@# * (1-Erf@Sqrt@#)& @f[x,20], {x,0,10^-3}]
Again, just different styling, all is valid, but for me, I
find the first case above a little easier to read, since @ is
used only for the pure function argument.
regards,
--Nasser
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Higher precision in Error function Erf[] needed. Cyril <cyril.stephanos@gmail.com> - 2012-06-26 08:50 +0000
Re: Higher precision in Error function Erf[] needed. Ray Koopman <koopman@sfu.ca> - 2012-06-27 08:06 +0000
Re: Higher precision in Error function Erf[] needed. Cyril <cyril.stephanos@gmail.com> - 2012-06-29 08:55 +0000
Re: Higher precision in Error function Erf[] needed. Ray Koopman <koopman@sfu.ca> - 2012-06-30 09:17 +0000
Re: Higher precision in Error function Erf[] needed. "Nasser M. Abbasi" <nma@12000.org> - 2012-07-02 09:28 +0000
Re: Higher precision in Error function Erf[] needed. Ray Koopman <koopman@sfu.ca> - 2012-07-04 07:30 +0000
Re: Higher precision in Error function Erf[] needed. "Alexey Popkov" <lehin.p@gmail.com> - 2012-07-05 10:14 +0000
csiph-web