PHYS 310 - Experimental Physics |

- Monday:
- Tuesday:
- Wednesday:
- Thursday:
- Friday:

- Homework 1 (due 1/18): Assignment | 211/212 Lab Manual Appendix A | Solutions: ipynb, html, pdf,
- Homework 2 (due 1/25): Assignment | Solutions: ipynb, html, pdf,
- Homework 3 (due 2/1): Assignment | Solutions in PDF | Solutions in ipynb
- Homework 4 (due 2/13): Assignment | Data: hw4-1.dat | hw4-2.dat | hw4-3.dat | HW4Soln.html | HW4Soln.ipynb
- Homework 5 (due 3/27): Assignment or ipynb
- Homework 6 (due 3/29): Assignment |
- First paper draft due 2/23: Paper Writing Instructions (more info and sample papers below)

- Class 1 (1/16): Python, SciPy, and Jupyter Notebooks: ipynb, html
- Class 2 (1/18): Distributions and Simulated Experiments: Statistics Tools Notebook ipynb, html | Coin-Flip Notebook ipynb, html
- Class 3 (1/25): Error propagation ipynb, pdf
- Class 4 (2/1): Curve Fitting I ipynb,FitFunctions,
- Class 5: Scientific Papers I
- Paper X for pre-class, non-graded assignment.
- The Art of Scientific Report Writing (Oxford)
- Ten Steps to Writing an Effective Abstract
- Preparing a Manuscript for Publication; (Journal of Undergraduate Research In Physics)
- Example: Traffic Flow Paper - Chowdhury
- Sample papers

- Class 6 (2/13): LaTeX
- Class 7 (2/20): Figures
- Class 8 (3/6): Curve Fitting II ipynb, pdf
- Class 9 (3/20): Correlated Data ipynb, html
- Class 10 (3/22): Hypothesis Testing ipynb, Presentation
- Class 11 (3/29): Scientific Papers II
- Class 12 (4/10): Responsible Conduct of Research (ethics) (materials)
- Tuesday, April 11, 2017 Peer Response: Draft Self-Assesment, How It Works (from BU Writing Center),
- Class 13 (4/17): Scientific Presentations

- Tools for Statistics:
html,
pdf,
ipynb
- Random Numbers
- Tools for Distributions
- Histograms

- Curve Fitting
- Linear (based on Jack Gallimore's
`mlr.py`

): html, pdf, ipynb, sample.dat - Nonlinear: html, pdf, ipynb, sample2.dat

- Linear (based on Jack Gallimore's
- Other examples (not necessarily for PHYS 310)
- Vpython: html, ipynb
- File I/0: html, ipynb, test1.dat, test2.csv,
- Simple numerical integration (Euler, as in PHYS 211, 212, 221): html, pdf, ipynb
- Numerical evaluation of integrals using
`scipy.integral.quad()`

: html, pdf, ipynb - Numerical solution of ODEs using
`scipy.odeint()`

: html, pdf, ipynb - Root finding: html, pdf, ipynb
- Chaos: Driven damped pendulum (PHYS 331): html, pdf, ipynb
- FFTs: html, pdf, ipynb
- Numerical differentiation (including divergence, gradient, curl, etc.): html, pdf, ipynb
- Intro to Sympy (symbolic computation) --- variables, integration, differentiation: html, pdf, ipynb
- More symbolic computation examples: nbviewer,
- Symbolic solution of differential equations: html, pdf, ipynb
- Line integrals using sympy (PHYS 333): html, pdf, ipynb
- Astronomy Examples:

- Introduction/Basics: Simple examples (from PHYS 221)
- More on plots:
- Options for nicer plots
- Plots with error bars
- Log plots
- Exporting graphics

- Tools for Statistics,
- Random Numbers
- Tools for Distributions
- Histograms

- Curve Fitting Basics

- Summer 2016 Skill Session: handout
- Science Papers: Google Scholar and Web of Science
- BU pages: Library & IT , Databases
- Physics Sources: APS Journals, IOP Journals, arXiv.org
- Astronomy papers: ADS search and ADS Streamlined Search

- xfig
- xfig Users Manual
- xfig Tutorial (pdf)
- Using LaTeX within xfig
- Graph 1
- Graph 2
- NSF Logo
- Poster
- Model
- EM Pulse

- Brief Emacs Summary
- Brief Linux Summary, Linux Exercise, and Linux Tutorial (on web)
- gnuplot
- gnuplot Manual
- A Brief Introduction to gnuplot
- gnuplot FAQ
- gnuplot Central (official web site for gnuplot)
- Fitting Command:
`fit [x1:x2] f(x) "file.dat" via a,b,c`

where`x1`

and`x2`

give the range of data to be fit,`f(x)`

is a previously defined function (or the function itself),`file.dat`

is the data file, and`a`

,`b`

, and`c`

are the parameters to be fit. - Making an EPS version of a plot:
`set term postscript eps`

`set output "filename.eps"`

`replot`

`set term x11`

`set term postscript eps 28`

- Simple Paper Template:

NOTE: These files are written for pdflatex (summer 2016, ML).

Download the files template2.tex, samplefig.pdf, and cubic.pdf. After processing these files you should generate output that looks like this: template2.pdf. - Simple Paper Template using bibtex:

Same template as above, but bibliography generated from a .bib file: templateWithBib.tex, myRefs.bib. The result should look like templateWithBib.pdf - Sample file containing many more sophisticated examples of
how to typeset a physics paper:

This file apssamp.tex generates the output displayed here: apssamp.pdf. Comparing these files side-by-side is a good way to learn lots about typesetting papers. - APS homepage for RevTeX (including links to documentation)
- Tutorials (A random sampling of many that you can find online):
- Reference materials
- Outline of steps for paper production using PDFLaTeX.
(The % signs represent the command line prompt in a
unix/Linux terminal session.)
- Copy template
`template.tex`

to a working file, say`paper.tex`

:

`% cp sample.tex paper.tex`

- Edit
`paper.tex`

:

`% gedit paper.tex &`

(or use your editor) - Compile the tex file:

`% pdflatex paper.tex`

- Compile the tex file (again):

`% pdflatex paper.tex`

- View the
`.pdf`

file:

`% evince paper.pdf &`

(or use your favorite viewer) - You may edit, save, and recompile without closing the evince viewer; it will update the displayed version automatically.

- Copy template

- Projected Talks

Marty Ligare, mligare@bucknell.edu