Problem 44492. Approximate the cosine function
Without using MATLAB trigonometric functions, calculate the cosine of an argument x to a precision of 0.0001
Solution Stats
Problem Comments
-
2 Comments
David Verrelli
on 11 Jan 2018
Hello, Shaul Salomon. Besides the existing checking for 'forbidden' commands in your Test Suite, which can report false positives (e.g. discussion of "cosine" in comments), you could consider a more complicated regexp statement, or perhaps use the assessFunctionAbsence function described at https://au.mathworks.com/help/coursework/ug/assessfunctionabsence.html . —DIV
Dyuman Joshi
on 21 Feb 2021
A temporarily fix has been applied to the test suite such that allows name of functions in the comments. A permanent solution will be employed soon.
Solution Comments
Show commentsProblem Recent Solvers340
Suggested Problems
-
given 3 sides, find area of this triangle
798 Solvers
-
464 Solvers
-
892 Solvers
-
353 Solvers
-
Rotate a matrix for 180 degree
207 Solvers
More from this Author25
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!