MAPLE Basics

Three example wave functions of a 2D infinite triangle well
Three example wave functions of a 2D infinite triangle well

My first Maple coursework for Computational Physics A. I write this coursework in MAPLE and consists of three exercises:

  1. Numerical Analysis of a Function
  2. Calculating Moving Average of Data (for loops)
  3. 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.

Three example wave functions of a 2D infinite triangle well
Three example wave functions of a 2D infinite triangle well
https://github.com/edwardwebster/Maple-Coursework-1
GITHUB REPOSITORY

1 comment

Leave a comment

Your email address will not be published. Required fields are marked *