plotting-data/slides.org
changeset 432 c92662f02209
parent 416 06ac45f4de88
child 433 f121a3598ad9
equal deleted inserted replaced
420:27d2561e617a 432:c92662f02209
    56   :      0.6, 0.7, 0.8, 0.9]
    56   :      0.6, 0.7, 0.8, 0.9]
    57   : t = [0.69, 0.90, 1.19,
    57   : t = [0.69, 0.90, 1.19,
    58   :      1.30, 1.47, 1.58,
    58   :      1.30, 1.47, 1.58,
    59   :      1.77, 1.83, 1.94]
    59   :      1.77, 1.83, 1.94]
    60 
    60 
       
    61 
       
    62 
       
    63 * Question 1
       
    64   - Plot the given experimental data with large dots.
       
    65   The data is on your screen.     
       
    66   
       
    67 
       
    68 * Question 1 Data
       
    69 
       
    70 #+ORGTBL: L vs T^2 orgtbl-to-latex
       
    71     
       
    72   
       
    73    |    S |     n |
       
    74    | 0.19 | 10.74 |
       
    75    | 0.38 | 14.01 |
       
    76    | 0.57 | 18.52 |
       
    77    | 0.77 | 20.23 |
       
    78    | 0.96 | 22.88 |
       
    79    | 1.15 | 24.59 |
       
    80    | 1.34 | 27.55 |
       
    81    | 1.54 | 28.48 |
       
    82    | 1.73 | 30.20 |
       
    83     
       
    84 
       
    85 * Solution 1
       
    86 
       
    87   : S=[0.19,0.38,0.57,0.77,0.96,
       
    88   :   1.15,1.34,1.54,1.73]
       
    89   : n=[10.74,14.01,18.52,20.23,
       
    90   :    22.88,24.59,27.55,28.48,30.20]
       
    91   : plot(S,n,'o')
       
    92 
       
    93 * Question 2
       
    94   - Plot the given experimental data with small dots.
       
    95   The data is on your screen.     
       
    96 
       
    97 * Question 2 Data
       
    98 
       
    99 #+ORGTBL: L vs T^2 orgtbl-to-latex
       
   100 
       
   101    |    P |    D |
       
   102    | 1.48 | 0.68 |
       
   103    | 2.96 | 0.89 |
       
   104    | 4.44 | 1.18 |
       
   105    | 5.92 | 1.29 |
       
   106    | 7.40 | 1.46 |
       
   107    | 8.88 | 1.57 |
       
   108    | 10.3 | 1.76 |
       
   109    | 11.8 | 1.82 |
       
   110    | 13.3 | 1.93 |
       
   111   
       
   112 * Solution 2
       
   113 
       
   114    : P=[1.48,2.96,4.44,5.92,7.40,
       
   115    :   8.88,10.3,11.8,13.3]
       
   116    : D=[0.68,0.89,1.18,1.29,1.46,
       
   117    :   1.57,1.76,1.82,1.93]
       
   118    : plot(P,D,'.')
       
   119 
    61 * Adding Error 
   120 * Adding Error 
    62 
   121 
       
   122 #+ORGTBL: L vs T^2 orgtbl-to-latex
    63 
   123 
    64   |   L |    T | \delta L | \delta T |
   124   |   L |    T | \delta L | \delta T |
    65   | 0.1 | 0.69 |     0.08 |     0.04 |
   125   | 0.1 | 0.69 |     0.08 |     0.04 |
    66   | 0.2 | 0.90 |     0.09 |     0.08 |
   126   | 0.2 | 0.90 |     0.09 |     0.08 |
    67   | 0.3 | 1.19 |     0.07 |     0.03 |
   127   | 0.3 | 1.19 |     0.07 |     0.03 |
    73   | 0.9 | 1.94 |     0.01 |     0.08 |
   133   | 0.9 | 1.94 |     0.01 |     0.08 |
    74  
   134  
    75  
   135  
    76 * Plotting Error bar 
   136 * Plotting Error bar 
    77   
   137   
    78   : In[]: errorbar(L,tsquare,xerr=delta_L, yerr=delta_T,
   138   : errorbar(L,tsquare,xerr=delta_L, yerr=delta_T,
    79   :                fmt='b.')
   139   :         fmt='b.')
       
   140 
       
   141 
       
   142 * Question 1
       
   143 
       
   144   - Plot the given experimental data with large green dots.Also include
       
   145   the error in your plot. 
       
   146 
       
   147   
       
   148 * Question 1 Data
       
   149 
       
   150   #+ORGTBL: L vs T^2 orgtbl-to-latex
       
   151 
       
   152   |    S |     n | \delta S | \delta n |
       
   153   | 0.19 | 10.74 |    0.006 |     0.61 |
       
   154   | 0.38 | 14.01 |    0.006 |     0.69 |
       
   155   | 0.57 | 18.52 |    0.005 |     0.53 |
       
   156   | 0.77 | 20.23 |    0.003 |     0.38 |
       
   157   | 0.96 | 22.88 |    0.004 |     0.46 |
       
   158   | 1.15 | 24.59 |    0.007 |     0.37 |
       
   159   | 1.34 | 27.55 |    0.004 |     0.46 |
       
   160   | 1.54 | 28.48 |    0.004 |     0.46 |
       
   161   | 1.73 | 30.20 |    0.007 |     0.37 |
       
   162   
       
   163   
       
   164     
       
   165 
       
   166 * Solution 1
       
   167   
       
   168   : S=[0.19,0.38,0.57,0.77,0.96,
       
   169   :   1.15,1.34,1.54,1.73]
       
   170   : n=[10.74,14.01,18.52,20.23,
       
   171   :   22.88,24.59,27.55,28.48,30.20]
       
   172   : delta_S=[0.006,0.006,0.005,0.003,
       
   173   :         0.004,0.007,0.004,0.004,0.007]
       
   174   : delta_n=[0.61,0.69,0.53,0.38,0.46,
       
   175   :         0.37,0.46,0.46,0.37]
       
   176   : errorbar(S,n,xerr=delta_S, yerr=delta_n, 
       
   177   :         fmt='go')
    80 
   178 
    81 * Summary 
   179 * Summary 
    82  : L = [0.1, 0.2, 0.3, 0.4, 0.5,                                             |
   180  : L = [0.1, 0.2, 0.3, 0.4, 0.5,                                             |
    83  :      0.6, 0.7, 0.8, 0.9]  
   181  :      0.6, 0.7, 0.8, 0.9]  
    84  : plot(x,y,'o')
   182  : plot(x,y,'o')