Commit cc6bd2f2 authored by Morten Welinder's avatar Morten Welinder

special functions: extra gamma-related functions to sf-gamma.c

parent 10d4521a
......@@ -27,16 +27,15 @@
*/
#include <gnumeric-config.h>
#include <gnumeric.h>
#include "func.h"
#include "mathfunc.h"
#include "value.h"
#include "gnm-i18n.h"
#include "numbers.h"
#include <gnm-i18n.h>
#include <goffice/goffice.h>
#include <gnm-plugin.h>
#include <func.h>
#include <mathfunc.h>
#include <sf-gamma.h>
#include <value.h>
#include <math.h>
#include <string.h>
......
......@@ -29,6 +29,7 @@
#include <workbook.h>
#include <mathfunc.h>
#include <sf-trig.h>
#include <sf-gamma.h>
#include <rangefunc.h>
#include <collect.h>
#include <value.h>
......
......@@ -2,6 +2,7 @@
#include "gnumeric.h"
#include <mathfunc.h>
#include <sf-trig.h>
#include <sf-gamma.h>
#include "extra.h"
#define ML_ERR_return_NAN { return gnm_nan; }
......
......@@ -25,6 +25,7 @@
#include <gnumeric.h>
#include <func.h>
#include <mathfunc.h>
#include <sf-gamma.h>
#include <rangefunc.h>
#include <regression.h>
#include <sheet.h>
......
......@@ -153,6 +153,7 @@ libspreadsheet_la_SOURCES = \
search.c \
selection.c \
session.c \
sf-gamma.c \
sf-trig.c \
sheet.c \
sheet-view.c \
......@@ -280,6 +281,7 @@ libspreadsheet_include_HEADERS = \
search.h \
selection.h \
session.h \
sf-gamma.h \
sf-trig.h \
sheet.h \
sheet-view.h \
......
......@@ -6,6 +6,7 @@
#include "gnumeric.h"
#include "gnm-random.h"
#include "mathfunc.h"
#include "sf-gamma.h"
#include <glib/gstdio.h>
#ifdef G_OS_WIN32
#include <windows.h>
......
This diff is collapsed.
......@@ -23,25 +23,19 @@ G_BEGIN_DECLS
#define M_LN10gnum GNM_const(2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598)
#define M_SQRT2gnum GNM_const(1.414213562373095048801688724209698078569671875376948073176679737990732478462107038850387534327642)
#define M_Egnum GNM_const(2.718281828459045235360287471352662497757247)
#define M_LN_SQRT_2PI GNM_const(0.918938533204672741780329736406) /* log(sqrt(2*pi)) */
/* ------------------------------------------------------------------------- */
gnm_float log1pmx (gnm_float x);
gnm_float swap_log_tail (gnm_float lp);
gnm_float lgamma1p (gnm_float a);
gnm_float pow1p (gnm_float x, gnm_float y);
gnm_float pow1pm1 (gnm_float x, gnm_float y);
gnm_float gnm_trunc (gnm_float x);
gnm_float logfbit (gnm_float x);
gnm_float logspace_add (gnm_float logx, gnm_float logy);
gnm_float logspace_sub (gnm_float logx, gnm_float logy);
gnm_float stirlerr(gnm_float n);
gnm_float gnm_owent (gnm_float h, gnm_float a);
gnm_float pochhammer (gnm_float x, gnm_float n, gboolean give_log);
gnm_float gnm_gamma (gnm_float x);
gnm_float beta (gnm_float a, gnm_float b);
gnm_float lbeta3 (gnm_float a, gnm_float b, int *sign);
gnm_float gnm_logcf (gnm_float x, gnm_float i, gnm_float d);
gnm_float gnm_bessel_i (gnm_float x, gnm_float alpha);
gnm_float gnm_bessel_j (gnm_float x, gnm_float alpha);
......@@ -172,11 +166,6 @@ void gnm_matrix_multiply (GnmMatrix *C, const GnmMatrix *A, const GnmMatrix *B);
gboolean gnm_matrix_eigen (GnmMatrix const *m, GnmMatrix *EIG, gnm_float *eigenvalues);
/* ------------------------------------------------------------------------- */
gnm_float combin (gnm_float n, gnm_float k);
gnm_float permut (gnm_float n, gnm_float k);
int qfactf (gnm_float x, GnmQuad *mant, int *exp2);
gnm_float gnm_fact (gnm_float x);
gint gnm_float_equal (gnm_float const *a, const gnm_float *b);
guint gnm_float_hash (gnm_float const *d);
......
......@@ -12,6 +12,7 @@
#include "rangefunc.h"
#include "mathfunc.h"
#include "sf-gamma.h"
#include <math.h>
#include <stdlib.h>
#include <string.h>
......
This diff is collapsed.
#ifndef GNM_SF_GAMMA_H_
#define GNM_SF_GAMMA_H_
#include <numbers.h>
gnm_float lgamma1p (gnm_float a);
gnm_float stirlerr(gnm_float n);
gnm_float gnm_gamma (gnm_float x);
gnm_float gnm_fact (gnm_float x);
int qfactf (gnm_float x, GnmQuad *mant, int *exp2);
gnm_float gnm_lbeta (gnm_float a, gnm_float b);
gnm_float beta (gnm_float a, gnm_float b);
gnm_float lbeta3 (gnm_float a, gnm_float b, int *sign);
gnm_float pochhammer (gnm_float x, gnm_float n, gboolean give_log);
gnm_float combin (gnm_float n, gnm_float k);
gnm_float permut (gnm_float n, gnm_float k);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment