예제 #1
0
//------------------------------------------------------------------------------
// serialize() -- print the value of this object to the output stream sout.
//------------------------------------------------------------------------------
std::ostream& Sz1::serialize(std::ostream& sout, const int i, const bool slotsOnly) const
{
    int j = 0;
    if ( !slotsOnly ) {
        sout << "( " << getFactoryName() << std::endl;
        j = 4;
    }

    BaseClass::serialize(sout,i+j,true);

    indent(sout,i+j);
    sout << "N1:   " << getN1() << std::endl;

    indent(sout,i+j);
    sout << "N2:   " << getN2() << std::endl;

    indent(sout,i+j);
    sout << "D1:   " << getD1() << std::endl;

    indent(sout,i+j);
    sout << "D2:   " << getD2() << std::endl;

    if ( !slotsOnly ) {
        indent(sout,i);
        sout << ")" << std::endl;
    }

    return sout;
}
예제 #2
0
sc::REAL
SCMapSeries::getRadius(std::complex<sc::REAL> const& p) const
{
	std::complex<sc::REAL> d1 = getD1(p);
	std::complex<sc::REAL> d2 = getD2(p);

	sc::REAL r = std::pow(std::abs(d1), 3) / std::imag(std::conj(d1)*d2);

	return r;
}