complex math functions

Oliver Fromme olli at lurza.secnetix.de
Tue Mar 6 10:45:54 UTC 2007


ff b <fred1z at hotmail.com> wrote:
 > I'm facing a problem while compiling math libraries because math functions 
 > on
 > complex numbers seems not to be present on freebsd :
 > http://lists.freebsd.org/pipermail/freebsd-questions/2007-March/143759.html
 > 
 > Greping the headers, I didn't find more than basic complex numbers 
 > manipulation.
 > No trigonometric/exponential functions.
 > This subject has been discussed in technical terms a long time ago, but I 
 > couldn't find
 > any files, modifications related to this in libm :
 > http://lists.freebsd.org/mailman/htdig/freebsd-standards/2005-September/001043.html
 > 
 > What is currently the status of complex math functions in freebsd ?

Near to non-existent, I'm afraid.

However, you might want to have a look at ports/math/ccmath.
It contains implementations of all the usual complex
functions.  It's under LGPL which isn't perfect, but at
least you can link it to BSD-licensed programs.

I think the algorithmic quality of the implementation isn't
very good either, but it "worked for me" when I needed the
complex functions in order to compile another third-party
program.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart
Any opinions expressed in this message are personal to the author and may
not necessarily reflect the opinions of secnetix GmbH & Co KG in any way.
FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"Clear perl code is better than unclear awk code; but NOTHING
comes close to unclear perl code"  (taken from comp.lang.awk FAQ)


More information about the freebsd-standards mailing list