Use MATLAB to calculatethe following and show at least 7 digits from the output:
Show older comments
Use MATLAB to calculatethe following and show at least 7 digits from the output:
a(b+c(c+d)) c, where a = 1, b = 2, c = 3 and d =4, where a = 3, b = 7 and c = 2
ln *(tan (/5) – sin (75))
round a * ceil b / floor d– fix c, where a = 1.6, b = -2.9, c = 3.1 and d = 5.999
Answers (1)
Geoff Hayes
on 17 Oct 2015
Salah - the above homework question seems pretty straightforward. If you are getting stuck on how to show the number of decimal places, then please see fprintf. To show seven decimal places you would do something like
fprintf('%.7f',pi);
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!