Latex Error Function Erfc
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 of this site About Us Learn more about Stack Overflow the error function symbol latex company Business Learn more about hiring developers or posting ads with us TeX - LaTeX complementary error function Questions Tags Users Badges Unanswered Ask Question _ TeX - LaTeX Stack Exchange is a question and answer site for users of inverse complementary error function TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the
Inverse Error Function
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 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 q function 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.) –Qrrbrbirlbel Apr 7 '13 at 19:02 Sure, I can do it myself. But as it's a very common function in some mathematical area, I hope someone already did something good to compute it. –Xoff Apr 7 '13 at 19:33 add a comment| 5 Answers 5 active oldest votes up vote 10 down vote accepted For precise values, I recommend externalizing the calculation, h
Search All Support Resources Support Documentation MathWorks Search MathWorks.com MathWorks Documentation Support Documentation Toggle navigation Trial Software normal distribution Product Updates Documentation Home MATLAB Examples Functions Release Notes PDF Documentation Mathematics Elementary Math Special Functions MATLAB Functions erfc On this page Syntax Description Examples Find Complementary Error Function Find Bit Error Rate of Binary Phase-Shift Keying Avoid Roundoff Errors Using Complementary Error Function Input Arguments x More About Complementary Error http://tex.stackexchange.com/questions/107423/erf-function-in-latex Function Tall Array Support Tips See Also This is machine translation Translated by Mouse over text to see original. Click the button below to return to the English verison of the page. Back to English × Translate This Page Select Language Bulgarian Catalan Chinese Simplified Chinese Traditional Czech Danish Dutch English https://www.mathworks.com/help/matlab/ref/erfc.html Estonian Finnish French German Greek Haitian Creole Hindi Hmong Daw Hungarian Indonesian Italian Japanese Korean Latvian Lithuanian Malay Maltese Norwegian Polish Portuguese Romanian Russian Slovak Slovenian Spanish Swedish Thai Turkish Ukrainian Vietnamese Welsh MathWorks Machine Translation The automated translation of this page is provided by a general purpose third party translator tool. MathWorks does not warrant, and disclaims all liability for, the accuracy, suitability, or fitness for purpose of the translation. Translate erfcComplementary error functioncollapse all in page Syntaxerfc(x) exampleDescriptionexampleerfc(x
) returns the Complementary Error Function evaluated for each element of x. Use the erfc function to replace 1 - erf(x) for greater accuracy when erf(x) is close to 1.Examplescollapse allFind Complementary Error FunctionOpen ScriptFind the complementary error function of a value.erfc(0.35) ans = 0.6206 Find the complementary error function of the elements of a vector.V = [-0.5 0 1 0.72]; erfc(V) ans = 1.5205 1.0000 0.1573 0.3086 Find the complemen
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 http://stackoverflow.com/questions/29067916/r-error-function-erfz 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 error function vote 2 down vote favorite 1 This could be a quick one. I have not been able to find a function for 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 complementary error function 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 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 p
be down. Please try the request again. Your cache administrator is webmaster. Generated Tue, 18 Oct 2016 16:46:51 GMT by s_ac4 (squid/3.5.20)