Contents

IDENTIFICATION

Autar Kaw Section 002 Fall 2012 Due Date and Time: September 9, 2012

clc
clear all

Chapter 5 - Exercise X

A=[2  3  4 ; 5.2  6  7;   8  9  1];
disp('A matrix')
disp(A)
B=[4 6; 78  5;1  1];
disp('B matrix')
disp(B)
C=A*B;
disp('A*B')
disp(C)
A matrix
    2.0000    3.0000    4.0000
    5.2000    6.0000    7.0000
    8.0000    9.0000    1.0000

B matrix
     4     6
    78     5
     1     1

A*B
  246.0000   31.0000
  495.8000   68.2000
  735.0000   94.0000

Chapter 6 - Exercise XX

syms t
v=t^2+log(2*t);
fprintf('Expression for velocity %s',char(v))
tt=5;
v5=double(subs(v,t,tt));
fprintf('\nValue of velocity at t= %g is = %g',tt,v5)
Expression for velocity t^2+log(2*t)
Value of velocity at t= 5 is = 27.3026