Professional Documents
Culture Documents
Scientific Computation For Functions
Scientific Computation For Functions
Scientific Computation For Functions
pe@a, b, 0.5D
2. a b k
H*EXERCISE 2:
Write a program to calculate potiential energy between the charges q1=-3c ,
q2=2c,3c,......12c and separation r=0.5 m using function*L
k = 9 ´ 10 ^ 9; q1 = - 3; r = 0.5;
L
2Π where g=9.8 ms^2.Write a program to compute the time
g
tp@l_D := 2 Pi Sqrt@l gD
g = 9.8;
For@t = 0, t £ 60, t = t + 5,
Print@"Nuclei that are left after ", t, " seconds are ", n@tDDD
1-Functions.nb 3