LISOUSI: Line Source Simulation

◆ sqrtfct()

double sqrtfct ( const double &  psample,
const double &  v 
)
inline

Helper function to save sign problems in sqrt function must not be called where sqrt argument would be negative

Definition at line 112 of file fcsingleforce.cc.

Referenced by zflinefc().

113 {
114  double retval;
115  double arg=(v*v*psample*psample)-1.;
116  TFXX_assert(arg>=0., "negative argument of sqrt: "
117  "programming error - check source code!");
118  retval=sqrt(arg)/v;
119  return (retval);
120 }
Here is the caller graph for this function: