Latex Complementary Error Function
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 company Business Learn error function symbol latex more about hiring developers or posting ads with us TeX - LaTeX Questions Tags Users Badges
Inverse Error Function
Unanswered Ask Question _ TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting erfc 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 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 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, here gnuplot is used. Code (needs --shell-escape enabled) \documentclass{article} \usepackage{amsmath,pgfmath,pgffor} \makeatletter \def\qrr@split@result#1 #2\@qrr@split@result{\edef\erfInput{#1}\edef\erfResult{#2}} \newcommand*{\gnuplotErf}[2][\jobname.eval]{% \immediate\write18{gnuplot -e "set print '#1'; print #2, erf(#2);"}% \every
»reddit.commathematicscommentsWant to join? Log in or sign up in seconds.|Englishlimit my search to /r/mathematicsuse the following search parameters to narrow your results:subreddit:subredditfind submissions in "subreddit"author:usernamefind submissions by "username"site:example.comfind submissions from "example.com"url:textsearch for "text" in urlselftext:textsearch for "text" in self post contentsself:yes (or self:no)include (or exclude) self postsnsfw:yes (or nsfw:no)include (or exclude) results marked as http://tex.stackexchange.com/questions/107423/erf-function-in-latex NSFWe.g. subreddit:aww site:imgur.com dogsee the search faq for details.advanced search: by author, subreddit...this post was submitted on 23 Jul 20140 points (50% upvoted)shortlink: remember mereset passwordloginSubmit new contentmathematicssubscribeunsubscribe10,093 readers~10 users here now/r/mathematics is a https://www.reddit.com/r/mathematics/comments/2bifig/what_is_the_purpose_of_the_complementary_error/ subreddit dedicated to focused questions and discussion concerning mathematics. Submissions should state and outline problems or questions about a given field or link to an especially insightful article about a mathematical concept. /r/mathematics is a moderated community. Please read the submission and comment rules before posting. How to obtain flair on /r/mathematics Please post: Questions, problems and articles which promote discussion about mathematics. Articles must be accompanied by a comment designed to start discussion. Please do not post: Requests for help with homework
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 http://stackoverflow.com/questions/15724702/plot-and-calculate-the-expression-with-error-function-in-r 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 Plot and calculate the expression with error function in R up vote 0 error function 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 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 latex complementary error 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 in a function and compute value for x. You are correct. –Jdbaba Mar 30 '13 at 23:41 add a comment| 2 Answers 2 active oldest votes up vote 4 down vote accepted The error function is handled by base R, since it can be defined in terms of the CDF of the Normal distribution; See the examples at: http://stat.ethz.ch/R-manual/R-patched/library/stats/html/N
be down. Please try the request again. Your cache administrator is webmaster. Generated Thu, 20 Oct 2016 03:40:58 GMT by s_wx1062 (squid/3.5.20)