Documente Academic
Documente Profesional
Documente Cultură
All the problems include writing a MATLAB code, except the parts that should be done
by hand as labeled.
A well-organized document (either in Word or PDF format) along with all the MATLAB
codes, with your answers to all the problems in order, will be submitted ONLINE via
Canvas. Remember to include your name and UT EID in the document you submit.
Your answer to each problem should include:
a short description of the problem
your approach
the code you wrote
documentation of the results combined all together
Make sure your code works and gives correct results before your submission.
Follow good programming practices and make sure your code is well documented with
comments.
607 40
2
(a) 23 8 +
+
+ 4.7
3 8
2
ln 200
+ 751/2 e62
1.5
tan ln 8
e 3
6
3
6
8
7 +2
0.02 3.12
( 3tan 27 tan 27 )
(1 3tan 27 )
!
(d)
Page 1
( a + b )c ( a b )c
( a + b )c + ( a b )c
a+b
(b) d
+
c
( a + d )3
a + b + c
(a + b + c + d )
(c) ln ( c d ) ( b a ) +
(a b c d )
b
(d) a c d b +
a
2
1.5
d
c
1/3
+ ebc
( x1 x2 )2 + ( y1 y2 )2
Write a program to ask the user to input the coordinates of two points (using the input()
function), then calculate the distance between these two points, and output the result using the
disp() function . Using (-3.2, -4.5) and (4.1, -5.9) as your testing example.
Submit the source code as hw1_3.m.
Page 2
Page 3