MathLib
Loading...
Searching...
No Matches
Functions
ComplexTests Namespace Reference

Functions

void TestRotationAtRegularIntervals (Complexf begin, Degreef amount_of_rotation, int num_equal_steps)
 
void Run ()
 
void UnitComplexIsAsExpected ()
 
void ZeroComplexIsAsExpected ()
 
void ComplexIsConstructedAsExpected ()
 
void ComplexAddsPerComponent ()
 
void OperatorEqualsComparesMatchingComponents ()
 
void OperatorNotEqualsIsOppositeOfEquals ()
 
void CopyOperatorIsImplemented ()
 
void ConjugateInvertsTheImaginaryComponent ()
 
void ConjugateIsItsOwnInverse ()
 
void IUnitCoomplexIsDefined ()
 
void ISquaredIsNegativeOne ()
 
void HasOperatorNegate ()
 
void OperatorPlusAndMinusAreInverses ()
 
void NormIsEquivalentToDistance ()
 
void UnitComplexHasNormOfOne ()
 
void DividingByAScalarDividesEachComponent ()
 
void MultiplyingByAScalarMultipliesEachComponent ()
 
void MultiplyingByItsOwnInverseProducesUnity ()
 
void InverseOfAUnitComplexIsItsConjugate ()
 
void UnitComplexIsNear1 ()
 
void MakePureComplexSetsRealComponentToZero ()
 
void MakePureComplexSetsImaginaryToInputParameter ()
 
void DotProductMultiplesCorrespondingElementsAndThenSumsTheResultingValues ()
 
void MultiplyingAComplexByItsConjugateProducesAPureRealNumber ()
 
void MagnitudeSquaredIsValueOfRealPartOfProductOfAComplexAndItsConjugate ()
 
void MakingARotationIsAccurate ()
 
void PerformTwoConsecutiveRotations ()
 
void TestPow ()
 
void TestExp ()
 
void ExpAndLogAreInversesOfEachOther ()
 
void TestSlerp ()
 

Detailed Description

Contains the unit tests for Complex

Function Documentation

◆ ComplexAddsPerComponent()

void ComplexAddsPerComponent ( )

Definition at line 85 of file TestComplex.cpp.

◆ ComplexIsConstructedAsExpected()

void ComplexIsConstructedAsExpected ( )

Definition at line 77 of file TestComplex.cpp.

◆ ConjugateInvertsTheImaginaryComponent()

void ConjugateInvertsTheImaginaryComponent ( )

Definition at line 133 of file TestComplex.cpp.

◆ ConjugateIsItsOwnInverse()

void ConjugateIsItsOwnInverse ( )

Definition at line 148 of file TestComplex.cpp.

◆ CopyOperatorIsImplemented()

void CopyOperatorIsImplemented ( )

Definition at line 125 of file TestComplex.cpp.

◆ DividingByAScalarDividesEachComponent()

void DividingByAScalarDividesEachComponent ( )

Definition at line 201 of file TestComplex.cpp.

◆ DotProductMultiplesCorrespondingElementsAndThenSumsTheResultingValues()

void DotProductMultiplesCorrespondingElementsAndThenSumsTheResultingValues ( )

Definition at line 271 of file TestComplex.cpp.

◆ ExpAndLogAreInversesOfEachOther()

void ExpAndLogAreInversesOfEachOther ( )

Definition at line 379 of file TestComplex.cpp.

◆ HasOperatorNegate()

void HasOperatorNegate ( )

Definition at line 168 of file TestComplex.cpp.

◆ InverseOfAUnitComplexIsItsConjugate()

void InverseOfAUnitComplexIsItsConjugate ( )

Definition at line 249 of file TestComplex.cpp.

◆ ISquaredIsNegativeOne()

void ISquaredIsNegativeOne ( )

Definition at line 160 of file TestComplex.cpp.

◆ IUnitCoomplexIsDefined()

void IUnitCoomplexIsDefined ( )

Definition at line 155 of file TestComplex.cpp.

◆ MagnitudeSquaredIsValueOfRealPartOfProductOfAComplexAndItsConjugate()

void MagnitudeSquaredIsValueOfRealPartOfProductOfAComplexAndItsConjugate ( )

Definition at line 288 of file TestComplex.cpp.

◆ MakePureComplexSetsImaginaryToInputParameter()

void MakePureComplexSetsImaginaryToInputParameter ( )

Definition at line 266 of file TestComplex.cpp.

◆ MakePureComplexSetsRealComponentToZero()

void MakePureComplexSetsRealComponentToZero ( )

Definition at line 261 of file TestComplex.cpp.

◆ MakingARotationIsAccurate()

void MakingARotationIsAccurate ( )

Definition at line 297 of file TestComplex.cpp.

◆ MultiplyingAComplexByItsConjugateProducesAPureRealNumber()

void MultiplyingAComplexByItsConjugateProducesAPureRealNumber ( )

Definition at line 279 of file TestComplex.cpp.

◆ MultiplyingByAScalarMultipliesEachComponent()

void MultiplyingByAScalarMultipliesEachComponent ( )

Definition at line 219 of file TestComplex.cpp.

◆ MultiplyingByItsOwnInverseProducesUnity()

void MultiplyingByItsOwnInverseProducesUnity ( )

Definition at line 237 of file TestComplex.cpp.

◆ NormIsEquivalentToDistance()

void NormIsEquivalentToDistance ( )

Definition at line 187 of file TestComplex.cpp.

◆ OperatorEqualsComparesMatchingComponents()

void OperatorEqualsComparesMatchingComponents ( )

Definition at line 95 of file TestComplex.cpp.

◆ OperatorNotEqualsIsOppositeOfEquals()

void OperatorNotEqualsIsOppositeOfEquals ( )

Definition at line 105 of file TestComplex.cpp.

◆ OperatorPlusAndMinusAreInverses()

void OperatorPlusAndMinusAreInverses ( )

Definition at line 176 of file TestComplex.cpp.

◆ PerformTwoConsecutiveRotations()

void PerformTwoConsecutiveRotations ( )

Definition at line 319 of file TestComplex.cpp.

◆ Run()

void Run ( )

Run all of the unit tests in this namespace

Definition at line 448 of file TestComplex.cpp.

◆ TestExp()

void TestExp ( )

Definition at line 367 of file TestComplex.cpp.

◆ TestPow()

void TestPow ( )

Definition at line 344 of file TestComplex.cpp.

◆ TestRotationAtRegularIntervals()

void TestRotationAtRegularIntervals ( Complexf  begin,
Degreef  amount_of_rotation,
int  num_equal_steps 
)

Definition at line 32 of file TestComplex.cpp.

◆ TestSlerp()

void TestSlerp ( )

Definition at line 395 of file TestComplex.cpp.

◆ UnitComplexHasNormOfOne()

void UnitComplexHasNormOfOne ( )

Definition at line 195 of file TestComplex.cpp.

◆ UnitComplexIsAsExpected()

void UnitComplexIsAsExpected ( )

Definition at line 61 of file TestComplex.cpp.

◆ UnitComplexIsNear1()

void UnitComplexIsNear1 ( )

Definition at line 255 of file TestComplex.cpp.

◆ ZeroComplexIsAsExpected()

void ZeroComplexIsAsExpected ( )

Definition at line 69 of file TestComplex.cpp.