1 /*
2     Copyright (C) 2013 Fredrik Johansson
3 
4     This file is part of Arb.
5 
6     Arb is free software: you can redistribute it and/or modify it under
7     the terms of the GNU Lesser General Public License (LGPL) as published
8     by the Free Software Foundation; either version 2.1 of the License, or
9     (at your option) any later version.  See <http://www.gnu.org/licenses/>.
10 */
11 
12 #include "acb.h"
13 #include "acb_hypgeom.h"
14 
15 void
acb_rising2_ui(acb_t u,acb_t v,const acb_t x,ulong n,slong prec)16 acb_rising2_ui(acb_t u, acb_t v, const acb_t x, ulong n, slong prec)
17 {
18     if (x == u || x == v)
19     {
20         acb_t t;
21         acb_init(t);
22         acb_set(t, x);
23         acb_rising2_ui(u, v, t, n, prec);
24         acb_clear(t);
25     }
26     else
27     {
28         acb_struct tmp[2];
29 
30         tmp[0] = *u;
31         tmp[1] = *v;
32 
33         acb_hypgeom_rising_ui_jet(tmp, x, n, 2, prec);
34 
35         *u = tmp[0];
36         *v = tmp[1];
37     }
38 }
39 
40