Ticket #12950: trac_12950-symbolic_beta-trac.patch

File trac_12950-symbolic_beta-trac.patch, 1.0 KB (added by jpflori, 7 years ago)
  • sage/functions/other.py

    # HG changeset patch
    # User Burcin Erocal <burcin@erocal.org>
    # Date 1337093469 -7200
    # Node ID d84392d4da573c5dd59d339214b0a9fa1f750580
    # Parent  2a811978cf1d996463b279ff0fc95eccaa9ab53d
    Trac #12950: 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  
    14211421            sage: beta(1/2,3*x)
    14221422            beta(3*x, 1/2)
    14231423
    1424         The following must be fixed to remain symbolic::
     1424        The result is symbolic if exact input is given::
    14251425
    14261426            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
    14281436
    14291437        Test pickling::
    14301438