mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
formatting source-code for 247301c5b5
This commit is contained in:
parent
247301c5b5
commit
5baf1ad89f
@ -1,10 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* @author tjgurwara99
|
* @author tjgurwara99
|
||||||
* @file
|
* @file
|
||||||
*
|
*
|
||||||
* \brief An implementation of Complex Number as Objects
|
* \brief An implementation of Complex Number as Objects
|
||||||
* \details A basic implementation of Complex Number field as a class with operators
|
* \details A basic implementation of Complex Number field as a class with
|
||||||
* overloaded to accommodate (mathematical) field operations.
|
* operators overloaded to accommodate (mathematical) field operations.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
@ -195,7 +195,8 @@ std::ostream &operator<<(std::ostream &os, const Complex &num) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Function to get random numbers to generate our complex numbers for test
|
* \brief Function to get random numbers to generate our complex numbers for
|
||||||
|
* test
|
||||||
*/
|
*/
|
||||||
double get_rand() { return (std::rand() % 100 - 50) / 100.f; }
|
double get_rand() { return (std::rand() % 100 - 50) / 100.f; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user