petsc-3.14.6 2021-03-30
Report Typos and Errors

PetscSqr

Returns the square of a number

Synopsis

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

Input Parameter

v1 - the value

Notes

type can be integer or floating point value

See Also

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

Level

beginner

Location

include/petscmath.h

Examples

src/dm/impls/plex/tutorials/ex6.c.html
src/dm/field/tutorials/ex1.c.html
src/ksp/ksp/tutorials/ex43.c.html
src/ksp/ksp/tutorials/ex74.c.html
src/snes/tutorials/ex5.c.html
src/snes/tutorials/ex12.c.html
src/snes/tutorials/ex15.c.html
src/snes/tutorials/ex17.c.html
src/snes/tutorials/ex28.c.html
src/snes/tutorials/ex48.c.html
src/snes/tutorials/ex62.c.html

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