clc
clear all
disp('Calculus Operations')
disp(' ')
%% Chapter 15
disp('                         Part 3 - ODE')
disp('Exercise 1 - Chapter 15')
% INPUTS
disp('INPUTS')
eqn3='3*Dy+6*y=exp(-x)';  % enter differential equation as string
inco='y(0)=6';            % initial condition
fprintf('  equation to solve: %s\n  with: %s\n\n',eqn3,inco)
% CODE
soln =dsolve(eqn3,inco,'x');% enter all as strings!!!
solnd=char(vpa(soln,4));
% OUTPUTS
disp('OUTPUTS')
fprintf('  The solution is: y=%s\n\n',solnd)
