Actual source code: ex28.c
petsc-3.6.1 2015-08-06
2: static char help[] = "Tests PetscAtan2Real\n";
4: #include <petscsys.h>
5: #include <petscviewer.h>
6: #include <petscmath.h>
10: int main(int argc,char **argv)
11: {
13: PetscReal a;
16: PetscInitialize(&argc,&argv,(char*)0,help);
17: a = PetscAtan2Real(1.0,1.0);
18: PetscPrintf(PETSC_COMM_WORLD,"PetscAtan2Real(1.0,1.0) = %g\n",(double)a);
19: a = PetscAtan2Real(1.0,0.0);
20: PetscPrintf(PETSC_COMM_WORLD,"PetscAtan2Real(1.0,0.0) = %g\n",(double)a);
21: a = PetscAtan2Real(0.0,1.0);
22: PetscPrintf(PETSC_COMM_WORLD,"PetscAtan2Real(0.0,1.0) = %g\n",(double)a);
23: a = PetscAtan2Real(0.0,0.0);
24: PetscPrintf(PETSC_COMM_WORLD,"PetscAtan2Real(0.0,0.0) = %g\n",(double)a);
25: PetscFinalize();
26: return 0;
27: }