Ticket #12289: trac_12289-example.patch

File trac_12289-example.patch, 456 bytes (added by burcin, 8 years ago)
  • sage/functions/trig.py

    # HG changeset patch
    # User Burcin Erocal <burcin@erocal.org>
    # Date 1326181532 -3600
    
    diff --git a/sage/functions/trig.py b/sage/functions/trig.py
    a b  
    374374            sage: float(cot(1))
    375375            0.64209261593433...
    376376        """
     377        if algorithm == 'foo':
     378            return parent(11)
    377379        if parent is float:
    378380            return 1/math.tan(x)
    379381        return x.cot()