Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
repository:charged_balloons [2020/03/24 02:34] porcaro1 [Activity] |
repository:charged_balloons [2020/03/24 02:37] porcaro1 [Answer Key] |
||
---|---|---|---|
Line 89: | Line 89: | ||
===Handout=== | ===Handout=== | ||
===Code=== | ===Code=== | ||
- | <code Python [enable_line_numbers="true", highlight_lines_extra=""]> | + | <code Python [enable_line_numbers="true", highlight_lines_extra="36,37,43,44,46,47,49,50,52"]> |
GlowScript 2.7 VPython | GlowScript 2.7 VPython | ||
Line 128: | Line 128: | ||
c2.eforcec1 = -c1.eforcec2 #electrostatic force of charge 1 on charge 2 | c2.eforcec1 = -c1.eforcec2 #electrostatic force of charge 1 on charge 2 | ||
| | ||
- | | ||
#add electrostatic force arrow to charges | #add electrostatic force arrow to charges | ||
attach_arrow (c1, "eforcec2", shaftwidth = .2, scale = 1e30, color = vector (1,0,0)) | attach_arrow (c1, "eforcec2", shaftwidth = .2, scale = 1e30, color = vector (1,0,0)) |