ex015

ex015 - $3 , / 54v fist c v ‘MMfwyb [1613 : {Io} [L] = m...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: $3 , / 54v fist c v ‘MMfwyb [1613 : {Io} [L] = m a? 330 O Aludra.usc.edu(l): In[l]:= Out[1]= In[2]: Out[2]— In[3]: Out[3] In[4]: Out[4] In[5]: l H1 H H II N H Out[5] In[6]: N H Out[6] In[7]: H 1| Out[7] In[8]: Out[8] In[9]: Out[9]= H II N H ._. 21. 2 ._.j;rry\(z ); C) ‘ 0 f[O]=l 1 [l}=x f[2]=y Y f[3]=z z f[4]=yA2+zA2 2 2 y + z f[5]=x“2+z“2 2 2 x f[6]=x“2+y“2 x + y f[7]=*X y -(X y) f[8]=—x z -(x z) In[10]:= f[9]=—y z Out[lO]= -(y z) In[11]:= x=r Cos[theta] Sin[phi] Out[1l]= r Cos[theta] In[12]:= y=r Sin[theta] Out[12]= r Sin[phi] In[13]:= z=r Cosfphi] Out[13]= r Cos[phi] W 74¢ dVC/M Je ' 1 m jfffir)(rd¢er9m¢)-=J: rzdriquSd¢jo d math 1 Q [00/ 0L WJ iO/ijm adflére. ’ o 0 ‘I o 0' 0]; §&:[O ;ZI+]=§;M2 0 l 0 o I ‘ $3.0; o 0 o .3}. 0 0 0 0 3; Mdflfl emf-x ca Q93 0W3 MM W40 CW% 1% am (14721? & Sin[phi] Sin[phi] Sin[theta] In[l4] = f[4] 2 2 2 2 2 1 _ ' Out[l4]= r Cos[phi] + r Sin[phi] Sin[theta] 4- 162+g ‘7‘“ r439 In[15]:= f[5] 2 2 2 2 2 L ’2 \ (9 Out[15]= r Cos[phi] + r Cos[theta] Sin[phi] é—— X 4’ W‘ (P In[l6]:= f[6] 2 2 2 2 2 2 7_ Out[l6] r Cos[theta] Sin[phi] + r Sin[phi] Sin[theta] é Xl-P’d ‘M (V59 In[17]:= For[i=0,i<=9,i++, (frp=Integrate[f[i] r“2 Sin[phi],{theta,0,2 Pi}]; fr=Integrate[frp,{phi,0,Pi/2}]; , , .- q[i].—_Integrate[fr,{r,0,a}]; )] £fi riflrw¢d¢ In[18]:= volume=q[0] 3 2 a Pi V 1 :5 Out[18]= ..... __ <é:—- \/::.:§TFCK 3 In[19]:= xbar=q[1]/volume Out[l9]= 0 V C In[20]:= ybar=q[2]/volume .;a Out[20]= o {2&2 0 In[21]:= zbar=q[3]/volume £15k 3 a 8 Out[21]= --- 8 In[22]:= normalize=volume/m 3 2 a Pi = Out[22]= ————— —- m 3 m In[23]:= Ixx=Simplify[q[4]/normalize] 2 2 a m 1; 2. Out[23]= ———— ~— Xxx ‘ gm“ 5 In[24]:= Iyy=Simplify[q[5]/normalize] 2 2 a m gigg; ’1 Out[24]= ---- —- 1‘33 5 ma 5 In[25]:= Izz=Simplify[q[6]/normalize] 2 2 a m __ ;;:V 2 Out[25]= ———— —— 153 “ ‘5‘ ma 5 In[26]:= Ixy=simplify[q[7]/normalize] Out[26]= o _ , , :‘ In[27]:= Ixz=Simplify[q[8]/normalize] 1%? ‘17‘3 " 1‘38 O Out[27]= O In[28]:= Iyz=Simplify[q[9]/normalize] Out[28]= O In[29]:= Exit ...
View Full Document

Page1 / 2

ex015 - $3 , / 54v fist c v ‘MMfwyb [1613 : {Io} [L] = m...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online