C in Python with Cython

From BC Wiki
Jump to: navigation, search

Examples[edit]

%cython
cdef float test_function(float x):
    return sqrt(x)
    
def test(n):
    return test_function(n)
%sage
list_plot([(x,test(x)) for x in range(1,1000)])

References[edit]

Numerical Methods with Sage

Cython: The Best of Both Worlds

|BC| Cython

Sage: A Basic Overview

Cython: Language Basics

Overview of the Cython Language

Sage Math: Coding in Cython

Sage Math: Cython Interface

Wikipedia: Cython