:orphan: # PetscSqr Returns the square of a number ## Synopsis ``` #include type sqr PetscSqr(type v1) ``` Not Collective ## Input Parameter - ***v1 -*** the value ## Note The type can be integer or floating point value ## 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/swarm/tutorials/ex1.c
src/ksp/ksp/tutorials/ex43.c
src/ksp/ksp/tutorials/ex74.c
src/snes/tutorials/ex12.c
src/snes/tutorials/ex13.c
src/snes/tutorials/ex15.c
src/snes/tutorials/ex17.c
src/snes/tutorials/ex20.c
src/snes/tutorials/ex26.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscmath.h) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)