184_projects:s20_project_2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
184_projects:s20_project_2 [2019/12/12 15:37] – created dmcpadden184_projects:s20_project_2 [2020/01/16 14:36] (current) hallstein
Line 20: Line 20:
 detector = box(pos = vec(0,30,0), width = 5, length=5, height=3, color = color.white) detector = box(pos = vec(0,30,0), width = 5, length=5, height=3, color = color.white)
  
 +#Step 1: Make one E-Field Arrow
 E = vec(0,0,0) E = vec(0,0,0)
 field = arrow(pos=detector.pos, axis = E, color = color.yellow) field = arrow(pos=detector.pos, axis = E, color = color.yellow)
 +
 +
 +#Step 2: Make multiple E-field Arrows
 +starting_point=-200
 +
 +while starting_point<200:
 +    
 +    E=vec(0,0,0)
 +    field = arrow(pos=detector.pos, axis = E, color = color.yellow)
 +    
 +    starting_point=starting_point+150
 </code> </code>
  
Line 40: Line 52:
   * Be able to explain how the code relates to the physics equations (from Week 1) and vice versa   * Be able to explain how the code relates to the physics equations (from Week 1) and vice versa
 </WRAP> </WRAP>
 +
  
 ==== Project 2B: Building Stormchaser HQ ==== ==== Project 2B: Building Stormchaser HQ ====
  • 184_projects/s20_project_2.1576165043.txt.gz
  • Last modified: 2019/12/12 15:37
  • by dmcpadden