Cs 312 Project 1 Test Cases

  • Uploaded by: Jeff Pratt
  • 0
  • 0
  • October 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Cs 312 Project 1 Test Cases as PDF for free.

More details

  • Words: 258
  • Pages: 1
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 

Related Documents

Cs 312 Project 1 Test Cases
October 2019 21
Cs 312 Project 1
October 2019 29
Cs 312 Syllabus
October 2019 24
Test Cases
November 2019 14

More Documents from ""