Complementary Error Function Matlab Complex
Contents |
toolboxes, and other File Exchange content using Add-On Explorer in MATLAB. » Watch video Highlights from Faddeeva Package: complex error functions Faddeeva_build.m Faddeeva_Dawson.m Faddeeva_erf.m Faddeeva_erfc.m Faddeeva_erfcx.m Faddeeva_erfi.m Faddeeva_w.m View all files Join
Imaginary Error Function Matlab
the 15-year community celebration. Play games and win prizes! » Learn more matlab complex error function 4.75 4.8 | 4 ratings Rate this file 28 Downloads (last 30 days) File Size: 50.1 KB File ID: #38787 faddeeva function Version: 1.5 Faddeeva Package: complex error functions by Steven G. Johnson Steven G. Johnson (view profile) 1 file 28 downloads 4.75 26 Oct 2012 (Updated 17 Dec 2012) C++ MEX
Erf Complex Argument
plugins to compute error functions (erf, erfc, erfi, erfcx, Faddeeva, ...) of complex args | Watch this File File Information Description C++ source code for compiled plugins (MEX files) to compute various error functions for complex arguments: ** Faddeeva_erf(z) -- the error function ** Faddeeva_erfc(z) = 1 - erf(z) -- complementary error function ** Faddeeva_erfi(z) = -i erf(iz) -- imaginary error function ** Faddeeva_erfcx(z) = exp(z^2) erfc(z) -- scaled complementary error function ** Faddeeva_w(z) = exp(-z^2) erfc(-iz) -- Faddeeva function ** Faddeeva_Dawson(z) = 0.5 sqrt(pi) exp(-z^2) erfi(z) -- Dawson function From e.g. the Faddeeva function, one can also obtain the Voigt functions and other related functions. Assuming you have a C++ compiler (and have configured it in MATLAB with mex -setup), compile by running the included Faddeeva_build.m script in MATLAB: Faddeeva_build All of the functions have usage of the form: w = Faddeeva_w(z) or optionally Faddeeva_w(z, relerr), where relerr is a desired relative error (default: machine precision). z may be an array or matrix of complex or real numbers. This code may also be downloaded from http://ab-initio.mit.edu/Faddeeva along with documentation and other versions. As described in the source code, this implementation uses a combination of algorithms for the Faddeeva function: a continued-fraction expansion for large |z| [similar to G. P. M. Poppe and C. M. J. Wijers, "More efficient computation of the complex error function," ACM Trans. Math. Soft. 16 (1), pp. 38–46 (1990)], and a completely different algorithm for smaller |z| [Mofreh R. Zaghloul and Ahmed N. Ali, "Algorithm 916: Computing the Fad
toolboxes, and other File Exchange content using Add-On Explorer in MATLAB. » Watch video Highlights from Error function of complex numbers erfz.m View all files Join the 15-year community celebration. Play games and win prizes! » Learn more 4.6 4.6 | 5 ratings Rate this file 14 Downloads (last 30 days) File Size: 59.4 KB File ID: #18312 Version: 1.0 Error function of complex numbers by Marcel Leutenegger Marcel Leutenegger (view profile) 13 files 62 downloads 4.2475 14 Jan 2008 (Updated 14 Jan 2008) https://www.mathworks.com/matlabcentral/fileexchange/38787-faddeeva-package--complex-error-functions Extend the error function to the complex plane. | Watch this File File Information Description This package contains two MATLAB functions e=ERF(r) and e=ERFZ(z)} as MEX-files for Windows. ERF overloads the default MATLAB error function of real-valued numbers with a much faster implementation. ERFZ enhances ERF to evaluate the error function of complex numbers too. If called with real https://www.mathworks.com/matlabcentral/fileexchange/18312-error-function-of-complex-numbers numbers, it is identical to ERF and equally fast. ERFZ can replace ERF if no error message is required when called with complex numbers. For compatibility with operating systems other than Windows on x86 processors, ERFZ is egally implemented as a normal M-file, which relies upon the default ERF by MATLAB. Implementation details are found in the attached PDF manual. MATLAB release MATLAB 6.1 (R12.1) Other requirements x86 Windows platform (MEX-files); none (M-file). Tags for This File Please login to tag files. erferror functionmathematicsnumerical evaluation Cancel Please login to add a comment or rating. Comments and Ratings (7) 21 Aug 2015 Karan Gill Karan Gill (view profile) 0 files 0 downloads 0.0 An alternative is to use the Symbolic Math Toolbox if you have it. Ex: >> double(erf(sym(1+1i))) ans = 1.3162 + 0.1905i You could define an anonymous function to make it easier: >> erfCmplx = @(x) double(erf(sym(x))) erfCmplx = @(x)double(erf(sym(x))) >> erfCmplx(1+1i) ans = 1.3162 + 0.1905i Comment only 05 Nov 2012 Steven G. Johnson Steven G. Johnson (view profile) 1 f
toolboxes, https://www.mathworks.com/matlabcentral/fileexchange/18312-error-function-of-complex-numbers/content/@double/erfz.m and other File Exchange content using Add-On Explorer in MATLAB. » Watch video Highlights from Error function https://www.mathworks.com/help/matlab/ref/erfcx.html of complex numbers erfz.m View all files Join the 15-year community celebration. Play games and win error function prizes! » Learn more Error function of complex numbers by Marcel Leutenegger Marcel Leutenegger (view profile) 13 files 62 downloads 4.2475 14 Jan 2008 (Updated 14 Jan 2008) Extend the error function to error function matlab the complex plane. erfz.m Contact us MathWorks Accelerating the pace of engineering and science MathWorks is the leading developer of mathematical computing software for engineers and scientists. Discover... Explore Products MATLAB Simulink Student Software Hardware Support File Exchange Try or Buy Downloads Trial Software Contact Sales Pricing and Licensing Learn to Use Documentation Tutorials Examples Videos and Webinars Training Get Support Installation Help Answers Consulting License Center About MathWorks Careers Company Overview Newsroom Social Mission © 1994-2016 The MathWorks, Inc. Patents Trademarks Privacy Policy Preventing Piracy Terms of Use RSS Google+ Facebook Twitter
Search All Support Resources Support Documentation MathWorks Search MathWorks.com MathWorks Documentation Support Documentation Toggle navigation Trial Software Product Updates Documentation Home MATLAB Examples Functions Release Notes PDF Documentation Mathematics Elementary Math Special Functions MATLAB Functions erfcx On this page Syntax Description Examples Find Scaled Complementary Error Function Avoid Roundoff Errors Using Scaled Complementary Error Function Input Arguments x More About Scaled Complementary Error 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 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 erfcxScaled complementary error functioncollapse all in page Syntaxerfcx(x) exampleDescriptionexampleerfcx(x
) returns the value of the Scaled Complementary Error Function for each element of x. Use the erfcx function to replace expressions containing exp(x^2)*erfc(x) to avoid underflow or overflow errors.Examplescollapse allFind Scaled Complementary Error FunctionOpen Scripterfcx(5) ans = 0.1107 Find the scaled complementary error function of the elements of a vector.V = [-Inf -1 0 1 10 Inf]; erfcx(V) ans = Inf 5.0090 1.0000 0.4276 0.0561 0 Find the scaled complementary error function of the elements of a matrix.M = [-0.5 15; 3.2 1]; erfcx(M) ans = 1.9524 0.0375