diff options
author | jofret | 2007-09-11 16:02:09 +0000 |
---|---|---|
committer | jofret | 2007-09-11 16:02:09 +0000 |
commit | a6e5fe5da63ed2dd8db74504075abacd2d557754 (patch) | |
tree | 6b42401bfecf6fb89a170862b184de119eebc1ee /src | |
parent | 110650613fca7f68c4e683c7fb1b4cc0eb9279ee (diff) | |
download | scilab2c-a6e5fe5da63ed2dd8db74504075abacd2d557754.tar.gz scilab2c-a6e5fe5da63ed2dd8db74504075abacd2d557754.tar.bz2 scilab2c-a6e5fe5da63ed2dd8db74504075abacd2d557754.zip |
End of prototyping all elementary functions.
Just need some code (wait for an internship).
Diffstat (limited to 'src')
70 files changed, 5348 insertions, 0 deletions
diff --git a/src/elementaryFunctions/acosh/Makefile.am b/src/elementaryFunctions/acosh/Makefile.am new file mode 100644 index 00000000..3baa123e --- /dev/null +++ b/src/elementaryFunctions/acosh/Makefile.am @@ -0,0 +1,54 @@ +## +## -*- makefile -*- +## +## Makefile +## Made by Bruno JOFRET <bruno.jofret@inria.fr> +## +## Started on Fri Jan 5 10:19:16 2007 jofret +## Last update Thu Sep 6 10:33:56 2007 bruno +## +## Copyright INRIA 2007 +## + +AM_CFLAGS = -I ../../type \ + -I ../includes + +instdir = $(top_builddir)/lib + +inst_LIBRARIES = libAcosh.a + +noinst_LIBRARIES = libAcosh.a + +libAcosh_a_SOURCES = $(HEAD) $(SRC) + +SRC = sacoshs.c \ + dacoshs.c \ + cacoshs.c \ + zacoshs.c \ + sacosha.c \ + dacosha.c \ + cacosha.c \ + zacosha.c + +HEAD = ../includes/acosh.h + +#### +# Checking Part +#### + +check_INCLUDES = -I $(top_builddir)/elementaryFunctions/includes \ + -I $(top_builddir)/type + +check_PROGRAMS = testAcosh + +TESTS = testAcosh + +# +# -*- Hyperbolic Acosine Tests -*- +# +testAcosh_SOURCES = testAcosh.c +testAcosh_CFLAG = $(check_INCLUDES) +testAcosh_LDADD = $(top_builddir)/lib/libDoubleComplex.a \ + $(top_builddir)/lib/libFloatComplex.a \ + $(top_builddir)/lib/libAcosh.a \ + @LIBMATH@
\ No newline at end of file diff --git a/src/elementaryFunctions/acosh/Makefile.in b/src/elementaryFunctions/acosh/Makefile.in new file mode 100644 index 00000000..3a5a25be --- /dev/null +++ b/src/elementaryFunctions/acosh/Makefile.in @@ -0,0 +1,583 @@ +# Makefile.in generated by automake 1.10 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +check_PROGRAMS = testAcosh$(EXEEXT) +TESTS = testAcosh$(EXEEXT) +subdir = elementaryFunctions/acosh +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/fortran.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/includes/machine.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(instdir)" +instLIBRARIES_INSTALL = $(INSTALL_DATA) +LIBRARIES = $(inst_LIBRARIES) $(noinst_LIBRARIES) +AR = ar +ARFLAGS = cru +libAcosh_a_AR = $(AR) $(ARFLAGS) +libAcosh_a_LIBADD = +am__objects_1 = +am__objects_2 = sacoshs.$(OBJEXT) dacoshs.$(OBJEXT) cacoshs.$(OBJEXT) \ + zacoshs.$(OBJEXT) sacosha.$(OBJEXT) dacosha.$(OBJEXT) \ + cacosha.$(OBJEXT) zacosha.$(OBJEXT) +am_libAcosh_a_OBJECTS = $(am__objects_1) $(am__objects_2) +libAcosh_a_OBJECTS = $(am_libAcosh_a_OBJECTS) +am_testAcosh_OBJECTS = testAcosh.$(OBJEXT) +testAcosh_OBJECTS = $(am_testAcosh_OBJECTS) +testAcosh_DEPENDENCIES = $(top_builddir)/lib/libDoubleComplex.a \ + $(top_builddir)/lib/libFloatComplex.a \ + $(top_builddir)/lib/libAcosh.a +DEFAULT_INCLUDES = -I. -I$(top_builddir)/includes@am__isrc@ +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(libAcosh_a_SOURCES) $(testAcosh_SOURCES) +DIST_SOURCES = $(libAcosh_a_SOURCES) $(testAcosh_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBMATH = @LIBMATH@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AM_CFLAGS = -I ../../type \ + -I ../includes + +instdir = $(top_builddir)/lib +inst_LIBRARIES = libAcosh.a +noinst_LIBRARIES = libAcosh.a +libAcosh_a_SOURCES = $(HEAD) $(SRC) +SRC = sacoshs.c \ + dacoshs.c \ + cacoshs.c \ + zacoshs.c \ + sacosha.c \ + dacosha.c \ + cacosha.c \ + zacosha.c + +HEAD = ../includes/acosh.h + +#### +# Checking Part +#### +check_INCLUDES = -I $(top_builddir)/elementaryFunctions/includes \ + -I $(top_builddir)/type + + +# +# -*- Hyperbolic Acosine Tests -*- +# +testAcosh_SOURCES = testAcosh.c +testAcosh_CFLAG = $(check_INCLUDES) +testAcosh_LDADD = $(top_builddir)/lib/libDoubleComplex.a \ + $(top_builddir)/lib/libFloatComplex.a \ + $(top_builddir)/lib/libAcosh.a \ + @LIBMATH@ + +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign elementaryFunctions/acosh/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign elementaryFunctions/acosh/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-instLIBRARIES: $(inst_LIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(instdir)" || $(MKDIR_P) "$(DESTDIR)$(instdir)" + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(instLIBRARIES_INSTALL) '$$p' '$(DESTDIR)$(instdir)/$$f'"; \ + $(instLIBRARIES_INSTALL) "$$p" "$(DESTDIR)$(instdir)/$$f"; \ + else :; fi; \ + done + @$(POST_INSTALL) + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + p=$(am__strip_dir) \ + echo " $(RANLIB) '$(DESTDIR)$(instdir)/$$p'"; \ + $(RANLIB) "$(DESTDIR)$(instdir)/$$p"; \ + else :; fi; \ + done + +uninstall-instLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(instdir)/$$p'"; \ + rm -f "$(DESTDIR)$(instdir)/$$p"; \ + done + +clean-instLIBRARIES: + -test -z "$(inst_LIBRARIES)" || rm -f $(inst_LIBRARIES) + +clean-noinstLIBRARIES: + -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) +libAcosh.a: $(libAcosh_a_OBJECTS) $(libAcosh_a_DEPENDENCIES) + -rm -f libAcosh.a + $(libAcosh_a_AR) libAcosh.a $(libAcosh_a_OBJECTS) $(libAcosh_a_LIBADD) + $(RANLIB) libAcosh.a + +clean-checkPROGRAMS: + -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS) +testAcosh$(EXEEXT): $(testAcosh_OBJECTS) $(testAcosh_DEPENDENCIES) + @rm -f testAcosh$(EXEEXT) + $(LINK) $(testAcosh_OBJECTS) $(testAcosh_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cacosha.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cacoshs.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dacosha.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dacoshs.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sacosha.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sacoshs.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testAcosh.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zacosha.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zacoshs.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +check-TESTS: $(TESTS) + @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \ + srcdir=$(srcdir); export srcdir; \ + list=' $(TESTS) '; \ + if test -n "$$list"; then \ + for tst in $$list; do \ + if test -f ./$$tst; then dir=./; \ + elif test -f $$tst; then dir=; \ + else dir="$(srcdir)/"; fi; \ + if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ + all=`expr $$all + 1`; \ + case " $(XFAIL_TESTS) " in \ + *$$ws$$tst$$ws*) \ + xpass=`expr $$xpass + 1`; \ + failed=`expr $$failed + 1`; \ + echo "XPASS: $$tst"; \ + ;; \ + *) \ + echo "PASS: $$tst"; \ + ;; \ + esac; \ + elif test $$? -ne 77; then \ + all=`expr $$all + 1`; \ + case " $(XFAIL_TESTS) " in \ + *$$ws$$tst$$ws*) \ + xfail=`expr $$xfail + 1`; \ + echo "XFAIL: $$tst"; \ + ;; \ + *) \ + failed=`expr $$failed + 1`; \ + echo "FAIL: $$tst"; \ + ;; \ + esac; \ + else \ + skip=`expr $$skip + 1`; \ + echo "SKIP: $$tst"; \ + fi; \ + done; \ + if test "$$failed" -eq 0; then \ + if test "$$xfail" -eq 0; then \ + banner="All $$all tests passed"; \ + else \ + banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ + fi; \ + else \ + if test "$$xpass" -eq 0; then \ + banner="$$failed of $$all tests failed"; \ + else \ + banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ + fi; \ + fi; \ + dashes="$$banner"; \ + skipped=""; \ + if test "$$skip" -ne 0; then \ + skipped="($$skip tests were not run)"; \ + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ + dashes="$$skipped"; \ + fi; \ + report=""; \ + if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ + report="Please report to $(PACKAGE_BUGREPORT)"; \ + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ + dashes="$$report"; \ + fi; \ + dashes=`echo "$$dashes" | sed s/./=/g`; \ + echo "$$dashes"; \ + echo "$$banner"; \ + test -z "$$skipped" || echo "$$skipped"; \ + test -z "$$report" || echo "$$report"; \ + echo "$$dashes"; \ + test "$$failed" -eq 0; \ + else :; fi + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) + $(MAKE) $(AM_MAKEFLAGS) check-TESTS +check: check-am +all-am: Makefile $(LIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(instdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-checkPROGRAMS clean-generic clean-instLIBRARIES \ + clean-noinstLIBRARIES mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-instLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-instLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ + clean-checkPROGRAMS clean-generic clean-instLIBRARIES \ + clean-noinstLIBRARIES ctags distclean distclean-compile \ + distclean-generic distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-instLIBRARIES install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ + uninstall-am uninstall-instLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/elementaryFunctions/acosh/cacosha.c b/src/elementaryFunctions/acosh/cacosha.c new file mode 100644 index 00000000..2191ab31 --- /dev/null +++ b/src/elementaryFunctions/acosh/cacosha.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** cacosha.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 10:23:49 2007 jofret +** Last update Thu Sep 6 10:44:18 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "acosh.h" + +void cacosha(floatComplex* x, floatComplex* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = cacoshs(x[i]); + } +} diff --git a/src/elementaryFunctions/acosh/cacoshs.c b/src/elementaryFunctions/acosh/cacoshs.c new file mode 100644 index 00000000..6fa0ebf3 --- /dev/null +++ b/src/elementaryFunctions/acosh/cacoshs.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** cacoshs.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 11:29:45 2007 jofret +** Last update Thu Sep 6 10:44:09 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "acosh.h" + +floatComplex cacoshs(floatComplex z) { + /* FIXME: Dummy... */ + return z; +} diff --git a/src/elementaryFunctions/acosh/dacosha.c b/src/elementaryFunctions/acosh/dacosha.c new file mode 100644 index 00000000..27536bcb --- /dev/null +++ b/src/elementaryFunctions/acosh/dacosha.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** dacosha.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 11:29:20 2007 jofret +** Last update Thu Sep 6 10:43:55 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "acosh.h" + +void dacosha(double* x, double* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = dacoshs(x[i]); + } +} diff --git a/src/elementaryFunctions/acosh/dacoshs.c b/src/elementaryFunctions/acosh/dacoshs.c new file mode 100644 index 00000000..3d60f07e --- /dev/null +++ b/src/elementaryFunctions/acosh/dacoshs.c @@ -0,0 +1,19 @@ +/* +** -*- C -*- +** +** dacoshs.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 10:26:21 2007 jofret +** Last update Thu Sep 6 10:43:39 2007 bruno +** +** Copyright INRIA 2007 +*/ + + +#include <math.h> +#include "acosh.h" + +double dacoshs(double x) { + return (acosh(x)); +} diff --git a/src/elementaryFunctions/acosh/sacosha.c b/src/elementaryFunctions/acosh/sacosha.c new file mode 100644 index 00000000..c0c21ad5 --- /dev/null +++ b/src/elementaryFunctions/acosh/sacosha.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** sacosha.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 10:25:57 2007 jofret +** Last update Thu Sep 6 10:43:26 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "acosh.h" + +void sacosha(float* x, float* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = sacoshs(x[i]); + } +} diff --git a/src/elementaryFunctions/acosh/sacoshs.c b/src/elementaryFunctions/acosh/sacoshs.c new file mode 100644 index 00000000..4163cb22 --- /dev/null +++ b/src/elementaryFunctions/acosh/sacoshs.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** sacoshs.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 10:25:44 2007 jofret +** Last update Thu Sep 6 10:43:12 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include <math.h> +#include "acosh.h" + +float sacoshs(float x) { + return (acosh(x)); +} diff --git a/src/elementaryFunctions/acosh/testAcosh.c b/src/elementaryFunctions/acosh/testAcosh.c new file mode 100644 index 00000000..8681dc60 --- /dev/null +++ b/src/elementaryFunctions/acosh/testAcosh.c @@ -0,0 +1,150 @@ +/* +** -*- C -*- +** +** testAcosh.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Dec 8 15:05:44 2006 jofret +** Last update Thu Sep 6 10:42:52 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "testAcosh.h" + +void sacoshsTest(void) { + printf(">> Float scalar\n"); + printf("sacoshs(0) = %f\n", sacoshs((float) 0)); + printf("sacoshs(PI) = %f\n", sacoshs(PI)); + printf("sacoshs(PI/2) = %f\n", sacoshs(PI/2)); + printf("sacoshs(PI/3) = %f\n", sacoshs(PI/3)); + printf("sacoshs(PI/4) = %f\n", sacoshs(PI/4)); + printf("sacoshs(PI/6) = %f\n", sacoshs(PI/6)); + printf("sacoshs(-PI) = %f\n", sacoshs(-PI)); + printf("sacoshs(-PI/2) = %f\n", sacoshs(-PI/2)); + printf("sacoshs(-PI/3) = %f\n", sacoshs(-PI/3)); + printf("sacoshs(-PI/4) = %f\n", sacoshs(-PI/4)); + printf("sacoshs(-PI/6) = %f\n", sacoshs(-PI/6)); +} + +void dacoshsTest(void) { + printf(">> Double scalar\n"); + printf("dacoshs(0) = %e\n", dacoshs((double) 0)); + printf("dacoshs(PI) = %e\n", dacoshs(PI)); + printf("dacoshs(PI/2) = %e\n", dacoshs(PI/2)); + printf("dacoshs(PI/3) = %e\n", dacoshs(PI/3)); + printf("dacoshs(PI/4) = %e\n", dacoshs(PI/4)); + printf("dacoshs(PI/6) = %e\n", dacoshs(PI/6)); + printf("dacoshs(-PI) = %e\n", dacoshs(-PI)); + printf("dacoshs(-PI/2) = %e\n", dacoshs(-PI/2)); + printf("dacoshs(-PI/3) = %e\n", dacoshs(-PI/3)); + printf("dacoshs(-PI/4) = %e\n", dacoshs(-PI/4)); + printf("dacoshs(-PI/6) = %e\n", dacoshs(-PI/6)); +} + +void cacoshsTest(void) { + floatComplex pi_pi = FloatComplex(PI, PI); + floatComplex pi_2_pi_2 = FloatComplex(PI/2, PI/2); + floatComplex pi_2_pi_3 = FloatComplex(PI/2, PI/3); + floatComplex pi_2_pi_4 = FloatComplex(PI/2, PI/4); + floatComplex out; + + printf(">> Float Complex scalar\n"); + out = cacoshs(pi_pi); + printf("cacoshs(PI + I*PI) = %f + I * %f\n", creals(out), cimags(out)); + out = cacoshs(pi_2_pi_2); + printf("cacoshs(PI/2 + I*PI/2) = %f + I * %f\n", creals(out), cimags(out)); + out = cacoshs(pi_2_pi_3); + printf("cacoshs(PI/2 + I*PI/3) = %f + I * %f\n", creals(out), cimags(out)); + out = cacoshs(pi_2_pi_4); + printf("cacoshs(PI/2 + I*PI/4) = %f + I * %f\n", creals(out), cimags(out)); +} + +void zacoshsTest(void) { + doubleComplex pi_pi = DoubleComplex(PI, PI); + doubleComplex pi_2_pi_2 = DoubleComplex(PI/2, PI/2); + doubleComplex pi_2_pi_3 = DoubleComplex(PI/2, PI/3); + doubleComplex pi_2_pi_4 = DoubleComplex(PI/2, PI/4); + doubleComplex out; + + printf(">> Double Complex scalar\n"); + out = zacoshs(pi_pi); + printf("zacoshs(PI + I*PI) = %e + I * %e\n", zreals(out), zimags(out)); + out = zacoshs(pi_2_pi_2); + printf("zacoshs(PI/2 + I*PI/2) = %e + I * %e\n", zreals(out), zimags(out)); + out = zacoshs(pi_2_pi_3); + printf("zacoshs(PI/2 + I*PI/3) = %e + I * %e\n", zreals(out), zimags(out)); + out = zacoshs(pi_2_pi_4); + printf("zacoshs(PI/2 + I*PI/4) = %e + I * %e\n", zreals(out), zimags(out)); +} + +void sacoshaTest(void) { + float out[5]; + float in[5] = {PI, PI/2, PI/3, PI/4, PI/6}; + int i = 0; + + printf(">> Float array\n"); + sacosha(in, out, 5); + for (i = 0 ; i < 5 ; ++i) + printf("sacosha(array) = %f\n", out[i]); +} + +void dacoshaTest(void) { + double out[5]; + double in[5] = {PI, PI/2, PI/3, PI/4, PI/6}; + int i = 0; + + printf(">> Double Array\n"); + dacosha(in, out, 5); + for (i = 0 ; i < 5 ; ++i) + printf("sacosha(array) = %f\n", out[i]); + +} + +void cacoshaTest(void) { + floatComplex pi_pi = FloatComplex(PI, PI); + floatComplex pi_2_pi_2 = FloatComplex(PI/2, PI/2); + floatComplex pi_2_pi_3 = FloatComplex(PI/2, PI/3); + floatComplex pi_2_pi_4 = FloatComplex(PI/2, PI/4); + floatComplex in[4] = {pi_pi, pi_2_pi_2, pi_2_pi_3, pi_2_pi_4}; + floatComplex out[4]; + int i = 0; + + cacosha(in, out, 4); + printf(">> Float Complex Array\n"); + for (i = 0 ; i < 4 ; ++i) + printf("cacosha(array) = %e + I * %e\n", creals(out[i]), cimags(out[i])); +} + +void zacoshaTest(void) { + doubleComplex pi_pi = DoubleComplex(PI, PI); + doubleComplex pi_2_pi_2 = DoubleComplex(PI/2, PI/2); + doubleComplex pi_2_pi_3 = DoubleComplex(PI/2, PI/3); + doubleComplex pi_2_pi_4 = DoubleComplex(PI/2, PI/4); + doubleComplex in[4] = {pi_pi, pi_2_pi_2, pi_2_pi_3, pi_2_pi_4 }; + doubleComplex out[4]; + int i = 0; + + zacosha(in, out, 4); + printf(">> Double Complex Array\n"); + for (i = 0 ; i < 4 ; ++i) + printf("zacosha(array) = %e + I * %e\n", zreals(out[i]), zimags(out[i])); +} + +int testAcosh(void) { + printf("\n>>>> ArcCoshine Tests\n"); + sacoshsTest(); + dacoshsTest(); + cacoshsTest(); + zacoshsTest(); + sacoshaTest(); + dacoshaTest(); + cacoshaTest(); + zacoshaTest(); + return 0; +} + +int main(void) { + assert(testAcosh() == 0); + return 0; +} diff --git a/src/elementaryFunctions/acosh/testAcosh.h b/src/elementaryFunctions/acosh/testAcosh.h new file mode 100644 index 00000000..4377b0f8 --- /dev/null +++ b/src/elementaryFunctions/acosh/testAcosh.h @@ -0,0 +1,40 @@ +/* +** -*- C -*- +** +** testAcosh.h +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Mon Mar 26 16:33:11 2007 jofret +** Last update Thu Sep 6 10:41:54 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#ifndef _TESTACOSH_H_ +#define _TESTACOSH_H_ + +#include <stdio.h> +#include <assert.h> +#include "acosh.h" +#include "constant.h" + + +void sacoshsTest(void); + +void dacoshsTest(void); + +void cacoshsTest(void); + +void zacoshsTest(void); + +void sacoshaTest(void); + +void dacoshaTest(void); + +void cacoshaTest(void); + +void zacoshaTest(void); + +int testAcosh(void); + +#endif /* ! _TESTACOSH_H_ */ diff --git a/src/elementaryFunctions/acosh/zacosha.c b/src/elementaryFunctions/acosh/zacosha.c new file mode 100644 index 00000000..1fca9a3d --- /dev/null +++ b/src/elementaryFunctions/acosh/zacosha.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** zacosha.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 10:25:14 2007 jofret +** Last update Thu Sep 6 10:42:27 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "acosh.h" + +void zacosha(doubleComplex* x, doubleComplex* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = zacoshs(x[i]); + } +} diff --git a/src/elementaryFunctions/acosh/zacoshs.c b/src/elementaryFunctions/acosh/zacoshs.c new file mode 100644 index 00000000..31929163 --- /dev/null +++ b/src/elementaryFunctions/acosh/zacoshs.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** zacoshs.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 10:24:38 2007 jofret +** Last update Thu Sep 6 10:42:12 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "acosh.h" + +doubleComplex zacoshs(doubleComplex z) { + /* FIXME: Dummy... */ + return (DoubleComplex(0,1)); +} diff --git a/src/elementaryFunctions/asinh/Makefile.am b/src/elementaryFunctions/asinh/Makefile.am new file mode 100644 index 00000000..7a36d182 --- /dev/null +++ b/src/elementaryFunctions/asinh/Makefile.am @@ -0,0 +1,54 @@ +## +## -*- makefile -*- +## +## Makefile +## Made by Bruno JOFRET <bruno.jofret@inria.fr> +## +## Started on Fri Jan 5 10:19:16 2007 jofret +## Last update Thu Sep 6 11:18:16 2007 bruno +## +## Copyright INRIA 2007 +## + +AM_CFLAGS = -I ../../type \ + -I ../includes + +instdir = $(top_builddir)/lib + +inst_LIBRARIES = libAsinh.a + +noinst_LIBRARIES = libAsinh.a + +libAsinh_a_SOURCES = $(HEAD) $(SRC) + +SRC = sasinhs.c \ + dasinhs.c \ + casinhs.c \ + zasinhs.c \ + sasinha.c \ + dasinha.c \ + casinha.c \ + zasinha.c + +HEAD = ../includes/asinh.h + +#### +# Checking Part +#### + +check_INCLUDES = -I $(top_builddir)/elementaryFunctions/includes \ + -I $(top_builddir)/type + +check_PROGRAMS = testAsinh + +TESTS = testAsinh + +# +# -*- Hyperbolic ArcSine Tests -*- +# +testAsinh_SOURCES = testAsinh.c +testAsinh_CFLAGS = $(check_INCLUDES) +testAsinh_LDADD = $(top_builddir)/lib/libDoubleComplex.a \ + $(top_builddir)/lib/libFloatComplex.a \ + $(top_builddir)/lib/libAsinh.a \ + @LIBMATH@
\ No newline at end of file diff --git a/src/elementaryFunctions/asinh/Makefile.in b/src/elementaryFunctions/asinh/Makefile.in new file mode 100644 index 00000000..9752aa4f --- /dev/null +++ b/src/elementaryFunctions/asinh/Makefile.in @@ -0,0 +1,599 @@ +# Makefile.in generated by automake 1.10 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +check_PROGRAMS = testAsinh$(EXEEXT) +TESTS = testAsinh$(EXEEXT) +subdir = elementaryFunctions/asinh +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/fortran.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/includes/machine.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(instdir)" +instLIBRARIES_INSTALL = $(INSTALL_DATA) +LIBRARIES = $(inst_LIBRARIES) $(noinst_LIBRARIES) +AR = ar +ARFLAGS = cru +libAsinh_a_AR = $(AR) $(ARFLAGS) +libAsinh_a_LIBADD = +am__objects_1 = +am__objects_2 = sasinhs.$(OBJEXT) dasinhs.$(OBJEXT) casinhs.$(OBJEXT) \ + zasinhs.$(OBJEXT) sasinha.$(OBJEXT) dasinha.$(OBJEXT) \ + casinha.$(OBJEXT) zasinha.$(OBJEXT) +am_libAsinh_a_OBJECTS = $(am__objects_1) $(am__objects_2) +libAsinh_a_OBJECTS = $(am_libAsinh_a_OBJECTS) +am_testAsinh_OBJECTS = testAsinh-testAsinh.$(OBJEXT) +testAsinh_OBJECTS = $(am_testAsinh_OBJECTS) +testAsinh_DEPENDENCIES = $(top_builddir)/lib/libDoubleComplex.a \ + $(top_builddir)/lib/libFloatComplex.a \ + $(top_builddir)/lib/libAsinh.a +testAsinh_LINK = $(CCLD) $(testAsinh_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +DEFAULT_INCLUDES = -I. -I$(top_builddir)/includes@am__isrc@ +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(libAsinh_a_SOURCES) $(testAsinh_SOURCES) +DIST_SOURCES = $(libAsinh_a_SOURCES) $(testAsinh_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBMATH = @LIBMATH@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AM_CFLAGS = -I ../../type \ + -I ../includes + +instdir = $(top_builddir)/lib +inst_LIBRARIES = libAsinh.a +noinst_LIBRARIES = libAsinh.a +libAsinh_a_SOURCES = $(HEAD) $(SRC) +SRC = sasinhs.c \ + dasinhs.c \ + casinhs.c \ + zasinhs.c \ + sasinha.c \ + dasinha.c \ + casinha.c \ + zasinha.c + +HEAD = ../includes/asinh.h + +#### +# Checking Part +#### +check_INCLUDES = -I $(top_builddir)/elementaryFunctions/includes \ + -I $(top_builddir)/type + + +# +# -*- Hyperbolic ArcSine Tests -*- +# +testAsinh_SOURCES = testAsinh.c +testAsinh_CFLAGS = $(check_INCLUDES) +testAsinh_LDADD = $(top_builddir)/lib/libDoubleComplex.a \ + $(top_builddir)/lib/libFloatComplex.a \ + $(top_builddir)/lib/libAsinh.a \ + @LIBMATH@ + +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign elementaryFunctions/asinh/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign elementaryFunctions/asinh/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-instLIBRARIES: $(inst_LIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(instdir)" || $(MKDIR_P) "$(DESTDIR)$(instdir)" + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(instLIBRARIES_INSTALL) '$$p' '$(DESTDIR)$(instdir)/$$f'"; \ + $(instLIBRARIES_INSTALL) "$$p" "$(DESTDIR)$(instdir)/$$f"; \ + else :; fi; \ + done + @$(POST_INSTALL) + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + p=$(am__strip_dir) \ + echo " $(RANLIB) '$(DESTDIR)$(instdir)/$$p'"; \ + $(RANLIB) "$(DESTDIR)$(instdir)/$$p"; \ + else :; fi; \ + done + +uninstall-instLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(instdir)/$$p'"; \ + rm -f "$(DESTDIR)$(instdir)/$$p"; \ + done + +clean-instLIBRARIES: + -test -z "$(inst_LIBRARIES)" || rm -f $(inst_LIBRARIES) + +clean-noinstLIBRARIES: + -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) +libAsinh.a: $(libAsinh_a_OBJECTS) $(libAsinh_a_DEPENDENCIES) + -rm -f libAsinh.a + $(libAsinh_a_AR) libAsinh.a $(libAsinh_a_OBJECTS) $(libAsinh_a_LIBADD) + $(RANLIB) libAsinh.a + +clean-checkPROGRAMS: + -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS) +testAsinh$(EXEEXT): $(testAsinh_OBJECTS) $(testAsinh_DEPENDENCIES) + @rm -f testAsinh$(EXEEXT) + $(testAsinh_LINK) $(testAsinh_OBJECTS) $(testAsinh_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/casinha.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/casinhs.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dasinha.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dasinhs.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sasinha.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sasinhs.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testAsinh-testAsinh.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zasinha.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zasinhs.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +testAsinh-testAsinh.o: testAsinh.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testAsinh_CFLAGS) $(CFLAGS) -MT testAsinh-testAsinh.o -MD -MP -MF $(DEPDIR)/testAsinh-testAsinh.Tpo -c -o testAsinh-testAsinh.o `test -f 'testAsinh.c' || echo '$(srcdir)/'`testAsinh.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/testAsinh-testAsinh.Tpo $(DEPDIR)/testAsinh-testAsinh.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testAsinh.c' object='testAsinh-testAsinh.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testAsinh_CFLAGS) $(CFLAGS) -c -o testAsinh-testAsinh.o `test -f 'testAsinh.c' || echo '$(srcdir)/'`testAsinh.c + +testAsinh-testAsinh.obj: testAsinh.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testAsinh_CFLAGS) $(CFLAGS) -MT testAsinh-testAsinh.obj -MD -MP -MF $(DEPDIR)/testAsinh-testAsinh.Tpo -c -o testAsinh-testAsinh.obj `if test -f 'testAsinh.c'; then $(CYGPATH_W) 'testAsinh.c'; else $(CYGPATH_W) '$(srcdir)/testAsinh.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/testAsinh-testAsinh.Tpo $(DEPDIR)/testAsinh-testAsinh.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testAsinh.c' object='testAsinh-testAsinh.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testAsinh_CFLAGS) $(CFLAGS) -c -o testAsinh-testAsinh.obj `if test -f 'testAsinh.c'; then $(CYGPATH_W) 'testAsinh.c'; else $(CYGPATH_W) '$(srcdir)/testAsinh.c'; fi` + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +check-TESTS: $(TESTS) + @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \ + srcdir=$(srcdir); export srcdir; \ + list=' $(TESTS) '; \ + if test -n "$$list"; then \ + for tst in $$list; do \ + if test -f ./$$tst; then dir=./; \ + elif test -f $$tst; then dir=; \ + else dir="$(srcdir)/"; fi; \ + if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ + all=`expr $$all + 1`; \ + case " $(XFAIL_TESTS) " in \ + *$$ws$$tst$$ws*) \ + xpass=`expr $$xpass + 1`; \ + failed=`expr $$failed + 1`; \ + echo "XPASS: $$tst"; \ + ;; \ + *) \ + echo "PASS: $$tst"; \ + ;; \ + esac; \ + elif test $$? -ne 77; then \ + all=`expr $$all + 1`; \ + case " $(XFAIL_TESTS) " in \ + *$$ws$$tst$$ws*) \ + xfail=`expr $$xfail + 1`; \ + echo "XFAIL: $$tst"; \ + ;; \ + *) \ + failed=`expr $$failed + 1`; \ + echo "FAIL: $$tst"; \ + ;; \ + esac; \ + else \ + skip=`expr $$skip + 1`; \ + echo "SKIP: $$tst"; \ + fi; \ + done; \ + if test "$$failed" -eq 0; then \ + if test "$$xfail" -eq 0; then \ + banner="All $$all tests passed"; \ + else \ + banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ + fi; \ + else \ + if test "$$xpass" -eq 0; then \ + banner="$$failed of $$all tests failed"; \ + else \ + banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ + fi; \ + fi; \ + dashes="$$banner"; \ + skipped=""; \ + if test "$$skip" -ne 0; then \ + skipped="($$skip tests were not run)"; \ + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ + dashes="$$skipped"; \ + fi; \ + report=""; \ + if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ + report="Please report to $(PACKAGE_BUGREPORT)"; \ + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ + dashes="$$report"; \ + fi; \ + dashes=`echo "$$dashes" | sed s/./=/g`; \ + echo "$$dashes"; \ + echo "$$banner"; \ + test -z "$$skipped" || echo "$$skipped"; \ + test -z "$$report" || echo "$$report"; \ + echo "$$dashes"; \ + test "$$failed" -eq 0; \ + else :; fi + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) + $(MAKE) $(AM_MAKEFLAGS) check-TESTS +check: check-am +all-am: Makefile $(LIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(instdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-checkPROGRAMS clean-generic clean-instLIBRARIES \ + clean-noinstLIBRARIES mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-instLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-instLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ + clean-checkPROGRAMS clean-generic clean-instLIBRARIES \ + clean-noinstLIBRARIES ctags distclean distclean-compile \ + distclean-generic distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-instLIBRARIES install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ + uninstall-am uninstall-instLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/elementaryFunctions/asinh/casinha.c b/src/elementaryFunctions/asinh/casinha.c new file mode 100644 index 00000000..f8a286fa --- /dev/null +++ b/src/elementaryFunctions/asinh/casinha.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** casinha.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 10:23:49 2007 jofret +** Last update Thu Sep 6 11:23:09 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "asinh.h" + +void casinha(floatComplex* x, floatComplex* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = casinhs(x[i]); + } +} diff --git a/src/elementaryFunctions/asinh/casinhs.c b/src/elementaryFunctions/asinh/casinhs.c new file mode 100644 index 00000000..c191de36 --- /dev/null +++ b/src/elementaryFunctions/asinh/casinhs.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** casinhs.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 11:29:45 2007 jofret +** Last update Thu Sep 6 11:23:00 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "asinh.h" + +floatComplex casinhs(floatComplex z) { + /* FIXME: Dummy... */ + return z; +} diff --git a/src/elementaryFunctions/asinh/dasinha.c b/src/elementaryFunctions/asinh/dasinha.c new file mode 100644 index 00000000..8c37ab77 --- /dev/null +++ b/src/elementaryFunctions/asinh/dasinha.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** dasinha.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 11:29:20 2007 jofret +** Last update Thu Sep 6 11:22:33 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "asinh.h" + +void dasinha(double* x, double* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = dasinhs(x[i]); + } +} diff --git a/src/elementaryFunctions/asinh/dasinhs.c b/src/elementaryFunctions/asinh/dasinhs.c new file mode 100644 index 00000000..1d55e721 --- /dev/null +++ b/src/elementaryFunctions/asinh/dasinhs.c @@ -0,0 +1,19 @@ +/* +** -*- C -*- +** +** dasinhs.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 10:26:21 2007 jofret +** Last update Thu Sep 6 11:21:22 2007 bruno +** +** Copyright INRIA 2007 +*/ + + +#include <math.h> +#include "asinh.h" + +double dasinhs(double x) { + return (asinh(x)); +} diff --git a/src/elementaryFunctions/asinh/sasinha.c b/src/elementaryFunctions/asinh/sasinha.c new file mode 100644 index 00000000..65a1e9db --- /dev/null +++ b/src/elementaryFunctions/asinh/sasinha.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** sasinha.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 10:25:57 2007 jofret +** Last update Thu Sep 6 11:21:13 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "asinh.h" + +void sasinha(float* x, float* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = sasinhs(x[i]); + } +} diff --git a/src/elementaryFunctions/asinh/sasinhs.c b/src/elementaryFunctions/asinh/sasinhs.c new file mode 100644 index 00000000..03a5d690 --- /dev/null +++ b/src/elementaryFunctions/asinh/sasinhs.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** sasinhs.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 10:25:44 2007 jofret +** Last update Thu Sep 6 11:21:04 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include <math.h> +#include "asinh.h" + +float sasinhs(float x) { + return (asinh(x)); +} diff --git a/src/elementaryFunctions/asinh/testAsinh.c b/src/elementaryFunctions/asinh/testAsinh.c new file mode 100644 index 00000000..daefffc6 --- /dev/null +++ b/src/elementaryFunctions/asinh/testAsinh.c @@ -0,0 +1,150 @@ +/* +** -*- C -*- +** +** testAsinh.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Dec 8 15:05:44 2006 jofret +** Last update Thu Sep 6 11:20:54 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "testAsinh.h" + +void sasinhsTest(void) { + printf(">> Float scalar\n"); + printf("sasinhs(0) = %f\n", sasinhs((float) 0)); + printf("sasinhs(PI) = %f\n", sasinhs(PI)); + printf("sasinhs(PI/2) = %f\n", sasinhs(PI/2)); + printf("sasinhs(PI/3) = %f\n", sasinhs(PI/3)); + printf("sasinhs(PI/4) = %f\n", sasinhs(PI/4)); + printf("sasinhs(PI/6) = %f\n", sasinhs(PI/6)); + printf("sasinhs(-PI) = %f\n", sasinhs(-PI)); + printf("sasinhs(-PI/2) = %f\n", sasinhs(-PI/2)); + printf("sasinhs(-PI/3) = %f\n", sasinhs(-PI/3)); + printf("sasinhs(-PI/4) = %f\n", sasinhs(-PI/4)); + printf("sasinhs(-PI/6) = %f\n", sasinhs(-PI/6)); +} + +void dasinhsTest(void) { + printf(">> Double scalar\n"); + printf("dasinhs(0) = %e\n", dasinhs((double) 0)); + printf("dasinhs(PI) = %e\n", dasinhs(PI)); + printf("dasinhs(PI/2) = %e\n", dasinhs(PI/2)); + printf("dasinhs(PI/3) = %e\n", dasinhs(PI/3)); + printf("dasinhs(PI/4) = %e\n", dasinhs(PI/4)); + printf("dasinhs(PI/6) = %e\n", dasinhs(PI/6)); + printf("dasinhs(-PI) = %e\n", dasinhs(-PI)); + printf("dasinhs(-PI/2) = %e\n", dasinhs(-PI/2)); + printf("dasinhs(-PI/3) = %e\n", dasinhs(-PI/3)); + printf("dasinhs(-PI/4) = %e\n", dasinhs(-PI/4)); + printf("dasinhs(-PI/6) = %e\n", dasinhs(-PI/6)); +} + +void casinhsTest(void) { + floatComplex pi_pi = FloatComplex(PI, PI); + floatComplex pi_2_pi_2 = FloatComplex(PI/2, PI/2); + floatComplex pi_2_pi_3 = FloatComplex(PI/2, PI/3); + floatComplex pi_2_pi_4 = FloatComplex(PI/2, PI/4); + floatComplex out; + + printf(">> Float Complex scalar\n"); + out = casinhs(pi_pi); + printf("casinhs(PI + I*PI) = %f + I * %f\n", creals(out), cimags(out)); + out = casinhs(pi_2_pi_2); + printf("casinhs(PI/2 + I*PI/2) = %f + I * %f\n", creals(out), cimags(out)); + out = casinhs(pi_2_pi_3); + printf("casinhs(PI/2 + I*PI/3) = %f + I * %f\n", creals(out), cimags(out)); + out = casinhs(pi_2_pi_4); + printf("casinhs(PI/2 + I*PI/4) = %f + I * %f\n", creals(out), cimags(out)); +} + +void zasinhsTest(void) { + doubleComplex pi_pi = DoubleComplex(PI, PI); + doubleComplex pi_2_pi_2 = DoubleComplex(PI/2, PI/2); + doubleComplex pi_2_pi_3 = DoubleComplex(PI/2, PI/3); + doubleComplex pi_2_pi_4 = DoubleComplex(PI/2, PI/4); + doubleComplex out; + + printf(">> Double Complex scalar\n"); + out = zasinhs(pi_pi); + printf("zasinhs(PI + I*PI) = %e + I * %e\n", zreals(out), zimags(out)); + out = zasinhs(pi_2_pi_2); + printf("zasinhs(PI/2 + I*PI/2) = %e + I * %e\n", zreals(out), zimags(out)); + out = zasinhs(pi_2_pi_3); + printf("zasinhs(PI/2 + I*PI/3) = %e + I * %e\n", zreals(out), zimags(out)); + out = zasinhs(pi_2_pi_4); + printf("zasinhs(PI/2 + I*PI/4) = %e + I * %e\n", zreals(out), zimags(out)); +} + +void sasinhaTest(void) { + float out[5]; + float in[5] = {PI, PI/2, PI/3, PI/4, PI/6}; + int i = 0; + + printf(">> Float array\n"); + sasinha(in, out, 5); + for (i = 0 ; i < 5 ; ++i) + printf("sasinha(array) = %f\n", out[i]); +} + +void dasinhaTest(void) { + double out[5]; + double in[5] = {PI, PI/2, PI/3, PI/4, PI/6}; + int i = 0; + + printf(">> Double Array\n"); + dasinha(in, out, 5); + for (i = 0 ; i < 5 ; ++i) + printf("sasinha(array) = %f\n", out[i]); + +} + +void casinhaTest(void) { + floatComplex pi_pi = FloatComplex(PI, PI); + floatComplex pi_2_pi_2 = FloatComplex(PI/2, PI/2); + floatComplex pi_2_pi_3 = FloatComplex(PI/2, PI/3); + floatComplex pi_2_pi_4 = FloatComplex(PI/2, PI/4); + floatComplex in[4] = {pi_pi, pi_2_pi_2, pi_2_pi_3, pi_2_pi_4}; + floatComplex out[4]; + int i = 0; + + casinha(in, out, 4); + printf(">> Float Complex Array\n"); + for (i = 0 ; i < 4 ; ++i) + printf("casinha(array) = %e + I * %e\n", creals(out[i]), cimags(out[i])); +} + +void zasinhaTest(void) { + doubleComplex pi_pi = DoubleComplex(PI, PI); + doubleComplex pi_2_pi_2 = DoubleComplex(PI/2, PI/2); + doubleComplex pi_2_pi_3 = DoubleComplex(PI/2, PI/3); + doubleComplex pi_2_pi_4 = DoubleComplex(PI/2, PI/4); + doubleComplex in[4] = {pi_pi, pi_2_pi_2, pi_2_pi_3, pi_2_pi_4 }; + doubleComplex out[4]; + int i = 0; + + zasinha(in, out, 4); + printf(">> Double Complex Array\n"); + for (i = 0 ; i < 4 ; ++i) + printf("zasinha(array) = %e + I * %e\n", zreals(out[i]), zimags(out[i])); +} + +int testAsinh(void) { + printf("\n>>>> ArcSinhe Tests\n"); + sasinhsTest(); + dasinhsTest(); + casinhsTest(); + zasinhsTest(); + sasinhaTest(); + dasinhaTest(); + casinhaTest(); + zasinhaTest(); + return 0; +} + +int main(void) { + assert(testAsinh() == 0); + return 0; +} diff --git a/src/elementaryFunctions/asinh/testAsinh.h b/src/elementaryFunctions/asinh/testAsinh.h new file mode 100644 index 00000000..3ca2018a --- /dev/null +++ b/src/elementaryFunctions/asinh/testAsinh.h @@ -0,0 +1,40 @@ +/* +** -*- C -*- +** +** testAsinh.h +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Mon Mar 26 16:33:11 2007 jofret +** Last update Thu Sep 6 11:20:20 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#ifndef _TESTASINH_H_ +#define _TESTASINH_H_ + +#include <stdio.h> +#include <assert.h> +#include "asinh.h" +#include "constant.h" + + +void sasinhsTest(void); + +void dasinhsTest(void); + +void casinhsTest(void); + +void zasinhsTest(void); + +void sasinhaTest(void); + +void dasinhaTest(void); + +void casinhaTest(void); + +void zasinhaTest(void); + +int testAsinh(void); + +#endif /* ! _TESTASINH_H_ */ diff --git a/src/elementaryFunctions/asinh/zasinha.c b/src/elementaryFunctions/asinh/zasinha.c new file mode 100644 index 00000000..9ac20b54 --- /dev/null +++ b/src/elementaryFunctions/asinh/zasinha.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** zasinha.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 10:25:14 2007 jofret +** Last update Thu Sep 6 11:20:42 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "asinh.h" + +void zasinha(doubleComplex* x, doubleComplex* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = zasinhs(x[i]); + } +} diff --git a/src/elementaryFunctions/asinh/zasinhs.c b/src/elementaryFunctions/asinh/zasinhs.c new file mode 100644 index 00000000..d55932ce --- /dev/null +++ b/src/elementaryFunctions/asinh/zasinhs.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** zasinhs.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Jan 5 10:24:38 2007 jofret +** Last update Thu Sep 6 11:20:31 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "asinh.h" + +doubleComplex zasinhs(doubleComplex z) { + /* FIXME: Dummy... */ + return (DoubleComplex(0,1)); +} diff --git a/src/elementaryFunctions/atan/Makefile.am b/src/elementaryFunctions/atan/Makefile.am new file mode 100644 index 00000000..f3f6eafa --- /dev/null +++ b/src/elementaryFunctions/atan/Makefile.am @@ -0,0 +1,54 @@ +## +## -*- makefile -*- +## +## Makefile +## Made by Bruno JOFRET <bruno.jofret@inria.fr> +## +## Started on Fri Jan 5 10:19:16 2007 jofret +## Last update Thu Sep 6 11:52:29 2007 bruno +## +## Copyright INRIA 2007 +## + +AM_CFLAGS = -I ../../type \ + -I ../includes + +instdir = $(top_builddir)/lib + +inst_LIBRARIES = libAtan.a + +noinst_LIBRARIES = libAtan.a + +libAtan_a_SOURCES = $(HEAD) $(SRC) + +SRC = satans.c \ + datans.c \ + catans.c \ + zatans.c \ + satana.c \ + datana.c \ + catana.c \ + zatana.c + +HEAD = ../includes/atan.h + +#### +# Checking Part +#### + +check_INCLUDES = -I $(top_builddir)/elementaryFunctions/includes \ + -I $(top_builddir)/type + +check_PROGRAMS = testAtan + +TESTS = testAtan + +# +# -*- Atangeant Tests -*- +# +testAtan_SOURCES = testAtan.c +testAtan_CFLAGS = $(check_INCLUDES) +testAtan_LDADD = $(top_builddir)/lib/libDoubleComplex.a \ + $(top_builddir)/lib/libFloatComplex.a \ + $(top_builddir)/lib/libAtan.a \ + @LIBMATH@ diff --git a/src/elementaryFunctions/atan/Makefile.in b/src/elementaryFunctions/atan/Makefile.in new file mode 100644 index 00000000..31bcd6c1 --- /dev/null +++ b/src/elementaryFunctions/atan/Makefile.in @@ -0,0 +1,599 @@ +# Makefile.in generated by automake 1.10 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +check_PROGRAMS = testAtan$(EXEEXT) +TESTS = testAtan$(EXEEXT) +subdir = elementaryFunctions/atan +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/fortran.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/includes/machine.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(instdir)" +instLIBRARIES_INSTALL = $(INSTALL_DATA) +LIBRARIES = $(inst_LIBRARIES) $(noinst_LIBRARIES) +AR = ar +ARFLAGS = cru +libAtan_a_AR = $(AR) $(ARFLAGS) +libAtan_a_LIBADD = +am__objects_1 = +am__objects_2 = satans.$(OBJEXT) datans.$(OBJEXT) catans.$(OBJEXT) \ + zatans.$(OBJEXT) satana.$(OBJEXT) datana.$(OBJEXT) \ + catana.$(OBJEXT) zatana.$(OBJEXT) +am_libAtan_a_OBJECTS = $(am__objects_1) $(am__objects_2) +libAtan_a_OBJECTS = $(am_libAtan_a_OBJECTS) +am_testAtan_OBJECTS = testAtan-testAtan.$(OBJEXT) +testAtan_OBJECTS = $(am_testAtan_OBJECTS) +testAtan_DEPENDENCIES = $(top_builddir)/lib/libDoubleComplex.a \ + $(top_builddir)/lib/libFloatComplex.a \ + $(top_builddir)/lib/libAtan.a +testAtan_LINK = $(CCLD) $(testAtan_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +DEFAULT_INCLUDES = -I. -I$(top_builddir)/includes@am__isrc@ +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(libAtan_a_SOURCES) $(testAtan_SOURCES) +DIST_SOURCES = $(libAtan_a_SOURCES) $(testAtan_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBMATH = @LIBMATH@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AM_CFLAGS = -I ../../type \ + -I ../includes + +instdir = $(top_builddir)/lib +inst_LIBRARIES = libAtan.a +noinst_LIBRARIES = libAtan.a +libAtan_a_SOURCES = $(HEAD) $(SRC) +SRC = satans.c \ + datans.c \ + catans.c \ + zatans.c \ + satana.c \ + datana.c \ + catana.c \ + zatana.c + +HEAD = ../includes/atan.h + +#### +# Checking Part +#### +check_INCLUDES = -I $(top_builddir)/elementaryFunctions/includes \ + -I $(top_builddir)/type + + +# +# -*- Atangeant Tests -*- +# +testAtan_SOURCES = testAtan.c +testAtan_CFLAGS = $(check_INCLUDES) +testAtan_LDADD = $(top_builddir)/lib/libDoubleComplex.a \ + $(top_builddir)/lib/libFloatComplex.a \ + $(top_builddir)/lib/libAtan.a \ + @LIBMATH@ + +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign elementaryFunctions/atan/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign elementaryFunctions/atan/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-instLIBRARIES: $(inst_LIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(instdir)" || $(MKDIR_P) "$(DESTDIR)$(instdir)" + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(instLIBRARIES_INSTALL) '$$p' '$(DESTDIR)$(instdir)/$$f'"; \ + $(instLIBRARIES_INSTALL) "$$p" "$(DESTDIR)$(instdir)/$$f"; \ + else :; fi; \ + done + @$(POST_INSTALL) + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + p=$(am__strip_dir) \ + echo " $(RANLIB) '$(DESTDIR)$(instdir)/$$p'"; \ + $(RANLIB) "$(DESTDIR)$(instdir)/$$p"; \ + else :; fi; \ + done + +uninstall-instLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(instdir)/$$p'"; \ + rm -f "$(DESTDIR)$(instdir)/$$p"; \ + done + +clean-instLIBRARIES: + -test -z "$(inst_LIBRARIES)" || rm -f $(inst_LIBRARIES) + +clean-noinstLIBRARIES: + -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) +libAtan.a: $(libAtan_a_OBJECTS) $(libAtan_a_DEPENDENCIES) + -rm -f libAtan.a + $(libAtan_a_AR) libAtan.a $(libAtan_a_OBJECTS) $(libAtan_a_LIBADD) + $(RANLIB) libAtan.a + +clean-checkPROGRAMS: + -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS) +testAtan$(EXEEXT): $(testAtan_OBJECTS) $(testAtan_DEPENDENCIES) + @rm -f testAtan$(EXEEXT) + $(testAtan_LINK) $(testAtan_OBJECTS) $(testAtan_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/catana.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/catans.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/datana.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/datans.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/satana.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/satans.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testAtan-testAtan.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zatana.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zatans.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +testAtan-testAtan.o: testAtan.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testAtan_CFLAGS) $(CFLAGS) -MT testAtan-testAtan.o -MD -MP -MF $(DEPDIR)/testAtan-testAtan.Tpo -c -o testAtan-testAtan.o `test -f 'testAtan.c' || echo '$(srcdir)/'`testAtan.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/testAtan-testAtan.Tpo $(DEPDIR)/testAtan-testAtan.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testAtan.c' object='testAtan-testAtan.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testAtan_CFLAGS) $(CFLAGS) -c -o testAtan-testAtan.o `test -f 'testAtan.c' || echo '$(srcdir)/'`testAtan.c + +testAtan-testAtan.obj: testAtan.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testAtan_CFLAGS) $(CFLAGS) -MT testAtan-testAtan.obj -MD -MP -MF $(DEPDIR)/testAtan-testAtan.Tpo -c -o testAtan-testAtan.obj `if test -f 'testAtan.c'; then $(CYGPATH_W) 'testAtan.c'; else $(CYGPATH_W) '$(srcdir)/testAtan.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/testAtan-testAtan.Tpo $(DEPDIR)/testAtan-testAtan.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testAtan.c' object='testAtan-testAtan.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testAtan_CFLAGS) $(CFLAGS) -c -o testAtan-testAtan.obj `if test -f 'testAtan.c'; then $(CYGPATH_W) 'testAtan.c'; else $(CYGPATH_W) '$(srcdir)/testAtan.c'; fi` + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +check-TESTS: $(TESTS) + @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \ + srcdir=$(srcdir); export srcdir; \ + list=' $(TESTS) '; \ + if test -n "$$list"; then \ + for tst in $$list; do \ + if test -f ./$$tst; then dir=./; \ + elif test -f $$tst; then dir=; \ + else dir="$(srcdir)/"; fi; \ + if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ + all=`expr $$all + 1`; \ + case " $(XFAIL_TESTS) " in \ + *$$ws$$tst$$ws*) \ + xpass=`expr $$xpass + 1`; \ + failed=`expr $$failed + 1`; \ + echo "XPASS: $$tst"; \ + ;; \ + *) \ + echo "PASS: $$tst"; \ + ;; \ + esac; \ + elif test $$? -ne 77; then \ + all=`expr $$all + 1`; \ + case " $(XFAIL_TESTS) " in \ + *$$ws$$tst$$ws*) \ + xfail=`expr $$xfail + 1`; \ + echo "XFAIL: $$tst"; \ + ;; \ + *) \ + failed=`expr $$failed + 1`; \ + echo "FAIL: $$tst"; \ + ;; \ + esac; \ + else \ + skip=`expr $$skip + 1`; \ + echo "SKIP: $$tst"; \ + fi; \ + done; \ + if test "$$failed" -eq 0; then \ + if test "$$xfail" -eq 0; then \ + banner="All $$all tests passed"; \ + else \ + banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ + fi; \ + else \ + if test "$$xpass" -eq 0; then \ + banner="$$failed of $$all tests failed"; \ + else \ + banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ + fi; \ + fi; \ + dashes="$$banner"; \ + skipped=""; \ + if test "$$skip" -ne 0; then \ + skipped="($$skip tests were not run)"; \ + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ + dashes="$$skipped"; \ + fi; \ + report=""; \ + if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ + report="Please report to $(PACKAGE_BUGREPORT)"; \ + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ + dashes="$$report"; \ + fi; \ + dashes=`echo "$$dashes" | sed s/./=/g`; \ + echo "$$dashes"; \ + echo "$$banner"; \ + test -z "$$skipped" || echo "$$skipped"; \ + test -z "$$report" || echo "$$report"; \ + echo "$$dashes"; \ + test "$$failed" -eq 0; \ + else :; fi + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) + $(MAKE) $(AM_MAKEFLAGS) check-TESTS +check: check-am +all-am: Makefile $(LIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(instdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-checkPROGRAMS clean-generic clean-instLIBRARIES \ + clean-noinstLIBRARIES mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-instLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-instLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ + clean-checkPROGRAMS clean-generic clean-instLIBRARIES \ + clean-noinstLIBRARIES ctags distclean distclean-compile \ + distclean-generic distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-instLIBRARIES install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ + uninstall-am uninstall-instLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/elementaryFunctions/atan/catana.c b/src/elementaryFunctions/atan/catana.c new file mode 100644 index 00000000..d1652c22 --- /dev/null +++ b/src/elementaryFunctions/atan/catana.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** catana.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 14:54:24 2006 jofret +** Last update Thu Sep 6 11:56:04 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "atan.h" + +void catana(floatComplex* x, floatComplex* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = catans(x[i]); + } +} diff --git a/src/elementaryFunctions/atan/catans.c b/src/elementaryFunctions/atan/catans.c new file mode 100644 index 00000000..40a8e566 --- /dev/null +++ b/src/elementaryFunctions/atan/catans.c @@ -0,0 +1,22 @@ +/* +** -*- C -*- +** +** catans.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 12:04:28 2006 jofret +** Last update Thu Sep 6 11:55:18 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "atan.h" + +floatComplex catans(floatComplex z) { + + double out_real = 0; + double out_imag = 0; + /* FIXME : Let's code... */ + + return FloatComplex(out_real, out_imag); +} diff --git a/src/elementaryFunctions/atan/datana.c b/src/elementaryFunctions/atan/datana.c new file mode 100644 index 00000000..c238ccc0 --- /dev/null +++ b/src/elementaryFunctions/atan/datana.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** datana.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 14:54:56 2006 jofret +** Last update Thu Sep 6 11:54:07 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "atan.h" + +void datana(double* x, double* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = datans(x[i]); + } +} diff --git a/src/elementaryFunctions/atan/datans.c b/src/elementaryFunctions/atan/datans.c new file mode 100644 index 00000000..c75e3625 --- /dev/null +++ b/src/elementaryFunctions/atan/datans.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** datans.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 12:02:41 2006 jofret +** Last update Thu Sep 6 11:53:57 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include <math.h> +#include "atan.h" + +double datans(double x) { + return (atan(x)); +} diff --git a/src/elementaryFunctions/atan/satana.c b/src/elementaryFunctions/atan/satana.c new file mode 100644 index 00000000..9d9086f3 --- /dev/null +++ b/src/elementaryFunctions/atan/satana.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** satana.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 16:03:27 2006 jofret +** Last update Thu Sep 6 11:53:48 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "atan.h" + +void satana(float* x, float* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = satans(x[i]); + } +} diff --git a/src/elementaryFunctions/atan/satans.c b/src/elementaryFunctions/atan/satans.c new file mode 100644 index 00000000..43f5b2a7 --- /dev/null +++ b/src/elementaryFunctions/atan/satans.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** satans.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 11:05:37 2006 jofret +** Last update Thu Sep 6 11:53:39 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include <math.h> +#include "atan.h" + +float satans(float x) { + return (atan(x)); +} diff --git a/src/elementaryFunctions/atan/testAtan.c b/src/elementaryFunctions/atan/testAtan.c new file mode 100644 index 00000000..17515447 --- /dev/null +++ b/src/elementaryFunctions/atan/testAtan.c @@ -0,0 +1,64 @@ +/* +** -*- C -*- +** +** testAtan.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Dec 8 15:05:44 2006 jofret +** Last update Thu Sep 6 11:53:30 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "testAtan.h" + +void satansTest() { + printf(">> Float scalar\n"); + printf("satans(0) = %f\n", satans((float) 0)); + printf("satans(PI) = %f\n", satans(PI)); + printf("satans(PI/2) = %f\n", satans(PI/2)); + printf("satans(PI/3) = %f\n", satans(PI/3)); + printf("satans(PI/4) = %f\n", satans(PI/4)); + printf("satans(PI/6) = %f\n", satans(PI/6)); + printf("satans(-PI) = %f\n", satans(-PI)); + printf("satans(-PI/2) = %f\n", satans(-PI/2)); + printf("satans(-PI/3) = %f\n", satans(-PI/3)); + printf("satans(-PI/4) = %f\n", satans(-PI/4)); + printf("satans(-PI/6) = %f\n", satans(-PI/6)); +} + +void datansTest() { + printf(">> Double scalar\n"); + printf("datans(0) = %e\n", datans((double) 0)); + printf("datans(PI) = %e\n", datans(PI)); + printf("datans(PI/2) = %e\n", datans(PI/2)); + printf("datans(PI/3) = %e\n", datans(PI/3)); + printf("datans(PI/4) = %e\n", datans(PI/4)); + printf("datans(PI/6) = %e\n", datans(PI/6)); + printf("datans(-PI) = %e\n", datans(-PI)); + printf("datans(-PI/2) = %e\n", datans(-PI/2)); + printf("datans(-PI/3) = %e\n", datans(-PI/3)); + printf("datans(-PI/4) = %e\n", datans(-PI/4)); + printf("datans(-PI/6) = %e\n", datans(-PI/6)); +} + +int testAtan() { + printf("\n>>>> Atangeant Tests\n"); + satansTest(); + datansTest(); + /* FIXME : Implement some test here ... */ + /* + catansTest(); + zatansTest(); + satanaTest(); + datanaTest(); + catanaTest(); + zatanaTest(); + */ + return 0; +} + +int main() { + assert(testAtan() == 0); + return 0; +} diff --git a/src/elementaryFunctions/atan/testAtan.h b/src/elementaryFunctions/atan/testAtan.h new file mode 100644 index 00000000..e3ba1569 --- /dev/null +++ b/src/elementaryFunctions/atan/testAtan.h @@ -0,0 +1,27 @@ +/* +** -*- C -*- +** +** testAtan.h +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Mar 30 11:22:40 2007 jofret +** Last update Thu Sep 6 17:13:18 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#ifndef _TESTATAN_H_ +#define _TESTATAN_H_ + +#include <stdio.h> +#include <assert.h> +#include "atan.h" +#include "constant.h" + +void satansTest(void); + +void datansTest(void); + +int testAtan(void); + +#endif /* !_TESTATAN_H_ */ diff --git a/src/elementaryFunctions/atan/zatana.c b/src/elementaryFunctions/atan/zatana.c new file mode 100644 index 00000000..da5a9826 --- /dev/null +++ b/src/elementaryFunctions/atan/zatana.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** zatana.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 16:12:02 2006 jofret +** Last update Thu Sep 6 11:53:18 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "atan.h" + +void zatana(doubleComplex* x, doubleComplex* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = zatans(x[i]); + } +} diff --git a/src/elementaryFunctions/atan/zatans.c b/src/elementaryFunctions/atan/zatans.c new file mode 100644 index 00000000..03d4fff8 --- /dev/null +++ b/src/elementaryFunctions/atan/zatans.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** zatans.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 12:05:48 2006 jofret +** Last update Thu Sep 6 11:53:07 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "atan.h" + +doubleComplex zatans(doubleComplex z) { + /* FIXME: Dummy... */ + return (DoubleComplex(0,1)); +} diff --git a/src/elementaryFunctions/atanh/Makefile.am b/src/elementaryFunctions/atanh/Makefile.am new file mode 100644 index 00000000..62d71fcd --- /dev/null +++ b/src/elementaryFunctions/atanh/Makefile.am @@ -0,0 +1,54 @@ +## +## -*- makefile -*- +## +## Makefile +## Made by Bruno JOFRET <bruno.jofret@inria.fr> +## +## Started on Fri Jan 5 10:19:16 2007 jofret +## Last update Thu Sep 6 15:06:54 2007 bruno +## +## Copyright INRIA 2007 +## + +AM_CFLAGS = -I ../../type \ + -I ../includes + +instdir = $(top_builddir)/lib + +inst_LIBRARIES = libAtanh.a + +noinst_LIBRARIES = libAtanh.a + +libAtanh_a_SOURCES = $(HEAD) $(SRC) + +SRC = satanhs.c \ + datanhs.c \ + catanhs.c \ + zatanhs.c \ + satanha.c \ + datanha.c \ + catanha.c \ + zatanha.c + +HEAD = ../includes/atanh.h + +#### +# Checking Part +#### + +check_INCLUDES = -I $(top_builddir)/elementaryFunctions/includes \ + -I $(top_builddir)/type + +check_PROGRAMS = testAtanh + +TESTS = testAtanh + +# +# -*- Atanhgeant Tests -*- +# +testAtanh_SOURCES = testAtanh.c +testAtanh_CFLAGS = $(check_INCLUDES) +testAtanh_LDADD = $(top_builddir)/lib/libDoubleComplex.a \ + $(top_builddir)/lib/libFloatComplex.a \ + $(top_builddir)/lib/libAtanh.a \ + @LIBMATH@ diff --git a/src/elementaryFunctions/atanh/Makefile.in b/src/elementaryFunctions/atanh/Makefile.in new file mode 100644 index 00000000..995fec22 --- /dev/null +++ b/src/elementaryFunctions/atanh/Makefile.in @@ -0,0 +1,599 @@ +# Makefile.in generated by automake 1.10 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +check_PROGRAMS = testAtanh$(EXEEXT) +TESTS = testAtanh$(EXEEXT) +subdir = elementaryFunctions/atanh +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/fortran.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/includes/machine.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(instdir)" +instLIBRARIES_INSTALL = $(INSTALL_DATA) +LIBRARIES = $(inst_LIBRARIES) $(noinst_LIBRARIES) +AR = ar +ARFLAGS = cru +libAtanh_a_AR = $(AR) $(ARFLAGS) +libAtanh_a_LIBADD = +am__objects_1 = +am__objects_2 = satanhs.$(OBJEXT) datanhs.$(OBJEXT) catanhs.$(OBJEXT) \ + zatanhs.$(OBJEXT) satanha.$(OBJEXT) datanha.$(OBJEXT) \ + catanha.$(OBJEXT) zatanha.$(OBJEXT) +am_libAtanh_a_OBJECTS = $(am__objects_1) $(am__objects_2) +libAtanh_a_OBJECTS = $(am_libAtanh_a_OBJECTS) +am_testAtanh_OBJECTS = testAtanh-testAtanh.$(OBJEXT) +testAtanh_OBJECTS = $(am_testAtanh_OBJECTS) +testAtanh_DEPENDENCIES = $(top_builddir)/lib/libDoubleComplex.a \ + $(top_builddir)/lib/libFloatComplex.a \ + $(top_builddir)/lib/libAtanh.a +testAtanh_LINK = $(CCLD) $(testAtanh_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +DEFAULT_INCLUDES = -I. -I$(top_builddir)/includes@am__isrc@ +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(libAtanh_a_SOURCES) $(testAtanh_SOURCES) +DIST_SOURCES = $(libAtanh_a_SOURCES) $(testAtanh_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBMATH = @LIBMATH@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AM_CFLAGS = -I ../../type \ + -I ../includes + +instdir = $(top_builddir)/lib +inst_LIBRARIES = libAtanh.a +noinst_LIBRARIES = libAtanh.a +libAtanh_a_SOURCES = $(HEAD) $(SRC) +SRC = satanhs.c \ + datanhs.c \ + catanhs.c \ + zatanhs.c \ + satanha.c \ + datanha.c \ + catanha.c \ + zatanha.c + +HEAD = ../includes/atanh.h + +#### +# Checking Part +#### +check_INCLUDES = -I $(top_builddir)/elementaryFunctions/includes \ + -I $(top_builddir)/type + + +# +# -*- Atanhgeant Tests -*- +# +testAtanh_SOURCES = testAtanh.c +testAtanh_CFLAGS = $(check_INCLUDES) +testAtanh_LDADD = $(top_builddir)/lib/libDoubleComplex.a \ + $(top_builddir)/lib/libFloatComplex.a \ + $(top_builddir)/lib/libAtanh.a \ + @LIBMATH@ + +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign elementaryFunctions/atanh/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign elementaryFunctions/atanh/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-instLIBRARIES: $(inst_LIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(instdir)" || $(MKDIR_P) "$(DESTDIR)$(instdir)" + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(instLIBRARIES_INSTALL) '$$p' '$(DESTDIR)$(instdir)/$$f'"; \ + $(instLIBRARIES_INSTALL) "$$p" "$(DESTDIR)$(instdir)/$$f"; \ + else :; fi; \ + done + @$(POST_INSTALL) + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + p=$(am__strip_dir) \ + echo " $(RANLIB) '$(DESTDIR)$(instdir)/$$p'"; \ + $(RANLIB) "$(DESTDIR)$(instdir)/$$p"; \ + else :; fi; \ + done + +uninstall-instLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(instdir)/$$p'"; \ + rm -f "$(DESTDIR)$(instdir)/$$p"; \ + done + +clean-instLIBRARIES: + -test -z "$(inst_LIBRARIES)" || rm -f $(inst_LIBRARIES) + +clean-noinstLIBRARIES: + -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) +libAtanh.a: $(libAtanh_a_OBJECTS) $(libAtanh_a_DEPENDENCIES) + -rm -f libAtanh.a + $(libAtanh_a_AR) libAtanh.a $(libAtanh_a_OBJECTS) $(libAtanh_a_LIBADD) + $(RANLIB) libAtanh.a + +clean-checkPROGRAMS: + -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS) +testAtanh$(EXEEXT): $(testAtanh_OBJECTS) $(testAtanh_DEPENDENCIES) + @rm -f testAtanh$(EXEEXT) + $(testAtanh_LINK) $(testAtanh_OBJECTS) $(testAtanh_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/catanha.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/catanhs.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/datanha.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/datanhs.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/satanha.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/satanhs.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testAtanh-testAtanh.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zatanha.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zatanhs.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +testAtanh-testAtanh.o: testAtanh.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testAtanh_CFLAGS) $(CFLAGS) -MT testAtanh-testAtanh.o -MD -MP -MF $(DEPDIR)/testAtanh-testAtanh.Tpo -c -o testAtanh-testAtanh.o `test -f 'testAtanh.c' || echo '$(srcdir)/'`testAtanh.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/testAtanh-testAtanh.Tpo $(DEPDIR)/testAtanh-testAtanh.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testAtanh.c' object='testAtanh-testAtanh.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testAtanh_CFLAGS) $(CFLAGS) -c -o testAtanh-testAtanh.o `test -f 'testAtanh.c' || echo '$(srcdir)/'`testAtanh.c + +testAtanh-testAtanh.obj: testAtanh.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testAtanh_CFLAGS) $(CFLAGS) -MT testAtanh-testAtanh.obj -MD -MP -MF $(DEPDIR)/testAtanh-testAtanh.Tpo -c -o testAtanh-testAtanh.obj `if test -f 'testAtanh.c'; then $(CYGPATH_W) 'testAtanh.c'; else $(CYGPATH_W) '$(srcdir)/testAtanh.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/testAtanh-testAtanh.Tpo $(DEPDIR)/testAtanh-testAtanh.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testAtanh.c' object='testAtanh-testAtanh.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testAtanh_CFLAGS) $(CFLAGS) -c -o testAtanh-testAtanh.obj `if test -f 'testAtanh.c'; then $(CYGPATH_W) 'testAtanh.c'; else $(CYGPATH_W) '$(srcdir)/testAtanh.c'; fi` + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +check-TESTS: $(TESTS) + @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \ + srcdir=$(srcdir); export srcdir; \ + list=' $(TESTS) '; \ + if test -n "$$list"; then \ + for tst in $$list; do \ + if test -f ./$$tst; then dir=./; \ + elif test -f $$tst; then dir=; \ + else dir="$(srcdir)/"; fi; \ + if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ + all=`expr $$all + 1`; \ + case " $(XFAIL_TESTS) " in \ + *$$ws$$tst$$ws*) \ + xpass=`expr $$xpass + 1`; \ + failed=`expr $$failed + 1`; \ + echo "XPASS: $$tst"; \ + ;; \ + *) \ + echo "PASS: $$tst"; \ + ;; \ + esac; \ + elif test $$? -ne 77; then \ + all=`expr $$all + 1`; \ + case " $(XFAIL_TESTS) " in \ + *$$ws$$tst$$ws*) \ + xfail=`expr $$xfail + 1`; \ + echo "XFAIL: $$tst"; \ + ;; \ + *) \ + failed=`expr $$failed + 1`; \ + echo "FAIL: $$tst"; \ + ;; \ + esac; \ + else \ + skip=`expr $$skip + 1`; \ + echo "SKIP: $$tst"; \ + fi; \ + done; \ + if test "$$failed" -eq 0; then \ + if test "$$xfail" -eq 0; then \ + banner="All $$all tests passed"; \ + else \ + banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ + fi; \ + else \ + if test "$$xpass" -eq 0; then \ + banner="$$failed of $$all tests failed"; \ + else \ + banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ + fi; \ + fi; \ + dashes="$$banner"; \ + skipped=""; \ + if test "$$skip" -ne 0; then \ + skipped="($$skip tests were not run)"; \ + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ + dashes="$$skipped"; \ + fi; \ + report=""; \ + if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ + report="Please report to $(PACKAGE_BUGREPORT)"; \ + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ + dashes="$$report"; \ + fi; \ + dashes=`echo "$$dashes" | sed s/./=/g`; \ + echo "$$dashes"; \ + echo "$$banner"; \ + test -z "$$skipped" || echo "$$skipped"; \ + test -z "$$report" || echo "$$report"; \ + echo "$$dashes"; \ + test "$$failed" -eq 0; \ + else :; fi + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) + $(MAKE) $(AM_MAKEFLAGS) check-TESTS +check: check-am +all-am: Makefile $(LIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(instdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-checkPROGRAMS clean-generic clean-instLIBRARIES \ + clean-noinstLIBRARIES mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-instLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-instLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ + clean-checkPROGRAMS clean-generic clean-instLIBRARIES \ + clean-noinstLIBRARIES ctags distclean distclean-compile \ + distclean-generic distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-instLIBRARIES install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ + uninstall-am uninstall-instLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/elementaryFunctions/atanh/catanha.c b/src/elementaryFunctions/atanh/catanha.c new file mode 100644 index 00000000..6cae472d --- /dev/null +++ b/src/elementaryFunctions/atanh/catanha.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** catanha.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 14:54:24 2006 jofret +** Last update Thu Sep 6 15:12:44 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "atanh.h" + +void catanha(floatComplex* x, floatComplex* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = catanhs(x[i]); + } +} diff --git a/src/elementaryFunctions/atanh/catanhs.c b/src/elementaryFunctions/atanh/catanhs.c new file mode 100644 index 00000000..52f2d589 --- /dev/null +++ b/src/elementaryFunctions/atanh/catanhs.c @@ -0,0 +1,22 @@ +/* +** -*- C -*- +** +** catanhs.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 12:04:28 2006 jofret +** Last update Thu Sep 6 15:12:27 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "atanh.h" + +floatComplex catanhs(floatComplex z) { + + double out_real = 0; + double out_imag = 0; + /* FIXME : Let's code... */ + + return FloatComplex(out_real, out_imag); +} diff --git a/src/elementaryFunctions/atanh/datanha.c b/src/elementaryFunctions/atanh/datanha.c new file mode 100644 index 00000000..3c2f62b6 --- /dev/null +++ b/src/elementaryFunctions/atanh/datanha.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** datanha.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 14:54:56 2006 jofret +** Last update Thu Sep 6 15:12:16 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "atanh.h" + +void datanha(double* x, double* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = datanhs(x[i]); + } +} diff --git a/src/elementaryFunctions/atanh/datanhs.c b/src/elementaryFunctions/atanh/datanhs.c new file mode 100644 index 00000000..c6d80c77 --- /dev/null +++ b/src/elementaryFunctions/atanh/datanhs.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** datanhs.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 12:02:41 2006 jofret +** Last update Thu Sep 6 15:12:05 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include <math.h> +#include "atanh.h" + +double datanhs(double x) { + return (atanh(x)); +} diff --git a/src/elementaryFunctions/atanh/satanha.c b/src/elementaryFunctions/atanh/satanha.c new file mode 100644 index 00000000..7aa3b544 --- /dev/null +++ b/src/elementaryFunctions/atanh/satanha.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** satanha.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 16:03:27 2006 jofret +** Last update Thu Sep 6 15:10:59 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "atanh.h" + +void satanha(float* x, float* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = satanhs(x[i]); + } +} diff --git a/src/elementaryFunctions/atanh/satanhs.c b/src/elementaryFunctions/atanh/satanhs.c new file mode 100644 index 00000000..d179005c --- /dev/null +++ b/src/elementaryFunctions/atanh/satanhs.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** satanhs.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 11:05:37 2006 jofret +** Last update Thu Sep 6 15:10:17 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include <math.h> +#include "atanh.h" + +float satanhs(float x) { + return (atanh(x)); +} diff --git a/src/elementaryFunctions/atanh/testAtanh.c b/src/elementaryFunctions/atanh/testAtanh.c new file mode 100644 index 00000000..97651729 --- /dev/null +++ b/src/elementaryFunctions/atanh/testAtanh.c @@ -0,0 +1,64 @@ +/* +** -*- C -*- +** +** testAtanh.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Dec 8 15:05:44 2006 jofret +** Last update Thu Sep 6 15:09:45 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "testAtanh.h" + +void satanhsTest() { + printf(">> Float scalar\n"); + printf("satanhs(0) = %f\n", satanhs((float) 0)); + printf("satanhs(PI) = %f\n", satanhs(PI)); + printf("satanhs(PI/2) = %f\n", satanhs(PI/2)); + printf("satanhs(PI/3) = %f\n", satanhs(PI/3)); + printf("satanhs(PI/4) = %f\n", satanhs(PI/4)); + printf("satanhs(PI/6) = %f\n", satanhs(PI/6)); + printf("satanhs(-PI) = %f\n", satanhs(-PI)); + printf("satanhs(-PI/2) = %f\n", satanhs(-PI/2)); + printf("satanhs(-PI/3) = %f\n", satanhs(-PI/3)); + printf("satanhs(-PI/4) = %f\n", satanhs(-PI/4)); + printf("satanhs(-PI/6) = %f\n", satanhs(-PI/6)); +} + +void datanhsTest() { + printf(">> Double scalar\n"); + printf("datanhs(0) = %e\n", datanhs((double) 0)); + printf("datanhs(PI) = %e\n", datanhs(PI)); + printf("datanhs(PI/2) = %e\n", datanhs(PI/2)); + printf("datanhs(PI/3) = %e\n", datanhs(PI/3)); + printf("datanhs(PI/4) = %e\n", datanhs(PI/4)); + printf("datanhs(PI/6) = %e\n", datanhs(PI/6)); + printf("datanhs(-PI) = %e\n", datanhs(-PI)); + printf("datanhs(-PI/2) = %e\n", datanhs(-PI/2)); + printf("datanhs(-PI/3) = %e\n", datanhs(-PI/3)); + printf("datanhs(-PI/4) = %e\n", datanhs(-PI/4)); + printf("datanhs(-PI/6) = %e\n", datanhs(-PI/6)); +} + +int testAtanh() { + printf("\n>>>> Atanhgeant Tests\n"); + satanhsTest(); + datanhsTest(); + /* FIXME : Implement some test here ... */ + /* + catanhsTest(); + zatanhsTest(); + satanhaTest(); + datanhaTest(); + catanhaTest(); + zatanhaTest(); + */ + return 0; +} + +int main() { + assert(testAtanh() == 0); + return 0; +} diff --git a/src/elementaryFunctions/atanh/testAtanh.h b/src/elementaryFunctions/atanh/testAtanh.h new file mode 100644 index 00000000..47a3956f --- /dev/null +++ b/src/elementaryFunctions/atanh/testAtanh.h @@ -0,0 +1,27 @@ +/* +** -*- C -*- +** +** testAtanh.h +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Mar 30 11:22:40 2007 jofret +** Last update Thu Sep 6 17:15:05 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#ifndef _TESTATANH_H_ +#define _TESTATANH_H_ + +#include <stdio.h> +#include <assert.h> +#include "atanh.h" +#include "constant.h" + +void satanhsTest(void); + +void datanhsTest(void); + +int testAtanh(void); + +#endif /* !_TESTATANH_H_ */ diff --git a/src/elementaryFunctions/atanh/zatanha.c b/src/elementaryFunctions/atanh/zatanha.c new file mode 100644 index 00000000..bef76801 --- /dev/null +++ b/src/elementaryFunctions/atanh/zatanha.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** zatanha.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 16:12:02 2006 jofret +** Last update Thu Sep 6 15:09:32 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "atanh.h" + +void zatanha(doubleComplex* x, doubleComplex* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = zatanhs(x[i]); + } +} diff --git a/src/elementaryFunctions/atanh/zatanhs.c b/src/elementaryFunctions/atanh/zatanhs.c new file mode 100644 index 00000000..df7d1903 --- /dev/null +++ b/src/elementaryFunctions/atanh/zatanhs.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** zatanhs.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 12:05:48 2006 jofret +** Last update Thu Sep 6 15:08:38 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "atanh.h" + +doubleComplex zatanhs(doubleComplex z) { + /* FIXME: Dummy... */ + return (DoubleComplex(0,1)); +} diff --git a/src/elementaryFunctions/exp10/Makefile.am b/src/elementaryFunctions/exp10/Makefile.am new file mode 100644 index 00000000..5160a47f --- /dev/null +++ b/src/elementaryFunctions/exp10/Makefile.am @@ -0,0 +1,51 @@ +## +## -*- makefile -*- +## +## Makefile +## Made by Bruno JOFRET <bruno.jofret@inria.fr> +## +## Started on Fri Jan 5 10:19:16 2007 jofret +## Last update Thu Sep 6 16:52:43 2007 bruno +## +## Copyright INRIA 2007 +## + +AM_CFLAGS = -I ../../type \ + -I ../includes + +instdir = $(top_builddir)/lib + +inst_LIBRARIES = libExp10.a + +noinst_LIBRARIES = libExp10.a + +libExp10_a_SOURCES = $(HEAD) $(SRC) + +SRC = sexp10s.c \ + dexp10s.c \ + cexp10s.c \ + zexp10s.c \ + sexp10a.c \ + dexp10a.c \ + cexp10a.c \ + zexp10a.c + +HEAD = ../includes/exp10.h + +#### +# Checking Part +#### + +check_INCLUDES = -I $(top_builddir)/elementaryFunctions/includes \ + -I $(top_builddir)/type + +check_PROGRAMS = testExp10 + +TESTS = testExp10 + +testExp10_SOURCES = testExp10.c +testExp10_CFLAGS = $(check_INCLUDES) +testExp10_LDADD = $(top_builddir)/lib/libDoubleComplex.a \ + $(top_builddir)/lib/libFloatComplex.a \ + $(top_builddir)/lib/libExp10.a \ + @LIBMATH@
\ No newline at end of file diff --git a/src/elementaryFunctions/exp10/Makefile.in b/src/elementaryFunctions/exp10/Makefile.in new file mode 100644 index 00000000..7c7b02ff --- /dev/null +++ b/src/elementaryFunctions/exp10/Makefile.in @@ -0,0 +1,595 @@ +# Makefile.in generated by automake 1.10 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +check_PROGRAMS = testExp10$(EXEEXT) +TESTS = testExp10$(EXEEXT) +subdir = elementaryFunctions/exp10 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/fortran.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/includes/machine.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(instdir)" +instLIBRARIES_INSTALL = $(INSTALL_DATA) +LIBRARIES = $(inst_LIBRARIES) $(noinst_LIBRARIES) +AR = ar +ARFLAGS = cru +libExp10_a_AR = $(AR) $(ARFLAGS) +libExp10_a_LIBADD = +am__objects_1 = +am__objects_2 = sexp10s.$(OBJEXT) dexp10s.$(OBJEXT) cexp10s.$(OBJEXT) \ + zexp10s.$(OBJEXT) sexp10a.$(OBJEXT) dexp10a.$(OBJEXT) \ + cexp10a.$(OBJEXT) zexp10a.$(OBJEXT) +am_libExp10_a_OBJECTS = $(am__objects_1) $(am__objects_2) +libExp10_a_OBJECTS = $(am_libExp10_a_OBJECTS) +am_testExp10_OBJECTS = testExp10-testExp10.$(OBJEXT) +testExp10_OBJECTS = $(am_testExp10_OBJECTS) +testExp10_DEPENDENCIES = $(top_builddir)/lib/libDoubleComplex.a \ + $(top_builddir)/lib/libFloatComplex.a \ + $(top_builddir)/lib/libExp10.a +testExp10_LINK = $(CCLD) $(testExp10_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +DEFAULT_INCLUDES = -I. -I$(top_builddir)/includes@am__isrc@ +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(libExp10_a_SOURCES) $(testExp10_SOURCES) +DIST_SOURCES = $(libExp10_a_SOURCES) $(testExp10_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBMATH = @LIBMATH@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AM_CFLAGS = -I ../../type \ + -I ../includes + +instdir = $(top_builddir)/lib +inst_LIBRARIES = libExp10.a +noinst_LIBRARIES = libExp10.a +libExp10_a_SOURCES = $(HEAD) $(SRC) +SRC = sexp10s.c \ + dexp10s.c \ + cexp10s.c \ + zexp10s.c \ + sexp10a.c \ + dexp10a.c \ + cexp10a.c \ + zexp10a.c + +HEAD = ../includes/exp10.h + +#### +# Checking Part +#### +check_INCLUDES = -I $(top_builddir)/elementaryFunctions/includes \ + -I $(top_builddir)/type + +testExp10_SOURCES = testExp10.c +testExp10_CFLAGS = $(check_INCLUDES) +testExp10_LDADD = $(top_builddir)/lib/libDoubleComplex.a \ + $(top_builddir)/lib/libFloatComplex.a \ + $(top_builddir)/lib/libExp10.a \ + @LIBMATH@ + +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign elementaryFunctions/exp10/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign elementaryFunctions/exp10/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-instLIBRARIES: $(inst_LIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(instdir)" || $(MKDIR_P) "$(DESTDIR)$(instdir)" + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(instLIBRARIES_INSTALL) '$$p' '$(DESTDIR)$(instdir)/$$f'"; \ + $(instLIBRARIES_INSTALL) "$$p" "$(DESTDIR)$(instdir)/$$f"; \ + else :; fi; \ + done + @$(POST_INSTALL) + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + p=$(am__strip_dir) \ + echo " $(RANLIB) '$(DESTDIR)$(instdir)/$$p'"; \ + $(RANLIB) "$(DESTDIR)$(instdir)/$$p"; \ + else :; fi; \ + done + +uninstall-instLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(instdir)/$$p'"; \ + rm -f "$(DESTDIR)$(instdir)/$$p"; \ + done + +clean-instLIBRARIES: + -test -z "$(inst_LIBRARIES)" || rm -f $(inst_LIBRARIES) + +clean-noinstLIBRARIES: + -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) +libExp10.a: $(libExp10_a_OBJECTS) $(libExp10_a_DEPENDENCIES) + -rm -f libExp10.a + $(libExp10_a_AR) libExp10.a $(libExp10_a_OBJECTS) $(libExp10_a_LIBADD) + $(RANLIB) libExp10.a + +clean-checkPROGRAMS: + -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS) +testExp10$(EXEEXT): $(testExp10_OBJECTS) $(testExp10_DEPENDENCIES) + @rm -f testExp10$(EXEEXT) + $(testExp10_LINK) $(testExp10_OBJECTS) $(testExp10_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cexp10a.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cexp10s.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dexp10a.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dexp10s.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sexp10a.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sexp10s.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testExp10-testExp10.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexp10a.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zexp10s.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +testExp10-testExp10.o: testExp10.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testExp10_CFLAGS) $(CFLAGS) -MT testExp10-testExp10.o -MD -MP -MF $(DEPDIR)/testExp10-testExp10.Tpo -c -o testExp10-testExp10.o `test -f 'testExp10.c' || echo '$(srcdir)/'`testExp10.c +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/testExp10-testExp10.Tpo $(DEPDIR)/testExp10-testExp10.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testExp10.c' object='testExp10-testExp10.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testExp10_CFLAGS) $(CFLAGS) -c -o testExp10-testExp10.o `test -f 'testExp10.c' || echo '$(srcdir)/'`testExp10.c + +testExp10-testExp10.obj: testExp10.c +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testExp10_CFLAGS) $(CFLAGS) -MT testExp10-testExp10.obj -MD -MP -MF $(DEPDIR)/testExp10-testExp10.Tpo -c -o testExp10-testExp10.obj `if test -f 'testExp10.c'; then $(CYGPATH_W) 'testExp10.c'; else $(CYGPATH_W) '$(srcdir)/testExp10.c'; fi` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/testExp10-testExp10.Tpo $(DEPDIR)/testExp10-testExp10.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testExp10.c' object='testExp10-testExp10.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testExp10_CFLAGS) $(CFLAGS) -c -o testExp10-testExp10.obj `if test -f 'testExp10.c'; then $(CYGPATH_W) 'testExp10.c'; else $(CYGPATH_W) '$(srcdir)/testExp10.c'; fi` + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +check-TESTS: $(TESTS) + @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \ + srcdir=$(srcdir); export srcdir; \ + list=' $(TESTS) '; \ + if test -n "$$list"; then \ + for tst in $$list; do \ + if test -f ./$$tst; then dir=./; \ + elif test -f $$tst; then dir=; \ + else dir="$(srcdir)/"; fi; \ + if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ + all=`expr $$all + 1`; \ + case " $(XFAIL_TESTS) " in \ + *$$ws$$tst$$ws*) \ + xpass=`expr $$xpass + 1`; \ + failed=`expr $$failed + 1`; \ + echo "XPASS: $$tst"; \ + ;; \ + *) \ + echo "PASS: $$tst"; \ + ;; \ + esac; \ + elif test $$? -ne 77; then \ + all=`expr $$all + 1`; \ + case " $(XFAIL_TESTS) " in \ + *$$ws$$tst$$ws*) \ + xfail=`expr $$xfail + 1`; \ + echo "XFAIL: $$tst"; \ + ;; \ + *) \ + failed=`expr $$failed + 1`; \ + echo "FAIL: $$tst"; \ + ;; \ + esac; \ + else \ + skip=`expr $$skip + 1`; \ + echo "SKIP: $$tst"; \ + fi; \ + done; \ + if test "$$failed" -eq 0; then \ + if test "$$xfail" -eq 0; then \ + banner="All $$all tests passed"; \ + else \ + banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ + fi; \ + else \ + if test "$$xpass" -eq 0; then \ + banner="$$failed of $$all tests failed"; \ + else \ + banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ + fi; \ + fi; \ + dashes="$$banner"; \ + skipped=""; \ + if test "$$skip" -ne 0; then \ + skipped="($$skip tests were not run)"; \ + test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ + dashes="$$skipped"; \ + fi; \ + report=""; \ + if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ + report="Please report to $(PACKAGE_BUGREPORT)"; \ + test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ + dashes="$$report"; \ + fi; \ + dashes=`echo "$$dashes" | sed s/./=/g`; \ + echo "$$dashes"; \ + echo "$$banner"; \ + test -z "$$skipped" || echo "$$skipped"; \ + test -z "$$report" || echo "$$report"; \ + echo "$$dashes"; \ + test "$$failed" -eq 0; \ + else :; fi + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am + $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) + $(MAKE) $(AM_MAKEFLAGS) check-TESTS +check: check-am +all-am: Makefile $(LIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(instdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-checkPROGRAMS clean-generic clean-instLIBRARIES \ + clean-noinstLIBRARIES mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-instLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-instLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ + clean-checkPROGRAMS clean-generic clean-instLIBRARIES \ + clean-noinstLIBRARIES ctags distclean distclean-compile \ + distclean-generic distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-instLIBRARIES install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ + uninstall-am uninstall-instLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/elementaryFunctions/exp10/cexp10a.c b/src/elementaryFunctions/exp10/cexp10a.c new file mode 100644 index 00000000..932f42ba --- /dev/null +++ b/src/elementaryFunctions/exp10/cexp10a.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** cexp10a.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 14:54:24 2006 jofret +** Last update Thu Sep 6 16:58:36 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "exp10.h" + +void cexp10a(floatComplex* x, floatComplex* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = cexp10s(x[i]); + } +} diff --git a/src/elementaryFunctions/exp10/cexp10s.c b/src/elementaryFunctions/exp10/cexp10s.c new file mode 100644 index 00000000..615d9fa4 --- /dev/null +++ b/src/elementaryFunctions/exp10/cexp10s.c @@ -0,0 +1,21 @@ +/* +** -*- C -*- +** +** cexp10s.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 12:04:28 2006 jofret +** Last update Thu Sep 6 17:09:51 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "exp10.h" + +floatComplex cexp10s(floatComplex z) { + float real = creals(z); + float imag = cimags(z); + + /* FIXME : Let's code... */ + return FloatComplex(real, imag); +} diff --git a/src/elementaryFunctions/exp10/dexp10a.c b/src/elementaryFunctions/exp10/dexp10a.c new file mode 100644 index 00000000..c243508a --- /dev/null +++ b/src/elementaryFunctions/exp10/dexp10a.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** dexp10a.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 14:54:56 2006 jofret +** Last update Thu Sep 6 16:57:38 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "exp10.h" + +void dexp10a(double* x, double* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = dexp10s(x[i]); + } +} diff --git a/src/elementaryFunctions/exp10/dexp10s.c b/src/elementaryFunctions/exp10/dexp10s.c new file mode 100644 index 00000000..eb77f952 --- /dev/null +++ b/src/elementaryFunctions/exp10/dexp10s.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** dexp10s.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 12:02:41 2006 jofret +** Last update Thu Sep 6 17:09:19 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include <math.h> +#include "exp10.h" + +double dexp10s(double x) { + return (pow(10, x)); +} diff --git a/src/elementaryFunctions/exp10/sexp10a.c b/src/elementaryFunctions/exp10/sexp10a.c new file mode 100644 index 00000000..f76089f7 --- /dev/null +++ b/src/elementaryFunctions/exp10/sexp10a.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** sexp10a.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 16:03:27 2006 jofret +** Last update Thu Sep 6 16:57:07 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "exp10.h" + +void sexp10a(float* x, float* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = sexp10s(x[i]); + } +} diff --git a/src/elementaryFunctions/exp10/sexp10s.c b/src/elementaryFunctions/exp10/sexp10s.c new file mode 100644 index 00000000..d34955fe --- /dev/null +++ b/src/elementaryFunctions/exp10/sexp10s.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** sexp10s.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 11:05:37 2006 jofret +** Last update Thu Sep 6 17:06:47 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include <math.h> +#include "exp10.h" + +float sexp10s(float x) { + return (pow(10,x)); +} diff --git a/src/elementaryFunctions/exp10/testExp10.c b/src/elementaryFunctions/exp10/testExp10.c new file mode 100644 index 00000000..e6b0c9d1 --- /dev/null +++ b/src/elementaryFunctions/exp10/testExp10.c @@ -0,0 +1,66 @@ +/* +** -*- C -*- +** +** testExp10.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Dec 8 15:05:44 2006 jofret +** Last update Thu Sep 6 16:56:42 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "testExp10.h" + +#define PI 3.1415826535 + +void sexp10sTest(void) { + printf(">> Float scalar\n"); + printf("sexp10s(0) = %f\n", sexp10s((float) 0)); + printf("sexp10s(PI) = %f\n", sexp10s(PI)); + printf("sexp10s(PI/2) = %f\n", sexp10s(PI/2)); + printf("sexp10s(PI/3) = %f\n", sexp10s(PI/3)); + printf("sexp10s(PI/4) = %f\n", sexp10s(PI/4)); + printf("sexp10s(PI/6) = %f\n", sexp10s(PI/6)); + printf("sexp10s(-PI) = %f\n", sexp10s(-PI)); + printf("sexp10s(-PI/2) = %f\n", sexp10s(-PI/2)); + printf("sexp10s(-PI/3) = %f\n", sexp10s(-PI/3)); + printf("sexp10s(-PI/4) = %f\n", sexp10s(-PI/4)); + printf("sexp10s(-PI/6) = %f\n", sexp10s(-PI/6)); +} + +void dexp10sTest(void) { + printf(">> Double scalar\n"); + printf("dexp10s(0) = %e\n", dexp10s((double) 0)); + printf("dexp10s(PI) = %e\n", dexp10s(PI)); + printf("dexp10s(PI/2) = %e\n", dexp10s(PI/2)); + printf("dexp10s(PI/3) = %e\n", dexp10s(PI/3)); + printf("dexp10s(PI/4) = %e\n", dexp10s(PI/4)); + printf("dexp10s(PI/6) = %e\n", dexp10s(PI/6)); + printf("dexp10s(-PI) = %e\n", dexp10s(-PI)); + printf("dexp10s(-PI/2) = %e\n", dexp10s(-PI/2)); + printf("dexp10s(-PI/3) = %e\n", dexp10s(-PI/3)); + printf("dexp10s(-PI/4) = %e\n", dexp10s(-PI/4)); + printf("dexp10s(-PI/6) = %e\n", dexp10s(-PI/6)); +} + +int testExp10(void) { + printf("\n>>>> Exp10onential Tests\n"); + sexp10sTest(); + dexp10sTest(); + /* FIXME : Implement some test here ... */ + /* + cexp10sTest(); + zexp10sTest(); + sexp10aTest(); + dexp10aTest(); + cexp10aTest(); + zexp10aTest(); + */ + return 0; +} + +int main(void) { + assert(testExp10() == 0); + return 0; +} diff --git a/src/elementaryFunctions/exp10/testExp10.h b/src/elementaryFunctions/exp10/testExp10.h new file mode 100644 index 00000000..9dbb749a --- /dev/null +++ b/src/elementaryFunctions/exp10/testExp10.h @@ -0,0 +1,40 @@ +/* +** -*- C -*- +** +** testExp10.h +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Wed Apr 18 17:07:03 2007 jofret +** Last update Thu Sep 6 16:56:09 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#ifndef _TESTEXP10_H_ +#define _TESTEXP10_H_ + +#include <stdio.h> +#include <assert.h> +#include "exp10.h" +#include "constant.h" + + +void sexp10sTest(void); + +void dexp10sTest(void); + +void cexp10sTest(void); + +void zexp10sTest(void); + +void sexp10aTest(void); + +void dexp10aTest(void); + +void cexp10aTest(void); + +void zexp10aTest(void); + +int testExp10(void); + +#endif /* ! _TESTEXP10_H_ */ diff --git a/src/elementaryFunctions/exp10/zexp10a.c b/src/elementaryFunctions/exp10/zexp10a.c new file mode 100644 index 00000000..7f2ae965 --- /dev/null +++ b/src/elementaryFunctions/exp10/zexp10a.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** zexp10a.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 16:12:02 2006 jofret +** Last update Thu Sep 6 16:56:32 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "exp10.h" + +void zexp10a(doubleComplex* x, doubleComplex* y, int size) { + int i = 0; + for (i = 0; i < size; ++i) { + y[i] = zexp10s(x[i]); + } +} diff --git a/src/elementaryFunctions/exp10/zexp10s.c b/src/elementaryFunctions/exp10/zexp10s.c new file mode 100644 index 00000000..55a88cff --- /dev/null +++ b/src/elementaryFunctions/exp10/zexp10s.c @@ -0,0 +1,23 @@ +/* +** -*- C -*- +** +** zexp10s.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Dec 7 12:05:48 2006 jofret +** Last update Thu Sep 6 16:56:19 2007 bruno +** +** Copyright INRIA 2006 +*/ + +#include "exp10.h" +#include "cos.h" +#include "sin.h" + +doubleComplex zexp10s(doubleComplex z) { + double real = zreals(z); + double imag = zimags(z); + + return DoubleComplex(dexp10s(real)*dcoss(imag), + dexp10s(real)*dsins(imag)); +} diff --git a/src/elementaryFunctions/log10/Makefile.am b/src/elementaryFunctions/log10/Makefile.am new file mode 100644 index 00000000..436fa394 --- /dev/null +++ b/src/elementaryFunctions/log10/Makefile.am @@ -0,0 +1,33 @@ +## +## -*- makefile -*- +## +## Makefile +## Made by Bruno JOFRET <bruno.jofret@inria.fr> +## +## Started on Fri Jan 5 10:19:16 2007 jofret +## Last update Thu Sep 6 16:21:13 2007 bruno +## +## Copyright INRIA 2007 +## + +AM_CFLAGS = -I ../../type \ + -I ../includes + +instdir = $(top_builddir)/lib + +inst_LIBRARIES = libLog10.a + +noinst_LIBRARIES = libLog10.a + +libLog10_a_SOURCES = $(HEAD) $(SRC) + +SRC = slog10s.c \ + dlog10s.c \ + clog10s.c \ + zlog10s.c \ + slog10a.c \ + dlog10a.c \ + clog10a.c \ + zlog10a.c + +HEAD = ../includes/log10.h diff --git a/src/elementaryFunctions/log10/Makefile.in b/src/elementaryFunctions/log10/Makefile.in new file mode 100644 index 00000000..0b07bdc1 --- /dev/null +++ b/src/elementaryFunctions/log10/Makefile.in @@ -0,0 +1,475 @@ +# Makefile.in generated by automake 1.10 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = elementaryFunctions/log10 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/fortran.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/includes/machine.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(instdir)" +instLIBRARIES_INSTALL = $(INSTALL_DATA) +LIBRARIES = $(inst_LIBRARIES) $(noinst_LIBRARIES) +AR = ar +ARFLAGS = cru +libLog10_a_AR = $(AR) $(ARFLAGS) +libLog10_a_LIBADD = +am__objects_1 = +am__objects_2 = slog10s.$(OBJEXT) dlog10s.$(OBJEXT) clog10s.$(OBJEXT) \ + zlog10s.$(OBJEXT) slog10a.$(OBJEXT) dlog10a.$(OBJEXT) \ + clog10a.$(OBJEXT) zlog10a.$(OBJEXT) +am_libLog10_a_OBJECTS = $(am__objects_1) $(am__objects_2) +libLog10_a_OBJECTS = $(am_libLog10_a_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)/includes@am__isrc@ +depcomp = $(SHELL) $(top_srcdir)/config/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(libLog10_a_SOURCES) +DIST_SOURCES = $(libLog10_a_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBMATH = @LIBMATH@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +AM_CFLAGS = -I ../../type \ + -I ../includes + +instdir = $(top_builddir)/lib +inst_LIBRARIES = libLog10.a +noinst_LIBRARIES = libLog10.a +libLog10_a_SOURCES = $(HEAD) $(SRC) +SRC = slog10s.c \ + dlog10s.c \ + clog10s.c \ + zlog10s.c \ + slog10a.c \ + dlog10a.c \ + clog10a.c \ + zlog10a.c + +HEAD = ../includes/log10.h +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .o .obj +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign elementaryFunctions/log10/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign elementaryFunctions/log10/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +install-instLIBRARIES: $(inst_LIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(instdir)" || $(MKDIR_P) "$(DESTDIR)$(instdir)" + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + f=$(am__strip_dir) \ + echo " $(instLIBRARIES_INSTALL) '$$p' '$(DESTDIR)$(instdir)/$$f'"; \ + $(instLIBRARIES_INSTALL) "$$p" "$(DESTDIR)$(instdir)/$$f"; \ + else :; fi; \ + done + @$(POST_INSTALL) + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + if test -f $$p; then \ + p=$(am__strip_dir) \ + echo " $(RANLIB) '$(DESTDIR)$(instdir)/$$p'"; \ + $(RANLIB) "$(DESTDIR)$(instdir)/$$p"; \ + else :; fi; \ + done + +uninstall-instLIBRARIES: + @$(NORMAL_UNINSTALL) + @list='$(inst_LIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(instdir)/$$p'"; \ + rm -f "$(DESTDIR)$(instdir)/$$p"; \ + done + +clean-instLIBRARIES: + -test -z "$(inst_LIBRARIES)" || rm -f $(inst_LIBRARIES) + +clean-noinstLIBRARIES: + -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) +libLog10.a: $(libLog10_a_OBJECTS) $(libLog10_a_DEPENDENCIES) + -rm -f libLog10.a + $(libLog10_a_AR) libLog10.a $(libLog10_a_OBJECTS) $(libLog10_a_LIBADD) + $(RANLIB) libLog10.a + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clog10a.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clog10s.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dlog10a.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dlog10s.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/slog10a.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/slog10s.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zlog10a.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/zlog10s.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(LIBRARIES) +installdirs: + for dir in "$(DESTDIR)$(instdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-instLIBRARIES clean-noinstLIBRARIES \ + mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-instLIBRARIES + +install-dvi: install-dvi-am + +install-exec-am: + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-instLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ + clean-instLIBRARIES clean-noinstLIBRARIES ctags distclean \ + distclean-compile distclean-generic distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-instLIBRARIES install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-instLIBRARIES + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/src/elementaryFunctions/log10/clog10a.c b/src/elementaryFunctions/log10/clog10a.c new file mode 100644 index 00000000..f38c2651 --- /dev/null +++ b/src/elementaryFunctions/log10/clog10a.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** clog10a.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Sep 6 16:23:40 2007 bruno +** Last update Fri Sep 7 10:49:01 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "log10.h" + +void clog10a(floatComplex* in, floatComplex* out, int size) { + int i = 0; + for (i = 0 ; i < size ; ++i) { + out[i] = clog10s(in[i]); + } +} diff --git a/src/elementaryFunctions/log10/clog10s.c b/src/elementaryFunctions/log10/clog10s.c new file mode 100644 index 00000000..f6da08fc --- /dev/null +++ b/src/elementaryFunctions/log10/clog10s.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** clog10s.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Apr 20 14:29:12 2007 jofret +** Last update Thu Sep 6 16:23:37 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "log10.h" + +floatComplex clog10s(floatComplex in) { + /* FIXME : Implementation */ + return FloatComplex(0, 0); +} diff --git a/src/elementaryFunctions/log10/dlog10a.c b/src/elementaryFunctions/log10/dlog10a.c new file mode 100644 index 00000000..14ceb067 --- /dev/null +++ b/src/elementaryFunctions/log10/dlog10a.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** dlog10a.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Sep 6 16:23:09 2007 bruno +** Last update Fri Sep 7 10:43:49 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "log10.h" + +void dlog10a(double* in, double* out, int size) { + int i = 0; + for (i = 0 ; i < size ; ++i) { + out[i] = dlog10s(in[i]); + } +} diff --git a/src/elementaryFunctions/log10/dlog10s.c b/src/elementaryFunctions/log10/dlog10s.c new file mode 100644 index 00000000..2b9750dc --- /dev/null +++ b/src/elementaryFunctions/log10/dlog10s.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** dlog10s.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Apr 20 14:26:10 2007 jofret +** Last update Thu Sep 6 16:23:04 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include <math.h> +#include "log10.h" + +double dlog10s(double in) { + return (log10(in)); +} diff --git a/src/elementaryFunctions/log10/slog10a.c b/src/elementaryFunctions/log10/slog10a.c new file mode 100644 index 00000000..e161d8d0 --- /dev/null +++ b/src/elementaryFunctions/log10/slog10a.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** slog10a.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Sep 6 16:22:18 2007 bruno +** Last update Fri Sep 7 10:42:46 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "log10.h" + +void slog10a(float* in, float* out, int size) { + int i = 0; + for (i = 0 ; i < size ; ++i) { + out[i] = slog10s(in[i]); + } +} diff --git a/src/elementaryFunctions/log10/slog10s.c b/src/elementaryFunctions/log10/slog10s.c new file mode 100644 index 00000000..07ad59fa --- /dev/null +++ b/src/elementaryFunctions/log10/slog10s.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** slog10s.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Apr 20 14:25:04 2007 jofret +** Last update Thu Sep 6 16:22:12 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include <math.h> +#include "log10.h" + +float slog10s(float in) { + return (log10(in)); +} diff --git a/src/elementaryFunctions/log10/zlog10a.c b/src/elementaryFunctions/log10/zlog10a.c new file mode 100644 index 00000000..c4036c81 --- /dev/null +++ b/src/elementaryFunctions/log10/zlog10a.c @@ -0,0 +1,20 @@ +/* +** -*- C -*- +** +** zlog10a.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Thu Sep 6 16:21:57 2007 bruno +** Last update Fri Sep 7 10:50:59 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "log10.h" + +void zlog10a(doubleComplex* in, doubleComplex* out, int size) { + int i = 0; + for (i = 0 ; i < size ; ++i) { + out[i] = zlog10s(in[i]); + } +} diff --git a/src/elementaryFunctions/log10/zlog10s.c b/src/elementaryFunctions/log10/zlog10s.c new file mode 100644 index 00000000..cdae9336 --- /dev/null +++ b/src/elementaryFunctions/log10/zlog10s.c @@ -0,0 +1,18 @@ +/* +** -*- C -*- +** +** zlog10s.c +** Made by Bruno JOFRET <bruno.jofret@inria.fr> +** +** Started on Fri Apr 20 14:31:56 2007 jofret +** Last update Thu Sep 6 16:21:32 2007 bruno +** +** Copyright INRIA 2007 +*/ + +#include "log10.h" + +doubleComplex zlog10s(doubleComplex in) { + /* FIXME : Implementation */ + return DoubleComplex(0, 0); +} |