Hi. I'm new to c++ but have programmed in java for a couple of months. I want
to make a program that calculates the refraction of Snell's law. Everthing
is fine but I can't inverse the sin (refraction) in degrees.
Is there possible way to do this?
Wel, the formula of snell's law is sini / sinr = n2 / n1
It doesn't work before you have the answer in degrees. In radians you can't
calculate it. But i tried MiiNiPaa's answer and it works perfectly now. thanks