Here is my mathematic simulation for Snell’s Law.
https://vspace.vassar.edu/xythoswfs/webview/fileManager.action?stk=6DF28C68D0C77DF&entryName=%2Fmalaird
Mathematica Notebook for Griffiths 4.10 vector fields:
https://vspace.vassar.edu/dadaley/Davene_Vector_Field_class.nb
Here’s my Mathematica visualization of the electric field inside of the sphere from problem 4.10 in Griffiths EM. I left out the constant k from the answer, as it would only scale the vectors and the overall field will look the same. Though I assumed a positive k, if k is negative the field will point radially outward from the origin instead of inward. Of course, the field only looks like this up to r, the radius of the sphere, at which point it becomes 0 everywhere.
I’ve found this website pretty helpful for homework/studying. Hopefully other people will too!
Social Widgets powered by AB-WebLog.com.