between

dolfin.cpp.function.between()

Check whether x is between x0 and x1 (inclusive, to within DOLFIN_EPS)

Parameters:
  • x (double) – (double) Value to check
  • double, double > range (std::pair<) – (std::pair<double, double>) Range to check
Return type:

bool

Returns:

bool