PetscAbsReal#

Returns the absolute value of an real number

Synopsis#

#include <petscmath.h>
Real abs PetscAbsReal(PetscReal v1)

Input Parameter#

  • v1 - the double

See Also#

PetscMax(), PetscMin(), PetscAbsInt(), PetscSqr()

Level#

beginner

Location#

include/petscmath.h

Examples#

src/mat/tutorials/ex3.c.html
src/dm/impls/stag/tutorials/ex4.c.html
src/dm/tutorials/ex15.c.html
src/ksp/ksp/tutorials/ex51.c.html
src/snes/tutorials/ex12.c.html
src/snes/tutorials/ex13.c.html
src/snes/tutorials/ex15.c.html
src/snes/tutorials/ex30.c.html
src/snes/tutorials/ex55.c.html
src/snes/tutorials/ex5.c.html
src/ts/tutorials/ex11.c.html


Edit on GitLab

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