karplusant 2¶

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 = np.cos(phi) * A + np.sin(phi) * B + C
    return J

Evaluate¶

Go to Google Form