Physics programming on electrical fields

Physics programming on electrical fields

Create a program in VPython that will place eight 1-nC charges at the following coordinates (in meters): <0,0,0>, <0,0,1>, <0,1,0>, <0,1,1>, <1,0,0>, <1,0,1>, <1,1,0>, and <1,1,1>. It will then ask for the x, y, and z coordinates of a point in space. The program should then draw arrows (of the same length) from each charge toward <x,y,z>. Finally, the program should output the total electric field at <x,y,z>.

You can leave a response, or trackback from your own site.

Leave a Reply

Powered by WordPress | Designed by: Premium WordPress Themes | Thanks to Themes Gallery, Bromoney and Wordpress Themes