-
-
Save pat-hanbury/5c11adde677fa6f4cfbc9e159a40728b to your computer and use it in GitHub Desktop.
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
def f_of_x(x): | |
""" | |
This is the main function we want to integrate over. | |
Args: | |
- x (float) : input to function; must be in radians | |
Return: | |
- output of function f(x) (float) | |
""" | |
return (e**(-1*x))/(1+(x-1)**2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment