PETSc version 3.16.5
Fix/Edit manual page

# PetscMin

Returns minimum of two numbers

### Synopsis

    #include <petscmath.h>
    type PetscMin(type v1,type v2)

Not Collective

### Input Parameters

| v1 | - first value to find minimum of
| v2 | - second value to find minimum of

### Notes

type can be integer or floating point value

### See Also

PetscMax(), PetscClipInterval(), PetscAbsInt(), PetscAbsReal(), PetscSqr()

### Level

beginner

### Location

include/petscmath.h

### Examples

src/dm/impls/plex/tutorials/ex11.c.html
src/dm/impls/stag/tutorials/ex4.c.html
src/ksp/ksp/tutorials/ex70.c.html
src/snes/tutorials/ex5.c.html
src/snes/tutorials/ex14.c.html
src/snes/tutorials/ex15.c.html
src/snes/tutorials/ex17.c.html
src/snes/tutorials/ex30.c.html
src/snes/tutorials/ex48.c.html
src/snes/tutorials/ex62.c.html
src/snes/tutorials/ex69.c.html
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages