Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98705455
iter.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 15, 19:05
Size
720 B
Mime Type
text/x-c
Expires
Fri, Jan 17, 19:05 (2 d)
Engine
blob
Format
Raw Data
Handle
23628349
Attached To
R1448 Lenstool-HPC
iter.c
View Options
#include<stdio.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
/****************************************************************/
/* nom: ctimp */
/* auteur: Jean-Paul Kneib */
/* date: 10/02/92 */
/* place: Toulouse */
/****************************************************************/
double
iter
(
double
phi0
,
double
coeur
,
double
ct
)
{
double
newct
;
newct
=
sqrt
(
phi0
/
2.
*
log
(
1.
+
ct
*
ct
/
coeur
/
coeur
));
if
(
fabs
(
newct
-
ct
)
<
1e-4
)
return
(
newct
);
else
ct
=
iter
(
phi0
,
coeur
,
newct
);
return
0.
;
//just to avoid the warning
}
Event Timeline
Log In to Comment