Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97127494
e_amp.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
Thu, Jan 2, 18:15
Size
1 KB
Mime Type
text/x-c
Expires
Sat, Jan 4, 18:15 (2 d)
Engine
blob
Format
Raw Data
Handle
23333269
Attached To
R1448 Lenstool-HPC
e_amp.c
View Options
#include<stdio.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
/****************************************************************/
/* nom: e_amp */
/* auteur: Jean-Paul Kneib */
/* date: 10/02/92 */
/* place: Toulouse *
****************************************************************
* Return the determinant of the amplification matrix ie the amplification
* at the position position.
*
* - position is the position where to compute the amplification
* - dl0s is the distance between lens[0] and zs
* - dos is the normalised distance distcosmo1(zs)
* - zs is the redshift of the source
*
* Global variables read :
* - in e_grad2() : G, lens, lens_table
*/
double
e_amp
(
const
struct
point
*
position
,
double
dl0s
,
double
dos
,
double
zs
)
{
struct
matrix
M
;
M
=
e_grad2
(
position
,
dl0s
,
zs
);
M
.
a
/=
dos
;
M
.
b
/=
dos
;
M
.
c
/=
dos
;
return
(((
1.
-
M
.
a
)
*
(
1.
-
M
.
c
)
-
M
.
b
*
M
.
b
));
}
double
e_amp_gal
(
struct
galaxie
*
image
,
double
*
np_b0
)
{
struct
matrix
M
;
M
=
e_grad2_gal
(
image
,
np_b0
);
M
.
a
/=
image
->
dos
;
M
.
b
/=
image
->
dos
;
M
.
c
/=
image
->
dos
;
return
(((
1.
-
M
.
a
)
*
(
1.
-
M
.
c
)
-
M
.
b
*
M
.
b
));
}
Event Timeline
Log In to Comment