Test Cases for Project 1 Here are some example input/output values to test your implementation for solving second order, linear, constant coefficient homogeneous difference equations of the form y(k + 2) + a1 y(k + 1) + a0 y(k) = br k
, with initial conditions y(0) and y(1). In your report, you should include which output values your implementation gives for the 5 test cases below that don’t include output. a0 a1 b r y(0) y(1) λ1 λ2 c1 c2 case
4 4 2 -2 1 2 -2 -2 1 -2.25 r=λ1=λ2
-2 1 2 1 3 2 1 -2 2.444 0.556 r=λ1≠λ2
-2 -1 7 3 0 4 2 -1 -1 -0.75 r≠λ1≠λ2
4 4 4 3 2 2 -2 -2 1.84 -2.6 r≠λ1=λ2
2 2 5 1 3 1 -1+i -1-i 1-i 1+i Imag.
9 6 1 -4 0 3 ? ? ? ?
9 0 2 3 1 1 ? ? ? ?
4 5 2 -4 1 4 ? ? ? ?
9 -6 2 3 8 5 ? ? ? ?
8 -6 2 3 8 5 ? ? ? ?
Complex Number support The .NET platform doesn’t have complex numbers built in. To make your implementation easier, a file Complex.cs has been posted on Blackboard, so you don’t have to write it yourself. If you include the complex class in your .NET project, then just write “Using PolyLibTester” in your code. Complex numbers can then be written using, for example, the command: Complex a = new Complex (1, 3); //inits a=1+3i