Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7510 > unrolled thread
| Started by | Vicent <vginer@gmail.com> |
|---|---|
| First post | 2012-01-01 07:31 +0000 |
| Last post | 2012-01-02 07:47 +0000 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Erf funcion Vicent <vginer@gmail.com> - 2012-01-01 07:31 +0000
Re: Erf funcion Szabolcs Horvát <szhorvat@gmail.com> - 2012-01-02 07:46 +0000
Re: Erf funcion Frank Iannarilli <frankeye@cox.net> - 2012-01-02 07:47 +0000
| From | Vicent <vginer@gmail.com> |
|---|---|
| Date | 2012-01-01 07:31 +0000 |
| Subject | Erf funcion |
| Message-ID | <jdp256$rqi$1@smc.vnet.net> |
Hello.
I have an expression that depends on the Cumulative Distribution
Function (CDF) of a Normal Variable with mean = 0 and standard
deviation = 1.
When I perform operations and/or derivatives with/for that function
with Mathematica, I get expressions involving Erf function, as the CDF
function of a Normal distributed variable and Erf (error function) are
closely related. Concretely,
FiX[x] == (1/2)*(1 + Erf[x/Sqrt[2]])
and thus
Erf[x] == 2*FiX[x*Sqrt[2]] - 1
where FiX stands for the previously mentioned CDF, I mean:
X = NormalDistribution[0, 1]
FiX[x_] := CDF[X, x]
Is there a quick way to ask Mathematica not to use Erf but always
let the results as a function of FI[x]??
The expressions I get as a result of my computations are larger than
this short example:
3 (2^(7/2 - 2 (k + t))) Cp ( E^(-d^2 - (36 Cp^2)/lambda^2))
((Erf[(-d + (6 Cp)/lambda)/Sqrt[2]] + Erf[(6 Cp + d lambda)/(Sqrt[2]
lambda)])^k)
where "Cp", "k", "t", "d" and "lambda" are parameters or arguments
that I want to keep as "generic".
So, how can I "translate" expressions such as the last one into "FiX
mode"? Or, better, how can I prevent Mathematica to reduce everything
to "Erf mode"??
I hope my question is clear enough... :)
Thank you very much in advance for your answers.
And have a good new year!
--
vicent
dooid.com/vicent
[toc] | [next] | [standalone]
| From | Szabolcs Horvát <szhorvat@gmail.com> |
|---|---|
| Date | 2012-01-02 07:46 +0000 |
| Message-ID | <jdrnc0$8v6$1@smc.vnet.net> |
| In reply to | #7510 |
I'd like to link to the same question asked earlier here: http://stackoverflow.com/questions/8523505/using-alternative-special-functions-in-simplify-and-expand There is one (partial?) answer there. Vicent mentioned there that he would like to get expressions in terms of FiX, while keeping the definition FiX[x_] := ... I believe this is not possible (except perhaps through some formatting tricks with Defer/HoldForm) On 2012.01.01. 8:31, Vicent wrote: > Hello. > > I have an expression that depends on the Cumulative Distribution > Function (CDF) of a Normal Variable with mean = 0 and standard > deviation = 1. > > When I perform operations and/or derivatives with/for that function > with Mathematica, I get expressions involving Erf function, as the CDF > function of a Normal distributed variable and Erf (error function) are > closely related. Concretely, > > FiX[x] == (1/2)*(1 + Erf[x/Sqrt[2]]) > > and thus > > Erf[x] == 2*FiX[x*Sqrt[2]] - 1 > > where FiX stands for the previously mentioned CDF, I mean: > > X = NormalDistribution[0, 1] > FiX[x_] := CDF[X, x] > > > Is there a quick way to ask Mathematica not to use Erf but always > let the results as a function of FI[x]?? > > The expressions I get as a result of my computations are larger than > this short example: > > 3 (2^(7/2 - 2 (k + t))) Cp ( E^(-d^2 - (36 Cp^2)/lambda^2)) > ((Erf[(-d + (6 Cp)/lambda)/Sqrt[2]] + Erf[(6 Cp + d lambda)/(Sqrt[2] > lambda)])^k) > > where "Cp", "k", "t", "d" and "lambda" are parameters or arguments > that I want to keep as "generic". > > So, how can I "translate" expressions such as the last one into "FiX > mode"? Or, better, how can I prevent Mathematica to reduce everything > to "Erf mode"?? > > I hope my question is clear enough... :) > > Thank you very much in advance for your answers. > > And have a good new year! > > -- Szabolcs Horvát Mma QA site proposal: http://area51.stackexchange.com/proposals/37304
[toc] | [prev] | [next] | [standalone]
| From | Frank Iannarilli <frankeye@cox.net> |
|---|---|
| Date | 2012-01-02 07:47 +0000 |
| Message-ID | <jdrner$90h$1@smc.vnet.net> |
| In reply to | #7510 |
expr /. Erf[x_]->F[x] (* Assuming x_ is not a List [vector] *)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web