Maths to Code
The lecture course was originally planned for there to be a reading week. So this is a bonus lecture. By popular request, it’ll be on how to convert maths to code.
This lecture will be delivered live, so there are not any videos to watch.
The slides for this lecture are be available here
During this week’s practical, we will be working on the challenges found here
Standard Deviation Example
Here is my example code converting the standard deviation of a sample formula to code. This makes use of lambdas in Java which I would not expect you to be able to use in your first year!
\( SD = \sqrt{\frac{\sum_{i=1}^{n}(x_i - \overline{x})^2}{n - 1}} \)
- Previous
- Next