Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96961832
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
Wed, Jan 1, 03:32
Size
361 B
Mime Type
text/x-c
Expires
Fri, Jan 3, 03:32 (2 d)
Engine
blob
Format
Raw Data
Handle
23300266
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