Processing Math: Done
jsMath
Differences between revisions 2 and 3
Revision 2 as of 2008-02-08 08:17:08
Size: 1460
Editor: CraigCitro
Comment:
Revision 3 as of 2008-02-08 08:19:58
Size: 1593
Editor: DavidRoe
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Line 4: Line 3:
     * __init__      * {{{__init__}}}
Line 20: Line 19:
     * __contains__      * {{{__contains__}}}
Line 22: Line 21:
     * __cmp__
     * __call__
     * {{{__cmp__}}}
   * Generic Functions that are provided for you (don't override unless you know what you're doing)
     * {{{__call__}}}
Line 25: Line 25:
     * __iter__      * {{{__iter__}}}
  • Parent functions
    • Must Implement
      • __init__

      • has_coercion_from (cpdef)
      • gen
      • ngens
      • base_extend?
    • For Advanced Users
      • make_coercion_from (cpdef)
      • make_conversion_from (cpdef)
      • make_action_on (cpdef)
      • make_action_by (cpdef)
      • _populate_coercion_lists (cpdef)
    • Advanced Calls
      • get_coercion_from (cpdef)
      • get_conversion_from (cpdef)
      • get_action (cpdef)
    • Generic Functions you might override
      • __contains__

        • Do we really want to do this? Cases: is mod(3, 5) in ZZ? is Zp(5)(17) in ZZ? is QQ(2) in ZZ? is RR(2) in ZZ?
      • __cmp__

    • Generic Functions that are provided for you (don't override unless you know what you're doing)
      • __call__

    • Not defined functions you may want to define
      • __iter__

  • Element functions
    • Arithmetic (raise NotImplemented)

      • _add_ (cpdef)
      • _mul_ (cpdef)
      • neg (spec)

      • invert (spec)

    • Arithmetic (With Defaults)
      • _sub_ (cpdef)
      • _div_ (cpdef)
      • _powlong_
      • _pow_
    • Functions you may want to implement
      • _polynomial_

days7/coercion (last edited 2009-02-26 20:44:02 by robertwb)