PetscSqrtReal — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscSqrtReal

Returns the square root of a `PetscReal` value

## Synopsis

    #include <petscmath.h>
    PetscReal PetscSqrtReal(PetscReal a)

Not Collective; No Fortran Support

## Input Parameter

. a - the value

## See Also

`PetscReal`, `PetscScalar`, `PetscComplex`, `PetscSqrtComplex()`, `PetscSqrtScalar()`

## Level

beginner

## Location

include/petscmath.h

## Examples

src/ts/tutorials/ex14.c
src/ts/tutorials/ex53.c
src/snes/tutorials/ex48.c
src/ts/utils/dmplexlandau/tutorials/ex2.c
src/dm/impls/plex/tutorials/ex19.c
src/ts/utils/dmplexlandau/tutorials/ex1.c

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