This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: greatest common divisor
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Achim Gaedke <Achim dot Gaedke at physik dot tu-darmstadt dot de>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Mon, 10 Jan 2005 18:48:21 +0000
- Subject: Re: greatest common divisor
- References: <41DB440C.6010107@physik.tu-darmstadt.de>
- Reply-to: gsl-discuss at sources dot redhat dot com
Achim Gaedke writes:
> I was not able to find a standard UNIX function for the greatest common
> divisor, so I have written one. I put it into the specfunc section, but
> I am not realy sure, if it fits. Also I am not sure, if ldiv is
> available for many other systems. I could replace it by a suitable
> integer division.
What is the advantage of ldiv over % ?
--
Brian Gough