Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96691846
norm_angle.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Dec 29, 21:30
Size
361 B
Mime Type
text/x-c
Expires
Tue, Dec 31, 21:30 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23226171
Attached To
R1448 Lenstool-HPC
norm_angle.c
View Options
#include<stdio.h>
#include<math.h>
#include "fonction.h"
#include "constant.h"
#include"dimension.h"
#include "structure.h"
double
norm_angle
(
double
theta
,
double
npi
)
{
double
N
;
double
t
,
d
;
int
n
;
n
=
(
int
)
(
theta
/
npi
);
N
=
n
;
d
=
theta
-
N
*
npi
;
if
(
d
>
.5
*
npi
)
N
+=
1.
;
t
=
theta
-
N
*
npi
;
return
(
t
);
}
Event Timeline
Log In to Comment