-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathreal.h
42 lines (34 loc) · 1.6 KB
/
real.h
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
#ifndef MPU_REAL_H
#define MPU_REAL_H
#include <gmp.h>
#include "ptypes.h"
extern void bernfrac(mpz_t num, mpz_t den, const mpz_t n);
extern void harmfrac(mpz_t num, mpz_t den, const mpz_t n);
extern void li(mpf_t li, mpf_t x, unsigned long prec);
extern void ei(mpf_t li, mpf_t x, unsigned long prec);
extern void const_euler(mpf_t gamma, unsigned long prec);
extern void const_pi(mpf_t pi, unsigned long prec);
extern void const_log2(mpf_t logn, unsigned long prec);
extern void free_float_constants(void);
extern void free_borwein_zeta(void);
extern void free_bernoulli(void);
extern void bernvec(const mpz_t **N, const mpz_t **D, unsigned long n);
extern char* bernreal(mpz_t zn, unsigned long prec);
extern char* harmreal(mpz_t zn, unsigned long prec);
extern char* zetareal(mpf_t r, unsigned long prec);
extern char* eireal(mpf_t r, unsigned long prec);
extern char* lireal(mpf_t r, unsigned long prec);
extern char* riemannrreal(mpf_t r, unsigned long prec);
extern char* lambertwreal(mpf_t r, unsigned long prec);
extern char* logreal(mpf_t r, unsigned long prec);
extern char* expreal(mpf_t r, unsigned long prec);
extern char* powreal(mpf_t r, mpf_t x, unsigned long prec);
extern char* rootreal(mpf_t r, mpf_t x, unsigned long prec);
extern char* addreal(mpf_t r, mpf_t x, unsigned long prec);
extern char* subreal(mpf_t r, mpf_t x, unsigned long prec);
extern char* mulreal(mpf_t r, mpf_t x, unsigned long prec);
extern char* divreal(mpf_t r, mpf_t x, unsigned long prec);
extern char* agmreal(mpf_t a, mpf_t b, unsigned long prec);
extern char* eulerconst(unsigned long n);
extern char* piconst(unsigned long n);
#endif