B Bích Hạnh Member Sep 19, 2021 #1 Which code would you use to find the value of the function f? Code: f(x)=sin(x) + cos (x) + tan (x) at x = π/4 A. sin(45)+cos(45)+tan(45) B. sin(pi/4)+cos(pi/4)+tan(pi/4) C. sin(45®)+cos(45®)+sin(45®) D. sind(45)+cosd(45)+tand(45)
Which code would you use to find the value of the function f? Code: f(x)=sin(x) + cos (x) + tan (x) at x = π/4 A. sin(45)+cos(45)+tan(45) B. sin(pi/4)+cos(pi/4)+tan(pi/4) C. sin(45®)+cos(45®)+sin(45®) D. sind(45)+cosd(45)+tand(45)
N Nguyễn Thị Thảo Sương New member Sep 19, 2021 #2 Answer: d Explanation: sin(45) would return 0.8509 and sin(pi/4) would return 0.7071. They won’t return exact value of sin 45®. But sind(45) will return 1, this is a pre-defined function in MATLAB. The same goes for cosd(45) and tand(45). Upvote 0 Downvote
Answer: d Explanation: sin(45) would return 0.8509 and sin(pi/4) would return 0.7071. They won’t return exact value of sin 45®. But sind(45) will return 1, this is a pre-defined function in MATLAB. The same goes for cosd(45) and tand(45).