MathLib
Loading...
Searching...
No Matches
Tests
Namespaces
|
Functions
TestComplex.cpp File Reference
Go to the source code of this file.
Namespaces
namespace
ComplexTests
Functions
void
TestRotationAtRegularIntervals
(Complexf begin, Degreef amount_of_rotation, int num_equal_steps)
void
Run
()
int
main
(void)
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
()
Function Documentation
◆
main()
int main
(
void
)
Definition at line
491
of file
TestComplex.cpp
.
Generated by
1.9.8