Professional Documents
Culture Documents
Training Assignment 11 Tue 2015-05-12 NUMA22: Computational Mathematics
Training Assignment 11 Tue 2015-05-12 NUMA22: Computational Mathematics
Task 1
Task 2
Consider your code from Homework 1. Write a test class (unittest) to test
• a correct result for a problem of your choice
• that the integral of a positive function is positive
• that the integral is zero if the integration interval is empty
• that incorrect input is handled by proper exception handling.