Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

from sage.libs.mpfr.types cimport mpfr_prec_t 

from sage.libs.mpfi.types cimport mpfi_t 

  

cimport sage.structure.element 

from .real_mpfi cimport RealIntervalFieldElement, RealIntervalField_class 

  

  

cdef class ComplexIntervalFieldElement(sage.structure.element.FieldElement): 

cdef mpfi_t __re 

cdef mpfi_t __im 

cdef mpfr_prec_t _prec 

  

cdef inline ComplexIntervalFieldElement _new(self): 

""" 

Quickly create a new complex interval with the same parent as 

``self``. 

""" 

cdef type t = type(self) 

return t.__new__(t, self._parent) 

  

cdef inline RealIntervalFieldElement _new_real(self): 

""" 

Quickly create a new real interval with the same precision as 

``self``. 

""" 

P = <RealIntervalField_class>(self._parent.real_field()) 

return P._new()