Serega.cin

// serega.cin is the numerical C++ implementation of functions // Serega function and ArcSerega.

/* //headers recommended: using namespace std; // #include"ado.cin"
 * 1) include
 * 2) include
 * 1) include
 * 1) include "conto.cin"

*/ // Warining: non-holomorphic functions below!
 * 1) define DO(x,y) for(x=0;x0){ x-=s*(1.+y); y=0.;} } DO(n,32){ r=exp(y - exp(-.5*(2.*n+8.))); c=cos(x); s=sin(x); rc=r*c; rs=r*s; X=x-rs; dX=X-X0; Y=y+rc; dY=Y-Y0; DB d=1.-r*r; d*=1.01; x-= ( (1+rc)*dX + rs *dY )/d; y-= ( rs *dX +(1-rc)*dY )/d;  if(y>0){ return z_type(99., 99.);}  //99 is errorcode; feel free to change it to anything more suitable. } return z_type(x,y); }

Keywords
Serega function, ArcSerega, C++

Cateogry:Navier–Stokes