Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/165 increase the spectral range for major chromophores #166

74 changes: 37 additions & 37 deletions src/Vts.Test/Factories/ComputationFactoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,21 +212,21 @@ public void Validate_ROfRhoAndTime_With_Wavelength()
// ... repeat above with ops1...

// [0] -> ops0=650, rho0=0.5, ts0=0.05
Assert.IsTrue(Math.Abs(rVsWavelength[0] - 0.044606) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[0] - 0.044634) < 0.000001); // API match
// [1] -> ops0=650, rho0=0.5, ts1=0.10
Assert.IsTrue(Math.Abs(rVsWavelength[1] - 0.005555) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[1] - 0.005563) < 0.000001);
// [2] -> ops0=650, rho1=1.635, ts0=0.05
Assert.IsTrue(Math.Abs(rVsWavelength[2] - 0.036900) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[2] - 0.036924) < 0.000001); // API match
// [3] -> ops0=650, rho1=1.635, ts1=0.10
Assert.IsTrue(Math.Abs(rVsWavelength[3] - 0.005053) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[3] - 0.005060) < 0.000001);
// [4] -> ops1=700, rho0=0.5, ts0=0.05
Assert.IsTrue(Math.Abs(rVsWavelength[4] - 0.057894) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[4] - 0.057925) < 0.000001); // API match
// [5] -> ops1=700, rho0=0.5, ts1=0.10
Assert.IsTrue(Math.Abs(rVsWavelength[5] - 0.010309) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[5] - 0.010320) < 0.000001);
// [6] -> ops1=700, rho1=1.635, ts0=0.05
Assert.IsTrue(Math.Abs(rVsWavelength[6] - 0.048493) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[6] - 0.048519) < 0.000001); // API match
// [7] -> ops1=700, rho1=1.635, ts1=0.10
Assert.IsTrue(Math.Abs(rVsWavelength[7] - 0.009434) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[7] - 0.009445) < 0.000001);
}

[Test]
Expand Down Expand Up @@ -268,37 +268,37 @@ public void Validate_ROfRhoAndFt_With_Wavelength()
// ... repeat above with imag, then next ops1...

// [0] -> ops0=650, rho0=0.5, fts0=0.0 real
Assert.IsTrue(Math.Abs(rVsWavelength[0] - 0.037575) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[0] - 0.037577) < 0.000001);
// [1] -> ops0=650, rho0=0.5, fts1=0.5 real
Assert.IsTrue(Math.Abs(rVsWavelength[1] - 0.037511) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[1] - 0.037514) < 0.000001);
// [2] -> ops0=650, rho1=1.635, fts0=0.0 real
Assert.IsTrue(Math.Abs(rVsWavelength[2] - 0.009306) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[2] - 0.009309) < 0.000001);
// [3] -> ops0=650, rho1=1.635, fts1=0.5 real
Assert.IsTrue(Math.Abs(rVsWavelength[3] - 0.009255) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[3] - 0.009258) < 0.000001);
// [4] -> ops1=700, rho0=0.5, fts0=0.0 real
Assert.IsTrue(Math.Abs(rVsWavelength[4] - 0.036425) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[4] - 0.036428) < 0.000001);
// [5] -> ops1=700, rho0=0.5, fts1=0.5 real
Assert.IsTrue(Math.Abs(rVsWavelength[5] - 0.036310) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[5] - 0.036313) < 0.000001);
// [6] -> ops1=700, rho1=1.635, fts0=0.0 real
Assert.IsTrue(Math.Abs(rVsWavelength[6] - 0.010657) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[6] - 0.010661) < 0.000001);
// [7] -> ops1=700, rho1=1.635, fts1=0.5 real
Assert.IsTrue(Math.Abs(rVsWavelength[7] - 0.010558) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[7] - 0.010562) < 0.000001);
// [8] -> ops0=650, rho0=0.5, fts0=0.0 imag
Assert.IsTrue(Math.Abs(rVsWavelength[8] - 0.0) < 0.000001);
// [9] -> ops0=650, rho0=0.5, fts1=0.5 imag
Assert.IsTrue(Math.Abs(rVsWavelength[9] + 0.001200) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[9] + 0.001201) < 0.000001);
// [10] -> ops0=650, rho1=1.635, fts0=0.0 imag
Assert.IsTrue(Math.Abs(rVsWavelength[10] - 0.0) < 0.000001);
// [11] -> ops1=650, rho1=1.635, fts1=0.5 imag
Assert.IsTrue(Math.Abs(rVsWavelength[11] + 0.000674) < 0.000001);
// [12] -> ops1=700, rho0=0.5, fts0=0.0
Assert.IsTrue(Math.Abs(rVsWavelength[12] - 0.0) < 0.000001);
// [13] -> ops1=700, rho0=0.5, fts1=0.5 imag
Assert.IsTrue(Math.Abs(rVsWavelength[13] + 0.001446) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[13] + 0.001448) < 0.000001);
// [14] -> ops1=700, rho1=1.635, fts0=0.0 real
Assert.IsTrue(Math.Abs(rVsWavelength[14] - 0.0) < 0.000001);
// [15] -> ops1=700, rho1=1.635, fts1=0.5 imag
Assert.IsTrue(Math.Abs(rVsWavelength[15] + 0.000929) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[15] + 0.000930) < 0.000001);
}
[Test]
public void Validate_ROfFxAndTime_With_Wavelength()
Expand Down Expand Up @@ -341,21 +341,21 @@ public void Validate_ROfFxAndTime_With_Wavelength()
// ... repeat above with ops1...

