Latex Error Function
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the error function symbol latex workings and policies of this site About Us Learn more about Stack complementary error function Overflow the company Business Learn more about hiring developers or posting ads with us TeX - LaTeX Questions inverse error function Tags Users Badges Unanswered Ask Question _ TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it erfc 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 How to type error function in LaTeX math environment [duplicate] up vote 13 down vote favorite 1 Possible Duplicate: Define additional math operators to be typeset in roman It may be a very simple question to people who know. If I want to type commonly used functions like exponential function exp(x) or sinusoidal function sin(x), I use \exp(x) and \sin(x) in LaTeX and the results looks nice (fonts become different from other non-function characters). However, when I type error function \erf(x), it gives me error messages. If I remove \, it compiles fine but the "erf(x)" fonts just look the same to other non-function characters. Could anyone please tell me how to make the error function fonts look like as exponential function in a math environment? Thanks very much. math-mode symbols share|improve this question edited Aug 17 '12 at 14:36 user2473 1,48821226 asked Aug 17 '12 at 14:31 shva 103127 marked as duplicate by Loop Space, yo', Seamus, barbara beeton, Werner Aug 17 '12 at 15:10 This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. Please take a look at the question I've just linked to. If it answers your question we'll close this as a duplicate of
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 Sympy: Howto to rewrite erf function up http://tex.stackexchange.com/questions/67575/how-to-type-error-function-in-latex-math-environment vote 0 down vote favorite I have an expression in SymPy that involves the normal cumulative function, N(x) which is directly linked to the error function through the equation N(x)=0.5*erf(x/sqrt(2)) + 0.5. When I use the Normal(0,1).cdf(x) function of SymPy, it is written using the error function. So, when I output latex string of some (complicated) expression, the seem more complicated when using erf (instead of http://stackoverflow.com/questions/24994991/sympy-howto-to-rewrite-erf-function N(x), it outputs the equation mentionned obove). I tried to define a symbol N=0.5*erf(x/sqrt(2)) + 0.5 and tried the command 'rewrite' the rewrite my expression in terms of N, but 'rewrite' seems to work only with internally defined functions. Does any bodu know how to rewrite erf(some_expression) in terms of N(some_expression), given that I don't know some_expression in advance (can't use subs) ? Thanks in advance sympy share|improve this question edited Jul 28 '14 at 12:31 asked Jul 28 '14 at 12:11 Aguelmame 11 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote I take it from your question that you are using Normal from sympy.statistics. You should move to sympy.stats. sympy.statistics has been deprecated for some time, and will be removed in the next version of SymPy. To answer your question more directly, you can replace functions with functions using replace, like expr.replace(erf, lambda x: (N(x) - 0.5)/0.5). The problem here is that there is no function N. I would expect this to be done better in sympy.stats, where the distributions are represented symbolically. However, I didn't find a way to do it. I opened https://github.com/sympy/sympy/issues/7819 for this. share|improve this answer answe
order of magnitude of some expression, similar to \(O\)-terms. See also Order(), big_oh EXAMPLES: http://doc.sagemath.org/html/en/reference/functions/sage/functions/other.html sage: x = SR('x') sage: x.Order() Order(x) sage: (x^2 + x).Order() Order(x^2 + x) TESTS: Check that trac ticket #19425 is resolved: sage: x.Order().operator() Order class sage.functions.other.Function_absĀ¶ Bases: sage.symbolic.function.GinacFunction The absolute value function. EXAMPLES: sage: var('x y') (x, error function y) sage: abs(x) abs(x) sage: abs(x^2 + y^2) abs(x^2 + y^2) sage: abs(-2) 2 sage: sqrt(x^2) sqrt(x^2) sage: abs(sqrt(x)) sqrt(abs(x)) sage: complex(abs(3*I)) (3+0j) sage: f = sage.functions.other.Function_abs() sage: latex(f) \mathrm{abs} sage: latex(abs(x)) {\left| x \right|} sage: abs(x)._sympy_() Abs(x) Test latex error function pickling: sage: loads(dumps(abs(x))) abs(x) TESTS: Check that trac ticket #12588 is fixed: sage: abs(pi*I) pi sage: abs(pi*I*catalan) catalan*pi sage: abs(pi*catalan*x) catalan*pi*abs(x) sage: abs(pi*I*catalan*x) catalan*pi*abs(x) sage: abs(1.0j*pi) 1.00000000000000*pi sage: abs(I*x) abs(x) sage: abs(I*pi) pi sage: abs(I*log(2)) log(2) sage: abs(I*e^5) e^5 sage: abs(log(1/2)) -log(1/2) sage: abs(log(3/2)) log(3/2) sage: abs(log(1/2)*log(1/3)) log(1/2)*log(1/3) sage: abs(log(1/2)*log(1/3)*log(1/4)) -log(1/2)*log(1/3)*log(1/4) sage: abs(log(1/2)*log(1/3)*log(1/4)*i) -log(1/2)*log(1/3)*log(1/4) sage: abs(log(x)) abs(log(x)) sage: abs(zeta(I)) abs(zeta(I)) sage: abs(e^2*x) abs(x)*e^2 sage: abs((pi+e)*x) (pi + e)*abs(x) class sage.functions.other.Function_argĀ¶ Bases: sage.symbolic.function.BuiltinFunction The argument function for complex numbers. EXAMPLES: sage: arg(3+i) arctan(1/3) sage: arg(-1+i) 3/4*pi sage: arg(2+2*i) 1/4*pi sage: arg(2+x) arg(x + 2) sage: arg(2.0+i+x) arg(x + 2.00000000000000 + 1.00000000000000*I) sage: arg(-3) pi sage: arg(3) 0 sage: arg(0) 0 sage: latex(arg(x)) {\rm arg}\left(x\right) sage
be down. Please try the request again. Your cache administrator is webmaster. Generated Thu, 20 Oct 2016 06:25:42 GMT by s_wx1011 (squid/3.5.20)