# HG changeset patch
# User Burcin Erocal <burcin@erocal.org>
# Date 1337093469 7200
# Node ID d84392d4da573c5dd59d339214b0a9fa1f750580
# Parent 2a811978cf1d996463b279ff0fc95eccaa9ab53d
Add doctests to check that beta() remains symbolic if both inputs are exact.
diff git a/sage/functions/other.py b/sage/functions/other.py
a

b


1421  1421  sage: beta(1/2,3*x) 
1422  1422  beta(3*x, 1/2) 
1423  1423  
1424   The following must be fixed to remain symbolic:: 
 1424  The result is symbolic if exact input is given:: 
1425  1425  
1426  1426  sage: beta(2,1+5*I) 
1427   0.0305039787798408  0.0198938992042440*I 
 1427  beta(2, 5*I + 1) 
 1428  sage: beta(2, 2.) 
 1429  0.166666666666667 
 1430  sage: beta(I, 2.) 
 1431  0.500000000000000  0.500000000000000*I 
 1432  sage: beta(2., 2) 
 1433  0.166666666666667 
 1434  sage: beta(2., I) 
 1435  0.500000000000000  0.500000000000000*I 
1428  1436  
1429  1437  Test pickling:: 
1430  1438  