// [0] -> ops0=650, fx0=0.0, ts0=0.05
Assert.IsTrue(Math.Abs(rVsWavelength[0] - 1.558702) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[0] - 1.559834) < 0.000001);
// [1] -> ops0=650, fx0=0.0, ts1=0.10
Assert.IsTrue(Math.Abs(rVsWavelength[1] - 0.391871) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[1] - 0.392428) < 0.000001);
// [2] -> ops0=650, fx1=0.5, ts0=0.05
Assert.IsTrue(Math.Abs(rVsWavelength[2] - 5.023055e-12) < 0.000001e-12);
Assert.IsTrue(Math.Abs(rVsWavelength[2] - 5.024520e-12) < 0.000001e-12);
// [3] -> ops0=650, fx1=0.5, ts1=0.10
Assert.IsTrue(Math.Abs(rVsWavelength[3] - 1.032586e-13) < 0.000001e-13);
Assert.IsTrue(Math.Abs(rVsWavelength[3] - 1.034617e-13) < 0.000001e-13);
// [4] -> ops1=700, fx0=0.0, ts0=0.05
Assert.IsTrue(Math.Abs(rVsWavelength[4] - 2.218329) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[4] - 2.219706) < 0.000001);
// [5] -> ops1=700, fx1=0.5, ts1=0.10
Assert.IsTrue(Math.Abs(rVsWavelength[5] - 0.797200) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[5] - 0.798169) < 0.000001);
// [6] -> ops1=700, fx0=0.0, ts0=0.05
Assert.IsTrue(Math.Abs(rVsWavelength[6] - 1.347053e-12) < 0.000001e-12);
Assert.IsTrue(Math.Abs(rVsWavelength[6] - 1.343112e-12) < 0.000001e-12);
// [7] -> ops1=700, fx1=0.5, ts1=0.10
Assert.IsTrue(Math.Abs(rVsWavelength[7] - 2.052883e-13) < 0.000001e-13);
Assert.IsTrue(Math.Abs(rVsWavelength[7] - 2.054214e-13) < 0.000001e-13);
}
[Test]
public void Validate_ROfFxAndFt_With_Wavelength()
Expand Down Expand Up @@ -396,33 +396,33 @@ public void Validate_ROfFxAndFt_With_Wavelength()
// ... repeat above with imag, then with ops1...

