Problem 381. Angle between two vectors
Solution Stats
Problem Comments
-
5 Comments
It would be good to have a more challenging test suite - see the guidelines for problems. Some solvers write code that is just a lookup table for the test cases, and having only one case makes it trivial to do this.
Also, your test should not use string comparison to evaluate what is a purely numerical computation. It would be better if you subtracted the correct answer from the proposed answer, and then compared the absolute value to a am all threshold, such as 1e-6.
Thnaks for your comments. It was my first or second problem sent to CODY. I didn't catch all the tricks to make strong test cases yet.
I have rescored the problem after adding more robust test suites.
only one test case runs, others are not working
Solution Comments
-
1 Comment
Exploits Cody's size calculation algorithm. Use assessFunctionAbsence to thwart (see also Problem 44521).
-
1 Comment
cool I have learnt a new MATLAB function
-
1 Comment
This solution requires Neural Network Toolbox
-
1 Comment
Sorry for cheating, but you made it too easy...
最近的问题解决者546
Suggested Problems
Check to see if a Sudoku Puzzle is Solved
解决298
The sum of the numbers in the vector
484 Solvers
解决298
Number of Even Elements in Fibonacci Sequence
解决891
Calculate Amount of Cake Frosting
14557 Solvers
More from this Author30
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!