**I(q) and p(r) calculator**
This Javascript calculates the scattering curve I(q) in reciprocal space and the the distance distribution function p(r) in real space
of models consisting of up to 20 spheres placed at different x/y/z coordinates having the same or different radii and electron densities by using the Debye-formula in reciprocal and in real space, respectively.
Enter the number of spheres (Nsp), their coordinates x(i), y(i), z(i), their radii r(i) and their electron-densities c(i). The spheres can also overlap (totally or partially) where the resulting electron density
of the overlapping region is the sum of the overlapping electron densities. For n(I) points the I(q) from q = 0 to qz with a scaling factor F and for n(p) points from r = 0 to Dm (max. dimension) with a scaling factor F
will be calculated. The parameters max. Dimension (Dm), Radius of Gyration (Rg), I(0) and gamma(0) are also listed and if F = 0 is entered, the respective function will be normalized to I(0) = 1 and gamm(0) = 1.
The values are listed and displayed in I vs q (left plot, optionally log(I) can be plotted) and p(r) vs r (right plot, optionally gamma(r) being p(r)/(r*r) can be plotted) in arbitrary units
and can be copied and pasted from the window into any text-file for further processing and graphical displaying. An animation of the preloaded model can be seen

here
or

here.