Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96627503
e_time.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, 04:58
Size
921 B
Mime Type
text/x-c
Expires
Tue, Dec 31, 04:58 (2 d)
Engine
blob
Format
Raw Data
Handle
23218450
Attached To
R1448 Lenstool-HPC
e_time.c
View Options
#include<stdio.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
/****************************************************************/
/* nom: e_time */
/* auteur: Jean-Paul Kneib */
/* date: 10/02/92 */
/* place: Toulouse */
/****************************************************************
* Return the time delay at point <pi>
*/
double e_time(struct point pi, double dlsds)
{
const extern struct pot lens[];
const extern struct g_cosmo C;
double cst, dl, time;
struct point gr;
dl = distcosmo1(lens[0].z);
cst = (1 + lens[0].z) * dl / dlsds * th_a2_day / C.h; /* time delay in days */
gr = e_grad(&pi);
gr.x *= dlsds;
gr.y *= dlsds;
time = cst * ((gr.x * gr.x + gr.y * gr.y) / 2. - e_pot(pi, dlsds));
return(time);
}
Event Timeline
Log In to Comment