// [0] -> ops0=650, fx0=0.0, fts0=0.0 real
Assert.IsTrue(Math.Abs(rVsWavelength[0] - 1.890007) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[0] - 1.890399) < 0.000001); // API match
// [1] -> ops0=650, fx0=0.0, fts1=0.5 real
Assert.IsTrue(Math.Abs(rVsWavelength[1] - 1.888160) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[1] - 1.888550) < 0.000001);
// [2] -> ops0=650, fx1=0.5, fts0=0.0 real
Assert.IsTrue(Math.Abs(rVsWavelength[2] - 0.562537) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[2] - 0.562545) < 0.000001); // API match
// [3] -> ops0=650, fx1=0.5, fts1=0.5 real
Assert.IsTrue(Math.Abs(rVsWavelength[3] - 0.562543) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[3] - 0.562550) < 0.000001);
// [4] -> ops1=700, fx0=0.0, fts0=0.0 real
Assert.IsTrue(Math.Abs(rVsWavelength[4] - 2.118427) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[4] - 2.118962) < 0.000001); // API match
// [5] -> ops1=700, fx0=0.0, fts1=0.5 real
Assert.IsTrue(Math.Abs(rVsWavelength[5] - 2.113377) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[5] - 2.113900) < 0.000001);
// [6] -> ops1=700, fx1=0.5, fts0=0.0 real
Assert.IsTrue(Math.Abs(rVsWavelength[6] - 0.543539) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[6] - 0.543545) < 0.000001); // API match
// [7] -> ops1=700, fx1=0.5, fts1=0.5 real
Assert.IsTrue(Math.Abs(rVsWavelength[7] - 0.543546) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[7] - 0.543551) < 0.000001);
// [8] -> ops0=650, fx0=0.0, fts0=0.0 imag
Assert.IsTrue(Math.Abs(rVsWavelength[8] - 0.0) < 0.000001); // API match
// [9] -> ops0=650, fx0=0.0, fts1=0.5 imag
Assert.IsTrue(Math.Abs(rVsWavelength[9] + 0.045122) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[9] + 0.045154) < 0.000001);
// [10] -> ops0=650, fx1=0.5, fts0=0.0 imag
Assert.IsTrue(Math.Abs(rVsWavelength[10] - 0.0) < 0.000001); // API match
// [11] -> ops0=650, fx1=0.5, fts1=0.5 imag
Assert.IsTrue(Math.Abs(rVsWavelength[11] + 0.000799) < 0.000001);
// [12] -> ops1=700, fx0=0.0, fts0=0.0 imag
Assert.IsTrue(Math.Abs(rVsWavelength[12] - 0.0) < 0.000001); // API match
// [13] -> ops1=700, fx0=0.0, fts1=0.5 imag
Assert.IsTrue(Math.Abs(rVsWavelength[13] + 0.071758) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[13] + 0.071832) < 0.000001);
// [14] -> ops1=700, fx1=0.5, fts0=0.0 imag
Assert.IsTrue(Math.Abs(rVsWavelength[14] - 0.0) < 0.000001); // API match
// [15] -> ops1=700, fx1=0.5, fts1=0.5 imag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,21 +404,21 @@ public void validate_ROfRhoAndTime_With_Wavelength()
// ... repeat above with ops1...

// [0] -> ops0=650, rho0=0.5, ts0=0.05
Assert.IsTrue(Math.Abs(rVsWavelength[0] - 0.044606) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[0] - 0.044634) < 0.000001); // API match
// [1] -> ops0=650, rho0=0.5, ts1=0.10
Assert.IsTrue(Math.Abs(rVsWavelength[1] - 0.005555) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[1] - 0.005563) < 0.000001);
// [2] -> ops0=650, rho1=1.635, ts0=0.05
Assert.IsTrue(Math.Abs(rVsWavelength[2] - 0.036900) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[2] - 0.036924) < 0.000001); // API match
// [3] -> ops0=650, rho1=1.635, ts1=0.10
Assert.IsTrue(Math.Abs(rVsWavelength[3] - 0.005053) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[3] - 0.005060) < 0.000001);
// [4] -> ops1=700, rho0=0.5, ts0=0.05
Assert.IsTrue(Math.Abs(rVsWavelength[4] - 0.057894) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[4] - 0.057925) < 0.000001); // API match
// [5] -> ops1=700, rho0=0.5, ts1=0.10
Assert.IsTrue(Math.Abs(rVsWavelength[5] - 0.010309) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[5] - 0.010320) < 0.000001);
// [6] -> ops1=700, rho1=1.635, ts0=0.05
Assert.IsTrue(Math.Abs(rVsWavelength[6] - 0.048493) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[6] - 0.048519) < 0.000001); // API match
// [7] -> ops1=700, rho1=1.635, ts1=0.10
Assert.IsTrue(Math.Abs(rVsWavelength[7] - 0.009434) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[7] - 0.009445) < 0.000001);
}

