PetscIsCloseAtTol#
Returns whether the two PetscReal numbers are close at a given relative and absolute tolerances https://www.python.org/dev/peps/pep-0485/.
Synopsis#
Input Parameters#
a - first floating point number
b - second floating point number
rtol - relative tolerance
atol - absolute tolerances
See Also#
PetscIsCloseAtTolScalar(), PetscEqualReal(), PetscEqualScalar()
Level#
beginner
Location#
Examples#
src/sys/tests/ex39.c
src/mat/tests/ex261.c
src/ts/event/tests/ex3span.c
src/ts/tests/ex29.c
src/vec/vec/tests/ex28.c
src/vec/vec/tests/ex31.c
src/vec/vec/tests/ex37.c
src/vec/vec/tests/ex63.c
src/vec/vec/tests/ex64.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages