*Disclaimer*: use at your own risk. Help available at the
bottom of this page.

*See also*: light version
(installable on mobile devices) and calculator for
core-shell spheres.

The first three columns of each line are interpreted as the wavelength in nanometer, n and k. Other columns and dubious lines are ignored.

Extinction and scattering spectra can be calculated from this page
using the Mie theory.
The sphere dimension and composition and the
refractive
index of the embedding medium can be chosen.
Q_{ext}, Q_{abs} and Q_{sca} are calculated.
They are the extinction, absorption and scattering cross-sections divided by
πR^{2} where R is the radius of the sphere.

You can zoom the plot by selecting a rectangle and zoom out using
the lower left icon. The plot can also be resized using the lower
right icon. The calculated values are available when clicking the
`DAT`

icon.

Some optical constants are pre-defined but you can enter your own ones. For example, you can visit refractiveindex.info, choose the material you are interested in and download the data by using the “Full database record” link. Then click the “user-defined” box above and paste the data. Finally select the correct unit for the first column and click the “Apply” button.

- Optical constants:
- The javascript code is adapted from bhmie.f, the Fortran code from Bohren and Huffman.
- Complex numbers in javascript : ComplexNumber class by Jan Hartigan
- Sliders to vary the diameter and the refraction index inspired by Julian Kauth.