ultimatepp/reference/Complex/Complex.cpp
cxl 50dcf06e7c .reference
git-svn-id: svn://ultimatepp.org/upp/trunk@10478 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-11-22 09:10:55 +00:00

21 lines
263 B
C++

#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
StdLogSetup(LOG_COUT|LOG_FILE);
Complex a(3, 4);
DUMP(a);
DUMP(a.imag());
DUMP(a.real());
DUMP(abs(a));
DUMP(a + a);
DUMP(2.0 + a);
DUMP(2.0 * a);
DUMP(a * a);
}