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

Examples#

src/sys/tests/ex28.c
src/sys/tests/ex25.c
src/dm/impls/plex/tutorials/ex19.c
src/ts/tutorials/ex48.c
src/ts/tutorials/ex77.c
src/dm/impls/da/tests/ex1.c
src/dm/impls/swarm/tests/ex5.c
src/dm/impls/swarm/tests/ex6.c
src/dm/tests/ex36.c


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