function J = J_D(v,m17,h17,s17,m18,h18,n,nKA,hKA,V12,I,gNa17,gNa18,gK,gKA,g)
%J_D
%    J = J_D(V,M17,H17,S17,M18,H18,N,NKA,HKA,V12,I,GNA17,GNA18,GK,GKA,G)

%    This function was generated by the Symbolic Math Toolbox version 8.2.
%    24-Jul-2019 18:34:56

t2 = 1.0./g;
t3 = m17.^2;
t4 = v-4.473333333335177e-1;
t5 = v+5.646666666671081e-1;
t6 = V12.*5.988023952090771e-2;
t7 = v.*8.982035928143887;
t8 = t6+t7+4.353293413179927;
t9 = exp(t8);
t10 = v.*-1.241721854303614e1;
t11 = t10+4.139072847683565e-1;
t12 = exp(t11);
t13 = t12+1.0;
t14 = t9+1.0;
t15 = 1.0./t13;
t16 = 1.0./t13.^2;
t17 = 1.0./t14;
t18 = t17.*3.519999999995343e1;
t19 = t15.*1.55e1;
t20 = t18+t19;
t21 = 1.0./t14.^2;
t22 = 1.0./t20;
t23 = v.*-1.180921039683744e1;
t24 = t23-4.350985478604343e-1;
t25 = exp(t24);
t26 = v.*9.810333551344229;
t27 = t26+8.00196206671535;
t28 = exp(t27);
t29 = t28+1.0;
t30 = 1.0./t29;
t31 = t25+1.0;
t32 = 1.0./t31.^2;
t33 = t25.*t32.*2.365184085909277e1;
t34 = 1.0./t29.^2;
t35 = t28.*t34.*-3.795127534336643;
t36 = t33+t35;
t37 = t30.*3.868499999998676e-1;
t38 = 1.0./t31;
t39 = t38.*2.00282999999763;
t40 = t37+t39-2.830000000002997e-3;
t41 = 1.0./t40;
t42 = v.*5.263157894733013;
t43 = t42-1.350526315788738e1;
t44 = exp(t43);
t45 = v.*9.036144578305539;
t46 = t45+5.656626506024622;
t47 = exp(t46);
t48 = t47+1.0;
t49 = 1.0./t48;
t50 = t49.*9.20000000000698e-4;
t51 = t44+1.0;
t52 = 1.0./t48.^2;
t53 = 1.0./t51;
t54 = t53.*-1.320499999998137e2;
t55 = t50+t54+1.320500300000422e2;
t56 = t50+2.999999999997449e-5;
t57 = 1.0./t55;
t58 = 1.0./t51.^2;
t59 = v.*1.698965896089794e1;
t60 = t59+5.262603495342773;
t61 = exp(t60);
t62 = v.*1.075268817204051e1;
t63 = t62-8.308243727606168e-2;
t64 = exp(t63);
t65 = t64+1.0;
t66 = t61+1.0;
t67 = 1.0./t65;
t68 = 1.0./t65.^2;
t69 = 1.0./t66;
t70 = t69.*7.62050000000454;
t74 = t67.*-2.838999999999942;
t73 = -t74;
t71 = -t73;
t72 = t70+t71+2.849999999998545;
t75 = 1.0./t66.^2;
t80 = v.*1.5e2;
t76 = t80+3.809999999997672e1;
t77 = v.*3.75e1;
t78 = t77+8.049999999988358;
t79 = exp(t78);
t81 = t76.^2;
t82 = t81.*-2.166977772439793e-3;
t83 = exp(t82);
t84 = t83.*4.204299999994691e1;
t85 = t84+1.218000000000757;
t86 = t79+1.0;
t87 = 1.0./t85;
t88 = v.*-8.161044613720151;
t89 = t88-7.954298150161776e-1;
t90 = exp(t89);
t91 = v.*-6.0e1;
t92 = t91-2.2e1;
t93 = exp(t92);
t94 = t93.*1.25e-1;
t95 = v.*-1.5e1;
t96 = t95-1.427299999999377;
t97 = exp(t96);
t98 = t97-1.0;
t99 = 1.0./t98;
t100 = v.*1.897500000000036e-1;
t101 = t100+1.805534499999339e-2;
t102 = t99.*t101.*-1.0;
t103 = t94+t102;
t104 = 1.0./t103;
t105 = t104+1.0;
t106 = t90+1.0;
t107 = 1.0./t105;
t108 = t80+2.46699999999837e1;
t109 = v.*-9.146341463405406;
t110 = t109-3.292682926830821e-1;
t111 = exp(t110);
t112 = t108.^2;
t113 = t112.*-4.128682785040638e-4;
t114 = exp(t113);
t115 = t111+1.0;
t116 = t114.*1.004000000000815e1;
t117 = t116+2.5e-1;
t118 = 1.0./t117;
t119 = t80+4.0e1;
t120 = v.*3.260869565221947e1;
t121 = t120+1.084782608694513e1;
t122 = exp(t121);
t123 = t119.^2;
t124 = t123.*-3.124999999997158e-4;
t125 = exp(t124);
t126 = t122+1.0;
t127 = t125.*5.0e1;
t128 = t127+2.0e1;
t129 = 1.0./t128;
J = reshape([g.*(t2.*5.750000000000455e-2+gK.*n.*t2+gNa18.*h18.*m18.*t2+gKA.*hKA.*nKA.*t2+gNa17.*h17.*m17.*s17.*t2.*t3).*-3.225806451612152e1,t20.*(t15.*1.0./t20.^2.*(t12.*t16.*1.924668874172494e2-t9.*t21.*3.161676646703854e2).*4.65e2-t12.*t16.*t22.*5.774006622523069e3).*-1.0-(m17.*3.0e1-t15.*t22.*4.65e2).*(t12.*t16.*1.924668874172494e2-t9.*t21.*3.161676646703854e2).*1.0,t36.*(h17.*3.0e1-t30.*t41.*1.160550000000512e1).*-1.0-t40.*(t30.*t36.*1.0./t40.^2.*1.160550000000512e1+t28.*t34.*t41.*1.138538260301575e2).*1.0,t55.*(1.0./t55.^2.*t56.*(t47.*t52.*8.313253012062205e-3-t44.*t58.*6.95e2).*3.0e1-t47.*t52.*t57.*2.493975903612409e-1).*1.0+(s17.*3.0e1-t56.*t57.*3.0e1).*(t47.*t52.*8.313253012062205e-3-t44.*t58.*6.95e2).*1.0,(t64.*t68.*3.052688172040507e1-t61.*t75.*1.294696961115114e2).*(m18.*3.0e1+((t73-2.849999999998545).*3.0e1)./(t70+t74+2.849999999998545)).*-1.0+t72.*((t64.*t68.*9.158064516130835e2)./t72+1.0./t72.^2.*(t64.*t68.*3.052688172040507e1-t61.*t75.*1.294696961115114e2).*(t67.*2.838999999999942-2.849999999998545).*3.0e1),t79.*1.0./t86.^2.*t87.*-1.125e3-t83.*1.0./t85.^2.*(h18.*3.0e1-3.0e1./t86).*(v.*9.751399975991808e1+2.476855593902292e1).*4.204299999994691e1,t90.*1.0./t106.^2.*t107.*2.448313384111971e2+1.0./t103.^2.*1.0./t105.^2.*(n.*3.0e1-3.0e1./t106).*(t93.*7.5+t99.*1.897500000000036e-1+t97.*1.0./t98.^2.*t101.*1.5e1),t111.*1.0./t115.^5.*t118.*1.09756097561121e3-t114.*1.0./t117.^2.*(nKA.*3.0e1-1.0./t115.^4.*3.0e1).*(v.*1.857907253270969e1+3.055638129211729).*1.004000000000815e1,t122.*1.0./t126.^2.*t129.*-9.782608695644885e2-t125.*1.0./t128.^2.*(v.*1.40625e1+3.75).*(hKA.*3.0e1-3.0e1./t126).*5.0e1,gNa17.*h17.*s17.*t3.*t4.*-9.677419354836456e1,t15.*-4.65e2-t17.*1.056e3,0.0,0.0,0.0,0.0,0.0,0.0,0.0,gNa17.*m17.*s17.*t3.*t4.*-3.225806451612152e1,0.0,t30.*-1.160550000000512e1-t38.*6.008490000001621e1+8.490000000006148e-2,0.0,0.0,0.0,0.0,0.0,0.0,gNa17.*h17.*m17.*t3.*t4.*-3.225806451612152e1,0.0,0.0,t49.*-2.760000000000673e-2+t53.*3.9615e3-3.961500900000334e3,0.0,0.0,0.0,0.0,0.0,gNa18.*h18.*t4.*-3.225806451612152e1,0.0,0.0,0.0,t67.*8.516999999992549e1-t69.*2.286150000002235e2-8.55e1,0.0,0.0,0.0,0.0,gNa18.*m18.*t4.*-3.225806451612152e1,0.0,0.0,0.0,0.0,t87.*-3.0e1,0.0,0.0,0.0,gK.*t5.*-3.225806451612152e1,0.0,0.0,0.0,0.0,0.0,t107.*-3.0e1,0.0,0.0,gKA.*hKA.*t5.*-3.225806451612152e1,0.0,0.0,0.0,0.0,0.0,0.0,t118.*-3.0e1,0.0,gKA.*nKA.*t5.*-3.225806451612152e1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,t129.*-3.0e1],[9,9]);