Latex Error Function Erf
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies error function symbol latex of this site About Us Learn more about Stack Overflow the company Business complementary error function Learn more about hiring developers or posting ads with us TeX - LaTeX Questions Tags Users Badges Unanswered Ask inverse error function Question _ TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute: Sign up Here's erfc how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Erf function in LaTeX up vote 12 down vote favorite 4 Is there a way to easily compute the erf function (or the cumulative distribution function of the normal law) in LaTeX? Currently, I use pgf to make computation, but I did not
Normal Distribution
find a way to compute erf using pgf. I would be happy to use any package that is available to compute erf, or any custom solution to compute that function. pgfmath share|improve this question edited Apr 7 '13 at 21:29 Svend Tveskæg 19.3k942115 asked Apr 7 '13 at 18:38 Xoff 1,031816 These references might help you: How to Draw CDF of normal distribution in Tikz and Draw a bivariate normal distribution in TikZ. Actually, there are other useful answers (I've read another interesting one by Jake, but I can't find it now) on the site: perhaps a deeper search is worth. –Claudio Fiandrino Apr 7 '13 at 18:50 I don't want to draw the function, I want to compute and typeset the values. I read that link, but it's not really useful for what I need. Thanks –Xoff Apr 7 '13 at 18:54 1 @Xoff You can create a pgfmath function very easily with the Taylor expression of the erf function. The precision won't be that good anyway as TeX is not meant for math. (Although certain floating point packages/libraries may help here to a certain degree.) –Qr
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up R Error Function Erf(z) up vote 2 down vote favorite 1 This could be a quick one. I have not been able to find a function for http://tex.stackexchange.com/questions/107423/erf-function-in-latex the mathematical "error function" or the "inverse error function" in R. I have not seen a package either. I am aware I can script this but I thought someone MUST have made a package for its various approximations by now. Could be poor googling due to generic terms "error function". Thanks in advance.. r function statistics share|improve this question asked Mar 16 '15 at 0:25 deposition 3215 The pracma package has the erf function. –eipi10 http://stackoverflow.com/questions/29067916/r-error-function-erfz Mar 16 '15 at 0:29 Re: search terms -- try "Gaussian error function", I think that brings up the right thing. –Robert Dodier Mar 16 '15 at 16:55 add a comment| 1 Answer 1 active oldest votes up vote 7 down vote These are very closely related to pnorm() and qnorm(): see the last 4 lines of the example code in ?pnorm: ## if you want the so-called 'error function' erf <- function(x) 2 * pnorm(x * sqrt(2)) - 1 ## (see Abramowitz and Stegun 29.2.29) ## and the so-called 'complementary error function' erfc <- function(x) 2 * pnorm(x * sqrt(2), lower = FALSE) ## and the inverses erfinv <- function (x) qnorm((1 + x)/2)/sqrt(2) erfcinv <- function (x) qnorm(x/2, lower = FALSE)/sqrt(2) If you want to use complex-valued arguments, you need erfz from the pracma package (as commented above by @eipi10). Otherwise, it's not clear whether there's an advantage to using the versions in pracma (the implementations of pnorm() and qnorm() have been very thoroughly tested over a wide range of parameter values ...) As far as searching goes, library("sos") findFn("erf") seems to work pretty well ... share|improve this answer edited Mar 16 '15 at 0:52 answered Mar 16 '15 at 0:46 Ben Bolker 97.6k6138228 1 if this answers your question you're encouraged to click the check mark to accept it ... –Ben Bolker
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings http://stackoverflow.com/questions/15724702/plot-and-calculate-the-expression-with-error-function-in-r and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it error function only takes a minute: Sign up Plot and calculate the expression with error function in R up vote 0 down vote favorite Hi all I have the function/expression with the complementary error function. I want to find the solution for different values of x. Complementary error function can be written as erfc(x)=1-erf(x) The expression I have is erfc(\frac{x-Ut}{\sqrt{4Dt}}) I have latex error function written the expression in Latex syntax. How, you will understand it. U and D are constants in the above expression. Now, I will assign the values of x using the following code: x <- seq(from=0,by=0.5,length=500) Now I want to define the expression above on a function so that I have values for different values of x. A simple example of what I want is demonstrated by the following example. x <- seq(from=0,by=0.5,length=500) y <- function(x){ x^2+2*x+1 } z = y(x) plot(x,z) The thing that will be different in the example above and what I want is the definition of the function. How can I use the expression with error function on the function ? Is there any special package that handles error function ? Thanks for any help. r function share|improve this question asked Mar 30 '13 at 23:34 Jdbaba 2,33253060 So, you want to parse a latex syntax to compute the erfc value for your x, is that the problem? –Arun Mar 30 '13 at 23:39 I basically want to use that expression i