Changeset 7489:f8693d3c5b70


Ignore:
Timestamp:
12/01/07 23:00:17 (5 years ago)
Author:
William Stein <wstein@…>
Branch:
default
Message:

Fix a mistake introduced in the maxima interface (removing real and imag methods was stupid).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/interfaces/maxima.py

    r7482 r7489  
    13671367        return R(self._sage_()) 
    13681368 
     1369    def real(self): 
     1370        """ 
     1371        Return the real part of this maxima element. 
     1372 
     1373        EXAMPLES: 
     1374            sage: maxima('2 + (2/3)*%i').real() 
     1375            2 
     1376        """ 
     1377        return self.realpart() 
     1378 
     1379    def imag(self): 
     1380        """ 
     1381        Return the imaginary part of this maxima element. 
     1382 
     1383        EXAMPLES: 
     1384            sage: maxima('2 + (2/3)*%i').imag() 
     1385            2/3 
     1386        """ 
     1387        return self.imagpart() 
     1388 
    13691389    def numer(self): 
    13701390        """ 
Note: See TracChangeset for help on using the changeset viewer.