[Test]
Expand Down Expand Up @@ -454,29 +454,29 @@ public void validate_ROfRhoAndFt_With_Wavelength()
// ... repeat above with ops1...

// [0] -> ops0=650, rho0=0.5, fts0=0.0
Assert.IsTrue(Math.Abs(rVsWavelength[0].Real - 0.037575) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[0].Real - 0.037577) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[0].Imaginary - 0.0) < 0.000001);
// [1] -> ops0=650, rho0=0.5, fts1=0.5
Assert.IsTrue(Math.Abs(rVsWavelength[1].Real - 0.037511) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[1].Imaginary + 0.001200) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[1].Real - 0.037514) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[1].Imaginary + 0.001201) < 0.000001);
// [2] -> ops0=650, rho1=1.635, fts0=0.0
Assert.IsTrue(Math.Abs(rVsWavelength[2].Real - 0.009306) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[2].Real - 0.009309) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[2].Imaginary - 0.0) < 0.000001);
// [3] -> ops0=650, rho1=1.635, fts1=0.5
Assert.IsTrue(Math.Abs(rVsWavelength[3].Real - 0.009255) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[3].Real - 0.009258) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[3].Imaginary + 0.000674) < 0.000001);
// [4] -> ops1=700, rho0=0.5, fts0=0.0
Assert.IsTrue(Math.Abs(rVsWavelength[4].Real - 0.036425) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[4].Real - 0.036428) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[4].Imaginary - 0.0) < 0.000001);
// [5] -> ops1=700, rho0=0.5, fts1=0.5
Assert.IsTrue(Math.Abs(rVsWavelength[5].Real - 0.036310) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[5].Imaginary + 0.001446) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[5].Real - 0.036313) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[5].Imaginary + 0.001448) < 0.000001);
// [6] -> ops1=700, rho1=1.635, fts0=0.0
Assert.IsTrue(Math.Abs(rVsWavelength[6].Real - 0.010657) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[6].Real - 0.010661) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[6].Imaginary - 0.0) < 0.000001);
// [7] -> ops1=700, rho1=1.635, fts1=0.5
Assert.IsTrue(Math.Abs(rVsWavelength[7].Real - 0.010558) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[7].Imaginary + 0.000929) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[7].Real - 0.010562) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[7].Imaginary + 0.000930) < 0.000001);
}
[Test]
public void validate_ROfFtAndTime_With_Wavelength()
Expand Down Expand Up @@ -511,21 +511,21 @@ public void validate_ROfFtAndTime_With_Wavelength()
// ... repeat above with ops1...

