int main(){ while(scanf("%s",str)!=EOF){ a.input(str); b=DtoB(a); b=reversion(b); a=BtoD(b); a.display(); } return 0; }
void split_path(const std::string& r,std::vector<std::string>& vs) { std::string s; for( int i=r.length()-1;i>=0;i-- ) { if( r.at(i)!='/'&&r.at(i)!='\\' ) { s += r.at(i); }else { vs.push_back(reversion(s)); s.clear(); } } if( !s.empty() ) { vs.push_back(reversion(s)); s.clear(); } }
Real GsrProcess::drift(Time t, Real x) const { return core_.y(t) - core_.G(t, x) * sigma(t) * sigma(t) - reversion(t) * x; }