# User:Guy vandegrift/S/3

```## Boilerplate code
import random, math
def whatis(st, x):
print(st+' value=',repr(x),type(x))
return st+' value='+repr(x)+repr(type(x))
###################################### end boilerplate

##   in this string defined as myAttribution. (In Python the triple quotes permits linebreaks)
recommended that students become a member of Wikiversity/Wikipedia and select
an anonymous username.  You have three good choices:
*Public Domain (with or without a name)
*From OpenStax xxx (include name, chapter, url link to textbook)
You are encouraged to combine a CC-BY-SA and an OpenStax attribution
No problem can be accepted without an attribution'''

## step 1. import functions as needed:
from math import log, exp, log10, atan, degrees, sin, cos, tan, asin, acos, atan, pi,\
hypot

## step 2. Declare variables, avoiding magic words:
#   firstRendition questionString   insertImage    QuesVar

k=8.99e9
e=1.602e-19
a=2e-7#meters
b=2*a

## step 3. Optional print and whatis statements:
## print('k is',k)
## print(k,e,a,b,q1,q2,q3)
## whatis('k',k)

## step 4. Solve problem avoiding magic words:
#   firstRendition  questionString  insertImage QuesVar
#   offByFactors    detractorsOffBy insertImage st
#######################################

q1=2*e
q2=3*e
q3=5*e
E1= ( k * q1 ) / (a**2)
E3= ( k * q3 ) / (b**2)
E=hypot(E1,E3)
Force=q2*E