/PHY299-Class-Assignments

A repository containing multiple small projects for my physics class, Scientific Modelling & Data Analysis.

Primary LanguagePython

PHY299 Class Assignments

A repository containing multiple small projects from my physics class, Scientific Modeling & Data Analysis, at the University of Mount Union that was taught by Dr. Colin Campbell.

This class utilizes libraries from Anaconda found here: https://www.anaconda.com/

Some exercises and problems come from "Learning Scientific Programming with Python" by Christian Hill.

Some code was provided by Dr. Colin Campbell and edited by Alec Barker.

It contains code for the following:

Homework

  • Barker HW1: Simple math calculations and comparisons
  • Barker HW2: Modified substrings and displayed values in a grid using an array
  • Barker HW3-1: Zipped two arrays together and sorted them
  • Barker HW3-2: Looped numbers in an array and found the product of every number except the current one
  • Barker HW3-3: Found factorials using only even or only odd numbers
  • Barker HW3-4: Demonstrated Benford's Law with the Fibonacci Sequence
  • Barker HW4-1: Calculated Gauss's Constant
  • Barker HW4-2: Listed prime numbers to 10,000
  • Barker HW4-3: Estimated area under a curve using random points
  • Barker HW4-4: Interactive two player tic-tac-toe game
  • Barker HW5-1: Calculated the Earth Similarity Index (ESI) of multiple planets from a text file
  • Barker HW6-1: Found if a number is a Harshad number
  • Barker HW6-2: Calculated horizontal range and height of a 2D projectile
  • Barker HW6-3: Set up a system to query information from a text file of planetary information
  • Barker HW7-1: Plotted curves on a graph
  • Barker HW7-2: Plotted an Archimedean spiral and logarithmic spiral
  • Barker HW7-3: Plotted the range and height of 2D projectiles at various angles
  • Barker HW8-1: Displayed planetary information from a text file by using a dictionary
  • Barker HW8-2: Compare values in two arrays
  • Barker HW9-1: Drew a Mandelbrot set
  • Barker HW10-1
  • Barker HW10-2: Plotted Dow Jones Industrial Average Index with various filters applied
  • Barker HW11-1
  • Barker HW12-1: Computed definite integrals
  • Barker HW12-2: Computed a definite integral
  • Barker HW12-3: Computed a triple definite integral
  • Barker HW13-1: Graphed uniform and normal distributions
  • Barker HW13-2: Plotted temperature data from 1995 to 2017 from many areas and compared them
  • Barker HW14-1: Plotted temperature data from 1995 to 2017 from many areas and found the parameters that best fits the curve of data
  • Barker HW14-2

In-Class Activities

  • Exercise about graphing binding energy
  • Exercise about binding energy
  • Exercise about graphing points to determine area under a curve

Notes

  • Notes about booleans
  • Notes about conditional statements
  • Notes about file input and output
  • Notes about functions
  • Notes about graphing data
  • Notes about lists, tuples, and loops
  • Notes about number data types
  • Notes about the string data type