function xdot = jjnlinb(t,x)
%
% Use with jjinit.m to generate phi and v for a single junction
%
%basic JJ equation written in components for a single junction
%with I in units of Ic
%V in units of sqrt(Phi_oIc/2piC)
%gammac=1/sqrt(beta_c)
%This formulation is good for beta_c goes to infinity, gamma to zero
%% rnonl is the r(v), the non linear resistancs.
%
%
global  betac Ib Rsg
gammac = 1/sqrt(betac);
xdot(1) = Ib -sin(x(2))- (gammac ./ rnonl(x(1),Rsg)) .* x(1);
xdot(2) = x(1);