// [0] -> ops0=650, fx0=0.0, ts0=0.05
Assert.IsTrue(Math.Abs(rVsWavelength[0] - 1.558702) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[0] - 1.559834) < 0.000001);
// [1] -> ops0=650, fx0=0.0, ts1=0.10
Assert.IsTrue(Math.Abs(rVsWavelength[1] - 0.391871) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[1] - 0.392428) < 0.000001);
// [2] -> ops0=650, fx1=0.5, ts0=0.05
Assert.IsTrue(Math.Abs(rVsWavelength[2] - 5.023055e-12) < 0.000001e-12);
Assert.IsTrue(Math.Abs(rVsWavelength[2] - 5.024520e-12) < 0.000001e-12);
// [3] -> ops0=650, fx1=0.5, ts1=0.10
Assert.IsTrue(Math.Abs(rVsWavelength[3] - 1.032586e-13) < 0.000001e-13);
Assert.IsTrue(Math.Abs(rVsWavelength[3] - 1.034617e-13) < 0.000001e-13);
// [4] -> ops1=700, fx0=0.0, ts0=0.05
Assert.IsTrue(Math.Abs(rVsWavelength[4] - 2.218329) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[4] - 2.219706) < 0.000001);
// [5] -> ops1=700, fx1=0.5, ts1=0.10
Assert.IsTrue(Math.Abs(rVsWavelength[5] - 0.797200) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[5] - 0.798169) < 0.000001);
// [6] -> ops1=700, fx0=0.0, ts0=0.05
Assert.IsTrue(Math.Abs(rVsWavelength[6] - 1.347053e-12) < 0.000001e-12);
Assert.IsTrue(Math.Abs(rVsWavelength[6] - 1.343112e-12) < 0.000001e-12);
// [7] -> ops1=700, fx1=0.5, ts1=0.10
Assert.IsTrue(Math.Abs(rVsWavelength[7] - 2.052883e-13) < 0.000001e-13);
Assert.IsTrue(Math.Abs(rVsWavelength[7] - 2.054214e-13) < 0.000001e-13);
}
[Test]
public void validate_ROfFxAndFt_With_Wavelength()
Expand Down Expand Up @@ -560,28 +560,28 @@ public void validate_ROfFxAndFt_With_Wavelength()
// ... repeat above with ops1...

// [0] -> ops0=650, fx0=0.0, fts0=0.0
Assert.IsTrue(Math.Abs(rVsWavelength[0].Real - 1.890007) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[0].Real - 1.890399) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[0].Imaginary - 0.0) < 0.000001); // API match
// [1] -> ops0=650, fx0=0.0, fts1=0.5
Assert.IsTrue(Math.Abs(rVsWavelength[1].Real - 1.888160) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[1].Imaginary + 0.045122) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[1].Real - 1.888550) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[1].Imaginary + 0.045154) < 0.000001);
// [2] -> ops0=650, fx1=0.5, fts0=0.0
Assert.IsTrue(Math.Abs(rVsWavelength[2].Real - 0.562537) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[2].Real - 0.562545) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[2].Imaginary - 0.0) < 0.000001); // API match
// [3] -> ops0=650, fx1=0.5, fts1=0.5
Assert.IsTrue(Math.Abs(rVsWavelength[3].Real - 0.562543) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[3].Real - 0.562550) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[3].Imaginary + 0.000799) < 0.000001);
// [4] -> ops1=700, fx0=0.0, fts0=0.0
Assert.IsTrue(Math.Abs(rVsWavelength[4].Real - 2.118427) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[4].Real - 2.118962) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[4].Imaginary - 0.0) < 0.000001); // API match
// [5] -> ops1=700, fx0=0.0, fts1=0.5
Assert.IsTrue(Math.Abs(rVsWavelength[5].Real - 2.113377) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[5].Imaginary + 0.071758) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[5].Real - 2.113900) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[5].Imaginary + 0.071832) < 0.000001);
// [6] -> ops1=700, fx1=0.5, fts0=0.0
Assert.IsTrue(Math.Abs(rVsWavelength[6].Real - 0.543539) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[6].Real - 0.543545) < 0.000001); // API match
Assert.IsTrue(Math.Abs(rVsWavelength[6].Imaginary - 0.0) < 0.000001); // API match
// [7] -> ops1=700, fx1=0.5, fts1=0.5
Assert.IsTrue(Math.Abs(rVsWavelength[7].Real - 0.543546) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[7].Real - 0.543551) < 0.000001);
Assert.IsTrue(Math.Abs(rVsWavelength[7].Imaginary + 0.000651) < 0.000001);
}
#endregion
Expand Down
Loading
Loading