# HG changeset patch
# User Burcin Erocal <burcin@erocal.org>
# Date 1284023759 7200
# Node ID de37d995a17c6ac9a4d1978c29b1789e0a9387a2
# Parent 6384a472bba2027c020cffbff63f32f3d872ed84
#9881: add doctests to the csgn() method of symbolic expressions to demonstrate behavior on complex input.
diff git a/sage/symbolic/expression.pyx b/sage/symbolic/expression.pyx
a

b


4658  4658  0, and 1 if self > 0, or unevaluated when self is a nonconstant 
4659  4659  symbolic expression. 
4660  4660  
4661   It can be somewhat arbitrary when self is not real. 
4662   
4663   EXAMPLES: 
 4661  If self is not real, return the complex halfplane (left or right) 
 4662  in which the number lies. 
 4663  
 4664  EXAMPLES:: 
 4665  
4664  4666  sage: x = var('x') 
4665  4667  sage: SR(2).csgn() 
4666  4668  1 
… 
… 

5617  5619  1 
5618  5620  sage: SR(0).binomial(0) 
5619  5621  1 
 5622  sage: SR(I).csgn() 
 5623  1 
 5624  sage: SR(1+I).csgn() 
 5625  1 
 5626  sage: SR(1I).csgn() 
 5627  1 
 5628  sage: SR(1+I).csgn() 
 5629  1 
 5630  sage: SR(1I).csgn() 
 5631  1 
5620  5632  """ 
5621  5633  cdef Expression nexp = self.coerce_in(k) 
5622  5634  _sig_on 