Hello,

1) I tried to implement a subfield of the complex numbers. I was very
annoyed by the following conventions:

 - the default method to convert to RealField (e.g. RR) is _mpfr_
 - the default method to convert to ComplexField (e.g. CC) is
_complex_mpfr_field_

and idem for RealIntervalField and ComplexIntervalField for which it
is respectively _mpfi_ and _complex_mpfi_field_. I would rather change
the complex versions to _complex_mpfr_ and _complex_mpfi_ instead.

Is there a strong preference to keep the current situation?

2) I had trouble with conversions found by the coercion system.
Defining a field with a method _complex_mpfr_field_ on its elements
leads to infinite recursion error. The coercion system wants to go
through CLF and it is not clear to me why (see the attachment).

Any remark or help would be appreciated.

Vincent

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Attachment: my_field.py
Description: application/download

Reply via email to