Code covered by the BSD License  

Highlights from
Using Analytical Tools to Gain Insight and Speed-up Num. Analysis in MATLAB & Symbolic Math Toolbox

image thumbnail

Using Analytical Tools to Gain Insight and Speed-up Num. Analysis in MATLAB & Symbolic Math Toolbox

by

 

28 Jan 2013 (Updated )

files from the webinar

helper.distOver1000(RocketStartTime,EngineOffTime,Chute1Time,Chute2Time)
function out1 = distOver1000(RocketStartTime,EngineOffTime,Chute1Time,Chute2Time)
%DISTOVER1000
%    OUT1 = DISTOVER1000(ROCKETSTARTTIME,ENGINEOFFTIME,CHUTE1TIME,CHUTE2TIME)

%    This function was generated by the Symbolic Math Toolbox version 5.9.
%    06-Nov-2012 14:36:49

t2 = RocketStartTime.*5.0031e4;
t3 = t2+3.405875e8;
t4 = sqrt(t3);
t5 = RocketStartTime.*5.1e12;
t6 = t5-1.625e16;
t7 = 1.0./t6;
t8 = RocketStartTime.*t4.*t7.*2.5808718787e10;
t9 = EngineOffTime.*1.0323063e7;
t10 = RocketStartTime.*-8.855487e6;
t11 = t9+t10+1.553695e10;
t12 = 1.0./sqrt(t11);
t13 = EngineOffTime.*-1.57845e12;
t14 = RocketStartTime.*1.35405e12;
t15 = t13+t14+3.575e14;
t16 = 1.0./t15;
t17 = sqrt(t11);
t18 = RocketStartTime.*t16;
t19 = cosh(t8);
t20 = 1.0./t19;
t21 = sinh(t8);
t22 = t4.*t12.*t20.*t21.*3.8297084312;
t23 = atanh(t22);
t24 = t12.*t23.*6.744916607095507e-9;
t50 = EngineOffTime.*3.1569e4;
t48 = -t50;
t40 = -t48;
t37 = -t40;
t25 = -t37;
t51 = RocketStartTime.*-2.9325e4;
t49 = -t51;
t41 = -t49;
t38 = -t41;
t26 = -t38;
t27 = t25+t26-3.575e6;
t28 = 1.0./sqrt(t27);
t29 = t12.*t23.*6.7449166071e-9;
t30 = EngineOffTime.*t16.*-1.0;
t31 = sqrt(t27);
t32 = t18+t29+t30;
t33 = t17.*t32.*1.482598019e8;
t34 = tanh(t33);
t35 = t17.*t28.*t34.*3.910309435e-2;
t36 = atanh(t35);
t39 = EngineOffTime.*-9.999999999980338e-1;
t42 = t40+t41-3.575e6;
t43 = 1.0./sqrt(t42);
t44 = sqrt(t42);
t45 = EngineOffTime.*-3.1569e12;
t46 = RocketStartTime.*2.9325e12;
t47 = t45+t46+3.575e14;
t52 = t50+t51-3.575e6;
t53 = 1.0./sqrt(t52);
t54 = t12.*1.104535524143347e5;
t55 = atanh(t54);
t56 = t18+t29;
t57 = t17.*t56.*1.482598019e8;
t58 = t55+t57;
out1 = real(t47.*log(tanh(sqrt(t52).*(t53.*(atanh(t17.*t34.*t53.*3.910309435e-2)-EngineOffTime.*t53.*3.7915107323e1).*2.6374711048e-10-(EngineOffTime.*1.0e-8)./(t48+t49+3.575e6)).*3.791510732e9)+1.0)).*2.7296340026e-11-real(EngineOffTime.*t17).*4.0469499643e-3-real(t15.*log(tanh(t17.*(t18+t24+t30).*1.482598019e8)+1.0)).*2.7296340022e-11+real(t15.*t58).*2.729634002229164e-11-real(t47.*log(tanh(t44.*(t28.*(t36-EngineOffTime.*t28.*3.7915107323e1).*2.6374711048e-10+(t39.*1.0e-8+t44.*atanh(t17.*t34.*t43.*3.910309435e-2).*2.6374711048e-10+t44.*atanh(t43.*4.319075681396402e3).*2.637471104805186e-10)./(t37+t38+3.575e6)).*3.791510732e9)+1.0)).*2.7296340026e-11-real(t28.*t47.*(t39+t31.*t36.*2.6374711048e-2+t31.*atanh(t28.*4.319075681396402e3).*2.637471104805186e-2)).*1.0349436615e-9+real(t15.*log(tanh(t17.*(t18+t24-t12.*t58.*6.744916607095507e-9).*1.482598019e8)+1.0)).*2.7296340022e-11-real(EngineOffTime.*t47.*t53).*1.0349436615e-9;

Contact us