-
-
Save jskDr/587440ccc89812611c31 to your computer and use it in GitHub Desktop.
Mathematical codes written in Cython
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define a mathematical function with type definitions | |
def inverse(float x): | |
cdef float y | |
y = 1.0 / x | |
return y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment