csharpfftfsharpintegrationinterpolationlinear-algebramathdifferentiationmatrixnumericsrandomregressionstatisticsmathnet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
445 B
16 lines
445 B
namespace MathNet.Numerics.UnitTests
|
|
{
|
|
using MbUnit.Framework;
|
|
|
|
[TestFixture]
|
|
public class ComplexTest
|
|
{
|
|
[Test, MultipleAsserts]
|
|
public void CanCreateComplexNumberUsingTheConstructor()
|
|
{
|
|
var complex = new Complex(1.1, -2.2);
|
|
Assert.AreEqual(complex.Real, 1.1, "Real part is 1.1");
|
|
Assert.AreEqual(complex.Imaginary, -2.2, "Imaginary part is -2.2");
|
|
}
|
|
}
|
|
}
|