PetscArgScalar#

Returns the argument (phase angle) of a PetscScalar value, as a PetscReal; for real PetscScalar this is 0 for nonnegative values and PETSC_PI otherwise

Synopsis#

#include <petscmath.h>
PetscReal PetscArgScalar(PetscScalar a)

Not Collective; No Fortran Support

Input Parameter#

. a - the value

See Also#

PetscReal, PetscScalar, PetscComplex

Level#

beginner

Location#

include/petscmath.h

Examples#

src/sys/tests/ex25.c


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