Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97035146
diff_mag.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, 20:27
Size
1 KB
Mime Type
text/x-c
Expires
Fri, Jan 3, 20:27 (2 d)
Engine
blob
Format
Raw Data
Handle
23315882
Attached To
R1448 Lenstool-HPC
diff_mag.c
View Options
#include<stdio.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
/****************************************************************/
/* nom: magfast */
/* auteur: Jean-Paul Kneib */
/* date: 10/02/92 */
/* place: Toulouse */
/****************************************************************
* Global variables used :
* - in e_grad2() : G, lens, lens_table
*/
double diff_mag(struct galaxie *arclet, struct point *guess)
{
double ampguess, A, B, C;
struct matrix MA, MG;
MA = e_grad2_gal(arclet, NULL);
MA.a /= arclet->dos;
MA.b /= arclet->dos;
MA.c /= arclet->dos;
A = 1. - MA.a;
B = -MA.b;
C = 1. - MA.c;
arclet->A = fabs(A * C - B * B);
MG = e_grad2(guess, arclet->dl0s, arclet->z);
MG.a /= arclet->dos;
MG.b /= arclet->dos;
MG.c /= arclet->dos;
A = 1. - MG.a;
B = -MG.b;
C = 1. - MG.c;
ampguess = fabs(A * C - B * B);
return( arclet->A - ampguess );
}
Event Timeline
Log In to Comment