Assignment 3

Develop ML functions for the following problems.

  • Develop a higher order function and show its use in computing fastpower (from Assign1), perfect numbers(from Assign1), $e^{x}$ up to some $n$-th term, and the higher order double summation function to compute $\Sigma_{i = a}^{b}\Sigma_{j=c}^{d}$
  • Submit the solutions to the Minor1 questions that you were unable to solve in the exam.
  • Study, understand, and code the two primality testing methods from Chapter 5 of the lecture notes. You are free to use SML or Python for this assignment.
Previous