Complex Error Function Code
Contents |
Support Support Newsreader MathWorks Search MathWorks.com MathWorks Newsreader Support MATLAB Newsgroup MATLAB Central Community Home MATLAB Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Post A New Message Advanced Search Help MATLAB Central Community Home MATLAB complex error function matlab Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Post A New Message error function of complex argument Advanced Search Help Trial software complex error function Subject: complex error function From: Salman Durrani Date: 8 Apr, 2003 16:02:39 Message: 1 complex gamma function of 6 Reply to this message Add author to My Watch List View original format Flag as spam Hi Can anybody suggest how to compute the complex error function in Matlab erf( x + j*y) ? thanks
Error Function Values
salman Subject: complex error function From: Haikke Date: 11 Apr, 2003 16:44:46 Message: 2 of 6 Reply to this message Add author to My Watch List View original format Flag as spam Hi, the there is no default function to compute the complex error function in pure Matlab. You can use the Special Mathematical Functions from the Symbolic toolbox. erfc = mfun('erf', ( x + j*y)); greetings Haikke Salman Durrani wrote: > Hi complex normal distribution > > Can anybody suggest how to compute the complex error function in Matlab > erf( x + j*y) ? > > thanks > > salman > > Subject: complex error function From: petersamsimon2@hotma... Date: 11 Apr, 2003 18:12:06 Message: 3 of 6 Reply to this message Add author to My Watch List View original format Flag as spam "Salman Durrani"
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 complex gaussian prizes! » Learn more 4.6 4.6 | 5 ratings Rate this file 14
Faddeeva Function
Downloads (last 30 days) File Size: 59.4 KB File ID: #18312 Version: 1.0 Error function of complex numbers by Marcel
Imaginary Error Function Matlab
Leutenegger Marcel Leutenegger (view profile) 13 files 62 downloads 4.2475 14 Jan 2008 (Updated 14 Jan 2008) Extend the error function to the complex plane. | Watch this File File Information Description https://www.mathworks.com/matlabcentral/newsreader/view_thread/47701 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 numbers, it is identical to ERF and equally fast. ERFZ can replace ERF if no error message is required when called with https://www.mathworks.com/matlabcentral/fileexchange/18312-error-function-of-complex-numbers 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 file 28 downloads 4.75 Although this implementation is very good (and is competitive with Per's code in performance on my machine), note that it computes real(erf(z)) inaccurately near the imaginary z axis. e.g. real(erfz(1e-8 + 1i)) gives 3.1023...e-8, but the correct answer is 3.067...e-8 accordin
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the http://stackoverflow.com/questions/11803487/imaginary-error-function-in-c 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 4.7 million programmers, just like you, helping each other. Join error function them; it only takes a minute: Sign up imaginary error function in c++ up vote 2 down vote favorite Is there a GPL library or a piece of code freely available that implements the imaginary error function: erfi(x)=-i*erf(i*x) where x is any complex number (or at least real) and i is the imaginary unit? c++ math share|improve this question complex error function edited May 11 '13 at 17:42 Shafik Yaghmour 101k19229330 asked Aug 3 '12 at 21:23 yannick 197113 add a comment| 3 Answers 3 active oldest votes up vote 8 down vote accepted A free/open-source C++ implementation of all of the usual error functions for real and complex arguments, including both erfi and a scaled erfi (to cancel erfi's exponential growth) (the Dawson function), including optimizations for erfi of real arguments, is available at http://ab-initio.mit.edu/Faddeeva (Note that this implementation is actually used in the upcoming version 0.12 of SciPy, replacing the complex-erf code in earlier versions which had accuracy problems: http://projects.scipy.org/scipy/ticket/1207) (Unfortunately, evaluating special functions of complex arguments isn't as simple as plugging complex numbers into code for real arguments, which is why the templating in Boost's real-valued erf is of no help here.) share|improve this answer answered Dec 23 '12 at 3:43 Steven G. Johnson 36133 1 I checked Steven's code using a Fourier transform method, and I can confirm that it is accurate to at least 13 digits, typically 14-15 digits. I wrapped
be down. Please try the request again. Your cache administrator is webmaster. Generated Wed, 05 Oct 2016 23:46:11 GMT by s_hv995 (squid/3.5.20)