Lab 06 - from_future import division from visual import Constants observation1 = vector(0,8e-11,8e-11 observation2 = vector(0,8e-11-8e-11

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
from __future__ import division from visual import * ## Constants observation1 = vector(0,8e-11,8e-11) observation2 = vector(0,8e-11,-8e-11) observation3 = vector(0,-8e-11,8e-11) observation4 = vector(0,-8e-11,-8e-11) scalefactor = 5e-10 num = 10e-7 q = -1.6e-19 # In this section, define any constants you may need ## Objects #Change the initial vector position of the proton below: proton = sphere(pos=vector(3e-10,0,0), radius=1e-11, color=color.red) #Change the observation location (position of the tail of the arrow) below: barrow1=arrow(pos=observation1, axis=vector(0,0,0), color=color.cyan) barrow2=arrow(pos=observation2, axis=vector(0,0,0), color=color.cyan) barrow3=arrow(pos=observation3, axis=vector(0,0,0), color=color.cyan) barrow4=arrow(pos=observation4, axis=vector(0,0,0), color=color.cyan) #Add more arrows to find magnetic field at other observation locations. #Set axis to (0,0,0) initially and update it in the loop. ## Initial values
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/13/2009 for the course PHYSICS 2112 taught by Professor Ionno during the Spring '08 term at Georgia Institute of Technology.

Page1 / 2

Lab 06 - from_future import division from visual import Constants observation1 = vector(0,8e-11,8e-11 observation2 = vector(0,8e-11-8e-11

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online