My first Maple coursework for Computational Physics A. I write this coursework in MAPLE and consists of three exercises:
- Numerical Analysis of a Function
- Calculating Moving Average of Data (for loops)
- Advance Plotting (plotting 2D wave-function)
In the first exercise I compared the results obtained using a numerical method and a symbolic approach to finding the value of a large polynomial. Calculating the value numerically my computer ran out of memory and the obtained answer was nonsense; but, if fractions were used a genuine answer was obtained.
For part two, a convolution is used to calculate the moving average of data. This works by multiplying each position in an array by an array which averages over a set number of entries.
Finally, a function is created which plots inputted wave functions in 2D. The wave functions specified were those belonging to an infinite triangular well and had different symmetries.