2004-11-03 13:51:07 +00:00
|
|
|
.\" Copyright 2003 Walter Harms, Andries Brouwer
|
|
|
|
.\" Distributed under GPL.
|
|
|
|
.\"
|
2007-05-18 08:43:42 +00:00
|
|
|
.TH FDIM 3 2003-07-24 "" "Linux Programmer's Manual"
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH NAME
|
|
|
|
fdim, fdimf, fdiml \- positive difference
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B #include <math.h>
|
|
|
|
.sp
|
|
|
|
.BI "double fdim(double " x ", double " y );
|
2004-11-11 17:28:42 +00:00
|
|
|
.br
|
2004-11-03 13:51:07 +00:00
|
|
|
.BI "float fdimf(float " x ", float " y );
|
2004-11-11 17:28:42 +00:00
|
|
|
.br
|
2004-11-03 13:51:07 +00:00
|
|
|
.BI "long double fdiml(long double " x ", long double " y );
|
|
|
|
.sp
|
2007-05-21 09:56:00 +00:00
|
|
|
Compile with \fI\-std=c99\fP; link with \fI\-lm\fP.
|
2004-11-03 13:51:07 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
These functions return max(\fIx\fP-\fIy\fP,0).
|
|
|
|
If
|
|
|
|
.I x
|
|
|
|
or
|
|
|
|
.I y
|
|
|
|
or both are NaN, Nan is returned.
|
|
|
|
.SH "CONFORMING TO"
|
|
|
|
C99
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR fmax (3)
|