1 Write a Matlab program to calculate the following a 1482 1
1. Write a Matlab program to calculate the following
a. (14.8^2 +15.6^4) / 3.8^2) + (55 / (sqrt(5) + 4))
b. (2.5 + 23^3) / (3 + 1.4) - (4rt(2050)) ---> note: this is not 4 x sqrt(2050). The 4 is the number that is on top of the sqrt.
Solution
Matlab Code:
out1 = ((14.8^2 +15.6^4) / 3.8^2) + (55 / (sqrt(5) + 4));
out2 = (2.5 + 23^3) / (3 + 1.4) - ((2050)^(1/4));
fprintf(\'first expression %f\ \',out1);
fprintf(\'second expression %f\ \',out2);
Output:
first expression 4125.379882
second expression 2759.066641
