Generated by Cython 0.12.1 on Mon May 10 15:50:32 2010
Raw output: _Users_wstein__sage_sage_notebook_sagenb_home_admin_398_code_sage20_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: #f = cos(x)^2 - x^3 + x - 5
7:
8: cdef extern from "math.h":
9: double cos(double)
10:
11: def f_cython(double x):
static PyObject *__pyx_pf_74_Users_wstein__sage_sage_notebook_sagenb_home_admin_398_code_sage20_spyx_0_f_cython(PyObject *__pyx_self, PyObject *__pyx_arg_x); /*proto*/ static char __pyx_doc_74_Users_wstein__sage_sage_notebook_sagenb_home_admin_398_code_sage20_spyx_0_f_cython[] = "File: _Users_wstein__sage_sage_notebook_sagenb_home_admin_398_code_sage20_spyx_0.pyx (starting at line 11)"; static PyObject *__pyx_pf_74_Users_wstein__sage_sage_notebook_sagenb_home_admin_398_code_sage20_spyx_0_f_cython(PyObject *__pyx_self, PyObject *__pyx_arg_x) { double __pyx_v_x; PyObject *__pyx_r = NULL; __Pyx_RefNannySetupContext("f_cython"); __pyx_self = __pyx_self; assert(__pyx_arg_x); { __pyx_v_x = __pyx_PyFloat_AsDouble(__pyx_arg_x); if (unlikely((__pyx_v_x == (double)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L3_error;} } goto __pyx_L4_argument_unpacking_done; __pyx_L3_error:; __Pyx_AddTraceback("_Users_wstein__sage_sage_notebook_sagenb_home_admin_398_code_sage20_spyx_0.f_cython"); return NULL; __pyx_L4_argument_unpacking_done:;
12: return cos(x)*cos(x) - x*x*x + x - 5
__Pyx_XDECREF(__pyx_r); __pyx_t_1 = PyFloat_FromDouble(((((cos(__pyx_v_x) * cos(__pyx_v_x)) - ((__pyx_v_x * __pyx_v_x) * __pyx_v_x)) + __pyx_v_x) - 5)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 12; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_AddTraceback("_Users_wstein__sage_sage_notebook_sagenb_home_admin_398_code_sage20_spyx_0.f_cython"); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; }