Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97269016
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
Fri, Jan 3, 22:26
Size
921 B
Mime Type
text/x-c
Expires
Sun, Jan 5, 22:26 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23370218
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