% Derive the design equations for the resistance R and the capacitance C of the network
% for settling to n bit within tau_s seconds.
syms('R', 'C');
Rsol = solve(taus-tau_s, R); % Symbolic design equation for the resistance
Csol = solve(taus-tau_s, C); % Symbolic design equation for the capacitance
head2html('Component design equations'); % Put a heading on the page
% Put some text on the page and write the equations on the page
text2html(['The resistance $R$ can be written as a function of the capacitance ', ...
'$C$ and the settling time $\\tau_s$ to $n$ bit:']);
eqn2html(R, Rsol);
text2html(['The capacitance $C$ can be written as a function of the resistance ', ...
'$R$ and the settling time $\\tau_s$ to $n$ bit:']);
eqn2html(C, Csol);