import numpy as np
def coupling(phi, A, B, C):
"""
Returns the J coupling using the karplus equation
"""
[insert]
return J
import numpy as np
def coupling(phi, A, B, C):
"""
Returns the J coupling using the karplus equation
"""
J = (A*np.cos(phi)**2 + B*np.sin(phi)**2 + C*np.sin(phi)*np.cos(phi))/2
return J
Go to Google Form