Problem 1423. Cos Function
x is the input. Find the absolute value of cosine of -x and the same value with opposite sign.
Solution Stats
Problem Comments
-
2 Comments
yurenchu
on 30 Jul 2017
In addition to the weak test suite: The title of the problem says "Sinus function", yet the (incomplete) problem description mentions only "cosine" ??? Furthermore, should abs(cos(-x)) be assigned to y, or to z?
Dyuman Joshi
on 19 Apr 2021
The test description has been updated. Also, new and improved test suites are added within the scope of the problem.
Solution Comments
Show commentsProblem Recent Solvers184
Suggested Problems
-
Increment a number, given its digits
663 Solvers
-
Is my wife right? Now with even more wrong husband
1326 Solvers
-
First non-zero element in each column
878 Solvers
-
Find the dimensions of a matrix
537 Solvers
-
Check that number is whole number
4623 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!