Changeset 7904:e9a115168d29
- Timestamp:
- 01/01/08 22:09:07 (5 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
sage/rings/real_mpfi.pyx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sage/rings/real_mpfi.pyx
r7710 r7904 809 809 def _interface_init_(self): 810 810 """ 811 Return string representation of self in base 10 with 812 no scientific notation. 813 814 This function is the default for exporting to other 815 computer algebra systems. It probably does not match 816 the syntax of any other computer algebra system, and should 817 be changed if other computer algebra systems do support intervals. 811 Raise a TypeError. 812 813 This function would return the string representation of self 814 that makes sense as a default representation of a real 815 interval in other computer algebra systems. But, most 816 other computer algebra systems do not support interval 817 arithmetic, so instead we just raise a TypeError. 818 819 Define the appropriate _cas_init_ function if there is a 820 computer algebra system you would like to support. 818 821 819 822 EXAMPLES: 820 823 sage: n = RIF(1.3939494594) 821 824 sage: n._interface_init_() 822 '[1.3939494593999999 .. 1.3939494594000000]' 823 """ 824 return self.str(10, no_sci=True) 825 Traceback (most recent call last): 826 ... 827 TypeError 828 829 Here a conversion to Maxima happens implicitly, which 830 results in a type error: 831 sage: a = RealInterval('2.3') 832 sage: erf(a) 833 Traceback (most recent call last): 834 ... 835 TypeError 836 """ 837 raise TypeError 838 #return self.str(10, no_sci=True) 825 839 826 840 def __hash__(self):
Note: See TracChangeset
for help on using the changeset viewer.
