karplusant 0¶

Query¶

import numpy as np

def coupling(phi, A, B, C):
    """
    Returns the J coupling using the karplus equation
    """
    [insert]
    return J

Output¶

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

Evaluate¶

Go to Google Form