width_delay_beam_experiment/DataAnalysis.py
def step_responseRLC_underdamped(t, a_0, a_1, a_2, alpha, w_d):
    '''
    Callable function used as a model for fitting. This function
    is the underdamped step response for an RLC second order circuit.

    assumes:
    nothing

    arguments:
    - t(np.array): the independent variable
    - a_0(float): the dc component of response
    - a_1(float): related to f(0)
    - a_2(float): related to f'(0) and f(0)
    - alpha(float): the damping factor of the circuit
    - w_d(float): the damped frequency = sqrt(|alpha^2 - w_0^2|)

    returns:
    - the value at time t and parameter values a_0, a_1, a_2, w_d, t
    '''
    return (a_0 + a_1 * np.exp(-alpha * t) * np.cos(w_d * t)
           + a_2 * np.exp(-alpha * t) * np.sin(w_d * t))

    Callable function used as a model for fitting. This function
    is the underdamped step response for an RLC second order circuit.

    assumes:
    nothing

    arguments:
    - t(np.array): the independent variable
    - a_0(float): the dc component of response
    - a_1(float): related to f(0)
    - a_2(float): related to f'(0) and f(0)
    - alpha(float): the damping factor of the circuit
    - w_d(float): the damped frequency = sqrt(|alpha^2 - w_0^2|)

    returns:
    - the value at time t and parameter values a_0, a_1, a_2, w_d, t
    
Callable function used as a model for fitting. This function
is the underdamped step response for an RLC second order circuit.

nothing




Callable function used as a model for fitting . This function is the underdamped step response for an RLC second order circuit . nothing
def step_responseRLC_underdamped(t, a_0, a_1, a_2, alpha, w_d):
    return (a_0 + a_1 * np.exp(-alpha * t) * np.cos(w_d * t)
           + a_2 * np.exp(-alpha * t) * np.sin(w_d * t))
def step_responseRLC_underdamped ( t , a_0 , a_1 , a_2 , alpha , w_d ) : return ( a_0 + a_1 * np . exp ( - alpha * t ) * np . cos ( w_d * t ) + a_2 * np . exp ( - alpha * t ) * np . sin ( w_d * t ) )
Callable function used as a model for fitting.
Callable function used as a model for fitting .
'''
    Callable function used as a model for fitting. This function
    is the underdamped step response for an RLC second order circuit.

    assumes:
    nothing

    arguments:
    - t(np.array): the independent variable
    - a_0(float): the dc component of response
    - a_1(float): related to f(0)
    - a_2(float): related to f'(0) and f(0)
    - alpha(float): the damping factor of the circuit
    - w_d(float): the damped frequency = sqrt(|alpha^2 - w_0^2|)

    returns:
    - the value at time t and parameter values a_0, a_1, a_2, w_d, t
    '''
t
a_0
a_1
a_2
alpha
w_d