Code covered by the BSD License

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

### Deepak Ramaswamy (view profile)

28 Jan 2013 (Updated )

files from the webinar

helper.velCoasting(t,RocketStartTime,EngineOffTime,Chute1Time,Chute2Time)
```function v3 = velCoasting(t,RocketStartTime,EngineOffTime,Chute1Time,Chute2Time)
%VELCOASTING
%    V3 = VELCOASTING(T,ROCKETSTARTTIME,ENGINEOFFTIME,CHUTE1TIME,CHUTE2TIME)

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

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);
t24 = EngineOffTime.*3.1569e4;
t22 = -t24;
t18 = -t22;
t25 = RocketStartTime.*-2.9325e4;
t23 = -t25;
t19 = -t23;
t20 = t18+t19-3.575e6;
t21 = 1.0./sqrt(t20);
t26 = t24+t25-3.575e6;
t27 = sqrt(t26);
v3 = t27.*tanh(t27.*(t21.*(atanh(t17.*t21.*tanh(t17.*(t12.*atanh((t4.*t12.*sinh(t8).*3.8297084312)./cosh(t8)).*6.7449166071e-9-EngineOffTime.*t16.*1.0+RocketStartTime.*t16).*1.482598019e8).*3.910309435041648e-2)-EngineOffTime.*t21.*3.7915107323e1).*2.637471104805186e-10-(t.*1.0e-8)./(t22+t23+3.575e6)).*3.791510732307455e9).*-1.034943661526527e-1;
```