Generated by Cython 0.9.6.14 on Thu Jun 12 07:43:47 2008

Raw output: _Users_was_notebook_misc_worksheets_admin_175_code_sage269_spyx_0.c

 1: 
 2: include "interrupt.pxi"  # ctrl-c interrupt block support
 3: include "stdsage.pxi"  # ctrl-c interrupt block support
 4: 
 5: include "cdefs.pxi"
 6: def mymean2(int n):
static PyObject *__pyx_pf_65_Users_was_notebook_misc_worksheets_admin_175_code_sage269_spyx_0_mymean2(PyObject *__pyx_self, PyObject *__pyx_arg_n); /*proto*/
static char __pyx_doc_65_Users_was_notebook_misc_worksheets_admin_175_code_sage269_spyx_0_mymean2[] = "File: _Users_was_notebook_misc_worksheets_admin_175_code_sage269_spyx_0.pyx (starting at line 6)";
static PyObject *__pyx_pf_65_Users_was_notebook_misc_worksheets_admin_175_code_sage269_spyx_0_mymean2(PyObject *__pyx_self, PyObject *__pyx_arg_n) {
  int __pyx_v_n;
  double __pyx_v_s;
  int __pyx_v_m;
  PyObject *__pyx_r;
  PyObject *__pyx_1 = 0;
  assert(__pyx_arg_n); {
    __pyx_v_n = __pyx_PyInt_int(__pyx_arg_n); if (unlikely((__pyx_v_n == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L2;}
  }
  goto __pyx_L3;
  __pyx_L2:;
  __Pyx_AddTraceback("_Users_was_notebook_misc_worksheets_admin_175_code_sage269_spyx_0.mymean2");
  return NULL;
  __pyx_L3:;
  return;
  __pyx_L1:;
  __Pyx_AddTraceback("_Users_was_notebook_misc_worksheets_admin_175_code_sage269_spyx_0");
}
 7:     cdef double s = 0
  __pyx_v_s = 0;

 8:     cdef int m
 9:     for m from 0 <= m < n:
  for (__pyx_v_m = 0; __pyx_v_m < __pyx_v_n; __pyx_v_m++) {
 10:         s += m
    __pyx_v_s += __pyx_v_m;
  }
 11:     return s coerce/ n
  __pyx_1 = PyFloat_FromDouble((__pyx_v_s / __pyx_v_n)); if (unlikely(!__pyx_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1;}
  __pyx_r = __pyx_1;
  __pyx_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; Py_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1:;
  Py_XDECREF(__pyx_1);
  __Pyx_AddTraceback("_Users_was_notebook_misc_worksheets_admin_175_code_sage269_spyx_0.mymean2");
  __pyx_r = NULL;
  __pyx_L0:;
  return __pyx_r;
}