Blame | Last modification | View Log | Download | RSS feed
/*Copyright 2018 The R Core TeamThis file is part of the nlme package for R and related languagesand is made available under the terms of the GNU General PublicLicense, version 2, or at your option, any later version,incorporated herein by reference.This program is distributed in the hope that it will beuseful, but WITHOUT ANY WARRANTY; without even the impliedwarranty of MERCHANTABILITY or FITNESS FOR A PARTICULARPURPOSE. See the GNU General Public License for moredetails.You should have received a copy of the GNU General Public Licensealong with this program; if not, a copy is available athttp://www.r-project.org/Licenses/*//*Replaces FORTRAN version in rs.f which did not handle special valuessuch as NaN.return value in an arg for maximal portability -- see WRE section 6.6*/#include <R.h>#include <math.h>void F77_SUB(hypot)(double *a, double *b, double *p){*p = hypot(*a, *b);}