PetscIsCloseAtTol#

Returns whether the two PetscReal numbers are close at a given relative and absolute tolerances.

Synopsis#

Input Parameters#

  • a - first floating point number

  • b - second floating point number

  • rtol - relative tolerance

  • atol - absolute tolerances

Reference#

  • **** -*** https://www.python.org/dev/peps/pep-0485/

See Also#

PetscEqualReal(), PetscEqualScalar()

Level#

beginner

Location#

src/sys/utils/mathclose.c


Edit on GitLab

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages