Highly accurate width of the Voigt profile

The code returns the highly accurate full width at half maximum (FWHM) of the Voigt profile.
39 Downloads
Updated 26 Dec 2021

View License

code1:
"fullwidthVoigt.m" returns the highly accurate full width at half maximum (FWHM) of the Voigt profile for given the widths of the Lorentzian and Gaussian profile.
code2:
"fullwidthVoigt_approximation.m"---This code provides accuracy better than 1E−17 for arbitrary αL/αG ratios in the MATLAB symbolic computing platform. In particular, the accuracy reaches an astonishing 10−34 (quadruple pre-cision) in the domain 0 ≤ αL/αG ≤ 0.2371∪αL/αG ≥ 33.8786.
code3:
"fullwidthVoigt_approximation_double.m"---This code provides a calculation accuracy of 2.75011668361264E-14 in a double precision platform.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Yihong Wang(email:wyh@seu.edu.cn)
Southeast University, Nanjing, China
Christmas Day 2021.
Feel free to email the author of this program with your questions or suggestions.
output : alphV, the FWHM of the Voigt profile
input : alphL, the FWHM of the Lorentzian profile
input : alphG, the FWHM of the Gaussian profile

Cite As

Yihong Wang (2024). Highly accurate width of the Voigt profile (https://www.mathworks.com/matlabcentral/fileexchange/95283-highly-accurate-width-of-the-voigt-profile), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
2.0.1

Add a cover

2.0.0

Added 2 codes and cleared up some conceptual confusion.

1.0.0