PetscAtan2Real — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# PetscAtan2Real

Returns the arc tangent of `a/b`, in the range \([-\pi, \pi]\), using the signs of `a` and `b` to select the quadrant

## Synopsis

    #include <petscmath.h>
    PetscReal PetscAtan2Real(PetscReal a, PetscReal b)

Not Collective; No Fortran Support

## Input Parameters

- a - the value

- b - the value

## See Also

`PetscReal`, `PetscScalar`, `PetscComplex`

## Level

beginner

## Location

include/petscmath.h

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