You are on page 1of 7

Animate@

Plot@H0.4  PiL H1 + HSum@HSin@HH2 j + 1L * 200 * Hx - tLLD  H2 j + 1LL, 8j, 1, 5<DLL,


8x, - 1  100, 1  100<D, 8t, 0, 10<D

0.20

0.15

0.10

0.05

-0.010 -0.005 0.005 0.010


2 SC1 ex.nb

Plot@HH0.4  PiL H1 + HSum@HSin@HH2 j + 1L * 200 * H- tLLD  H2 j + 1LL, 8j, 1, 5<DLLL *


HSech@0.5 Ht - 5LD * Sin@2005 tDL, 8t, 0, 10<, PlotRange ® AllD

0.2

0.1

2 4 6 8 10

-0.1

-0.2

H*Ex:20.Plot r^2Š 4 Cos@thetaD in polar coordinates with r³ 0.*L

r =.; theta =.; sl =.;

sl = Solve@r ^ 2 Š 4 Cos@thetaD, rD

::r ® - 2 Cos@thetaD >, :r ® 2 Cos@thetaD >>

r = r . sl@@2DD

2 Cos@thetaD
SC1 ex.nb 3

PolarPlot@r, 8theta, 0, 2 Pi<D

1.0

0.5

0.5 1.0 1.5 2.0

-0.5

-1.0

H*Ex:22.Write a prog. to show position


HpointcircleLineL of a projectile at different times*L

vi =.; t =.;
th =.;

vi = 3; th = Pi  4; g = 9.8;

tlist = Table@
Graphics@Point@8vi Cos@thD t, vi Sin@thD t - 1  2 g t ^ 2<DD, 8t, - 1.5, 2, 0.01<D;
4 SC1 ex.nb

Show@tlistD

tlist = Table@
Graphics@Circle@8vi Cos@thD t, vi Sin@thD t - 1  2 g t ^ 2<DD, 8t, - 1.5, 2, 0.01<D;
SC1 ex.nb 5

Show@tlistD

t =.;

vi = 3; th = Pi  4; g = 9.8;

tlist = Table@Graphics@Line@88vi * Cos@thD t, vi Sin@thD t - H1  2 g t ^ 2L<<DD,


8t, - 1.5, 2, 0.01<D;
6 SC1 ex.nb

Show@tlistD

H*Exerciseð47 write a program to numerically


find Ù1 e
5 x âx by adding n contributions to it .use
n=1000 to 20000 in steps of 1000*L

Integrate@Exp@Sqrt@xDD, 8x, 1, 5<D  N


23.1305

H5 - 1L  1000  N
0.004

Sum@Integrate@Exp@Sqrt@xDD, 8x, i, i + 0.004<D, 8i, 1, 5, 0.004<D  N


23.1679

H5 - 1L  2000  N
0.002

Sum@Integrate@Exp@Sqrt@xDD, 8x, i, i + 0.002<D, 8i, 1, 5, 0.002<D  N


23.1492

H*Comment :Sir agr iss main 2000 say zayada chopping krty hain tou
mathematica running state main chla jata hai or answer show nhi krta*L
SC1 ex.nb 7

H*Exercise ð45.Use energy consrvation to find equillibrium position


and energy of q3=0.03C between q1=0.02C kept 0.17 m apart*L

d = 0.17; q1 = 0.07; q2 = 0.02; q3 = 0.03; k = 9 ´ 10 ^ 9;

sl = Solve@Hq1  x ^ 2L == Hq2  Hd - xL ^ 2L, xD

Solve::ratnz : Solve was unable to solve the system with inexact coefficients. The
answer was obtained by solving a corresponding exact system and numericizing the result. ‡

88x ® 0.110784<, 8x ® 0.365216<<

x = x . sl@@1DD
0.110784

r12 = d;
r13 = x;
r23 = d - x;

energy = k HHq1 * q2L  r12 + Hq1 * q3L  r13 + Hq2 * q3L  r23L
3.35911 ´ 108

You might also like