> If I understand your rather sketchy sketch, your input consists first
> of 1 ray which yields 1 spectrum.Fine.
>
> Then you proceed with input rays which are parallel and spatially
> separated. If this true you will obtain as many distinct (possibly
> overlapping) spatially separated spectra.
You understand it very well. I put a screenshot online at
http://users.pandora.be/fabioccopolis/vb.jpg
> Nothing abnormal, your software is fine... as to your understanding of
> elementary geometrical optics I am not sure.
This could be. I do computer sciences, no physics :)
> I suggest some study of a book such as Hecht's (look up refraction,
> prisms, spectroscopic optics).
I went to the library of the university for some books to see if my setup
was right, but there they don't tell much about the ray itself. The only
thing I see there is that they use a very very small ray (by sending light
through a slit), but they don't tell something how to simutate this with a
computer (not that strange, it's a book about physics).
> Any special reason to use a prism under conditions which are very far
> from maximum dispersion?
Aha, is a prism with an angle of 60 degrees far from maximum dispersion?
Then I read something wrong. What are the best conditions?
> Why the reflection?
I think you looked the picture I put online.
Total internal reflection occurs when the angle between the incident ray
and the normal is bigger than a value depending on the material the prism
is made of, but I think you know this, so is there something wrong?
Grtz