Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99215645
slope.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 22, 11:26
Size
813 B
Mime Type
text/x-c
Expires
Fri, Jan 24, 11:26 (2 d)
Engine
blob
Format
Raw Data
Handle
23745774
Attached To
R1448 Lenstool-HPC
slope.c
View Options
#include<stdio.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
/****************************************************************/
/* nom: slope */
/* auteur: Jean-Paul Kneib */
/* date: 10/02/92 */
/* place: Toulouse */
/* */
/* determination de la pente entre 2 points */
/****************************************************************/
double slope(double x0, double y0, double x1, double y1)
{
const extern struct g_mode M;
if (x0 != x1)
return((y1 - y0) / (x1 - x0));
else
{
NPRINTF(stderr, "WARNING: slope not determined [%lf,%lf], 0. assumed\n", x0, x1);
return(x1 - x0);
}
}
Event Timeline
Log In to Comment