APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Special Functions Model Documents

This material has 2 associated documents. Select a document title to view a document's information.

Main Document

Special Functions Model 

written by Wolfgang Christian

EJS Special Functions Model shows how to access special functions in the OSP numerics package. The simulation displays a graph of the special function over the given range as well as the value of the selected function at a single point.

The following special functions can be displayed:

  • Legendre polynomials Pn(x)
  • associated Legendre functions Pnm(x)
  • Laguerre polynomials Ln(x)
  • associated Laguerre polynomials Lnm(x)
  • Chebyshev polynomials of the first kind Tn(x)
  • Chebyshev polynomials of the second kind Un(x)
  • Bessel functions Jn(x)
The EJS Multiple Slit Diffraction model allows the user to simulate Fraunhofer diffraction through single or multiple slits. The user can modify the number of slits, the slit width, the slit separation and the wavelength of the incident light. The scale of the diffraction pattern can also be changed and a plot of the light intensity can be toggled on and off with a checkbox.

The Special Functions Model was created using the Easy Java Simulations (Ejs) modeling tool.  It is distributed as a ready-to-run (compiled) Java archive.  Double clicking the ejs_math_SpecialFunctions.jar file will run the program if Java is installed.  Ejs is a part of the Open Source Physics Project and is designed to make it easier to access, modify, and generate computer models.

Published December 16, 2008
Last Modified June 12, 2014

This file has previous versions.

Source Code Documents

Special Functions Model source code. 

The source code zip archive contains an XML representation of the Special Functions Model.  Unzip this archive in your EJS workspace to compile and run this model using EJS.

Last Modified June 12, 2014

This file has previous versions.

OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book