PetscSqr#

Returns the square of a number

Synopsis#

#include <petscmath.h>
type sqr PetscSqr(type v1)

Not Collective

Input Parameter#

  • v1 - the value

Note#

The type can be integer, floating point, or complex floating point

See Also#

PetscMax(), PetscMin(), PetscAbsInt(), PetscAbsReal()

Level#

beginner

Location#

include/petscmath.h

Examples#

src/dm/field/tutorials/ex1.c
src/dm/impls/plex/tutorials/ex6.c
src/dm/impls/stag/tutorials/ex6.c
src/dm/impls/swarm/tutorials/ex1.c
src/dm/tutorials/ex26.c
src/dm/tutorials/ex21.c
src/ksp/ksp/tutorials/ex42.c
src/ksp/ksp/tutorials/ex59.c
src/ksp/ksp/tutorials/ex74.c
src/ksp/ksp/tutorials/ex82.c


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