# JSci Examples

### Testing classes

A collection of classes that can be used to test various algorithms used in JSci.

Source code

### Chaos Applets

This collection of applets plots the orbits of some well known 2D chaotic maps. All use the chaos package.

Gingerbread Man and source code
Standard and source code
Henon and source code
Cat and source code (plot,transform)

### CurveFitter

Uses the LinearMath.leastSquaresFit method to fit a polynomial to a user-drawn curve. The LineTrace graph component is used to input the curve.

`java CurveFitter`
Source code

### FourierDisplay

The Fourier transform of a selected function is calculated using the FourierMath class. A LineGraph component is used to display both the real and imaginary parts of the result.

`java FourierDisplay`
Source code

### HEPsimulator

Works out all the possible two particle products from either a two particle collision (particle accelerator) or a single particle decay (bubble chamber). This is a good example of how the particle package can be applied.

`java HEPsimulator`
Source code

### MonteCarlo

Calculates the ground state energy of the Helium atom using variational quantum Monte Carlo. It displays the results on the screen and also writes them to a file using the JSci.io package.

`java MonteCarlo <number of iterations>`
Source code

### PeriodicTable

A basic periodic table program. It demonstrates the usage of the chemistry package.

`java PeriodicTable`
Source code

### Quasicrystal

Calculates the phonon modes of a one-dimensional Fibonacci quasicrystal. It also saves the results to a file using the JSci.io package.

`java Quasicrystal <length of chain> <mass of atom 1> <mass of atom 2>`
Source code

### Wavefunction

Numerically solves the Schrödinger equation for the anharmonic potential. The eigenvalue problem is solved using the LinearMath class and the LineGraph class provides the means to display the results.

`java Wavefunction`
Source code

Return to the Developer's Guide contents.