Subject: Re: complex number arithmetics
To: None <>
From: Berndt Josef Wulf <>
List: tech-pkg
Date: 08/08/2007 23:23:19
On Wednesday 08 August 2007 23:05:33 you wrote:
> On Wed, 8 Aug 2007, Berndt Josef Wulf wrote:
> > Linsmith is a package that makes use of complex number arithmetics. It
> > requires functions and structures as defined in complex.h and supported
> > by Linux and other platforms. For some mysterious reasons it appears to
> > missing on NetBSD.
> >
> > Is there a package that can provide these missing functions and
> > structures out of the box?
> Isn't <complex> instead of <complex.h> the way today, in conjunction with
> g++?
> Seems there's also a file for backward compat:
> /usr/include/g++/backward/complex.h
> That's for 4.0_BETA2.
>   - Hubert

These are C++ headers and the application is written in standard C. The 
complex.h man page states

Your C-compiler can work with complex numbers if it supports the C99 standard.

Some of the functions needed are:

cabs(3), carg(3), cexp(3), cimag(3), creal(3)

None of them appear to be supported within NetBSD.

cheerio Berndt