aboutsummaryrefslogtreecommitdiff
path: root/ic-reals-6.3/math-lib/acosh_R.c
blob: 467539be596282a8df7a1ccdb2d828a876195e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (C) 2000, Imperial College
 *
 * This file is part of the Imperial College Exact Real Arithmetic Library.
 * See the copyright notice included in the distribution for conditions
 * of use.
 */

#include <stdio.h>
#include "real.h"

Real
acosh_R(Real x)
{
	Real r;

	r = tensor_Int(x, x, 1, 0, 0, 0, 0, 0, -1, 1);
	r = sqrt_R(r);
	r = add_R_R(x, r);
	r = log_R(r);
	return r;
}