Skip to content

Instantly share code, notes, and snippets.

@pat-hanbury
Last active August 1, 2022 09:59
Show Gist options
  • Save pat-hanbury/5c11adde677fa6f4cfbc9e159a40728b to your computer and use it in GitHub Desktop.
Save pat-hanbury/5c11adde677fa6f4cfbc9e159a40728b to your computer and use it in GitHub Desktop.
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