Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97282834
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
Sat, Jan 4, 00:57
Size
813 B
Mime Type
text/x-c
Expires
Mon, Jan 6, 00:57 (2 d)
Engine
blob
Format
Raw Data
Handle
23372659
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