/usr/include/libgoffice-0.10/goffice/math/go-complex.h is in libgoffice-0.10-dev 0.10.39-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | #ifndef GOFFICE_COMPLEX_H
#define GOFFICE_COMPLEX_H
#include <glib.h>
G_BEGIN_DECLS
typedef struct {
double re, im;
} GOComplex;
#define go_complex GOComplex
#ifdef GOFFICE_WITH_LONG_DOUBLE
typedef struct {
long double re, im;
} GOComplexl;
#define go_complexl GOComplexl
#endif
#include "go-math.h"
/* ------------------------------------------------------------------------- */
GType go_complex_get_type (void);
char *go_complex_to_string (GOComplex const *src, char const *reformat,
char const *imformat, char imunit);
int go_complex_from_string (GOComplex *dst, char const *src, char *imunit);
void go_complex_to_polar (double *mod, double *angle, GOComplex const *src);
void go_complex_from_polar (GOComplex *dst, double mod, double angle);
void go_complex_from_polar_pi (GOComplex *dst, double mod, double angle);
void go_complex_mul (GOComplex *dst, GOComplex const *a, GOComplex const *b);
void go_complex_div (GOComplex *dst, GOComplex const *a, GOComplex const *b);
void go_complex_pow (GOComplex *dst, GOComplex const *a, GOComplex const *b);
void go_complex_powx (GOComplex *dst, double *e,
GOComplex const *a, GOComplex const *b);
void go_complex_sqrt (GOComplex *dst, GOComplex const *src);
void go_complex_init (GOComplex *dst, double re, double im);
void go_complex_invalid (GOComplex *dst);
void go_complex_real (GOComplex *dst, double re);
int go_complex_real_p (GOComplex const *src);
int go_complex_zero_p (GOComplex const *src);
int go_complex_invalid_p (GOComplex const *src);
double go_complex_mod (GOComplex const *src);
double go_complex_angle (GOComplex const *src);
double go_complex_angle_pi (GOComplex const *src);
void go_complex_conj (GOComplex *dst, GOComplex const *src);
void go_complex_scale_real (GOComplex *dst, double f);
void go_complex_add (GOComplex *dst, GOComplex const *a, GOComplex const *b);
void go_complex_sub (GOComplex *dst, GOComplex const *a, GOComplex const *b);
void go_complex_exp (GOComplex *dst, GOComplex const *src);
void go_complex_ln (GOComplex *dst, GOComplex const *src);
void go_complex_sin (GOComplex *dst, GOComplex const *src);
void go_complex_cos (GOComplex *dst, GOComplex const *src);
void go_complex_tan (GOComplex *dst, GOComplex const *src);
/* ------------------------------------------------------------------------- */
/* long double version */
#ifdef GOFFICE_WITH_LONG_DOUBLE
GType go_complexl_get_type (void);
char *go_complex_to_stringl (GOComplexl const *src, char const *reformat,
char const *imformat, char imunit);
int go_complex_from_stringl (GOComplexl *dst, char const *src, char *imunit);
void go_complex_to_polarl (long double *mod, long double *angle, GOComplexl const *src);
void go_complex_from_polarl (GOComplexl *dst, long double mod, long double angle);
void go_complex_from_polar_pil (GOComplexl *dst, long double mod, long double angle);
void go_complex_mull (GOComplexl *dst, GOComplexl const *a, GOComplexl const *b);
void go_complex_divl (GOComplexl *dst, GOComplexl const *a, GOComplexl const *b);
void go_complex_powl (GOComplexl *dst, GOComplexl const *a, GOComplexl const *b);
void go_complex_powxl (GOComplexl *dst, long double *e,
GOComplexl const *a, GOComplexl const *b);
void go_complex_sqrtl (GOComplexl *dst, GOComplexl const *src);
void go_complex_initl (GOComplexl *dst, long double re, long double im);
void go_complex_invalidl (GOComplexl *dst);
void go_complex_reall (GOComplexl *dst, long double re);
int go_complex_real_pl (GOComplexl const *src);
int go_complex_zero_pl (GOComplexl const *src);
int go_complex_invalid_pl (GOComplexl const *src);
long double go_complex_modl (GOComplexl const *src);
long double go_complex_anglel (GOComplexl const *src);
long double go_complex_angle_pil (GOComplexl const *src);
void go_complex_conjl (GOComplexl *dst, GOComplexl const *src);
void go_complex_scale_reall (GOComplexl *dst, long double f);
void go_complex_addl (GOComplexl *dst, GOComplexl const *a, GOComplexl const *b);
void go_complex_subl (GOComplexl *dst, GOComplexl const *a, GOComplexl const *b);
void go_complex_expl (GOComplexl *dst, GOComplexl const *src);
void go_complex_lnl (GOComplexl *dst, GOComplexl const *src);
void go_complex_sinl (GOComplexl *dst, GOComplexl const *src);
void go_complex_cosl (GOComplexl *dst, GOComplexl const *src);
void go_complex_tanl (GOComplexl *dst, GOComplexl const *src);
#endif /* GOFFICE_WITH_LONG_DOUBLE */
/* ------------------------------------------------------------------------- */
G_END_DECLS
#endif
|