Problem 381. Angle between two vectors
You have two vectors , determine the angle between these two vectors
For example:
u = [0 0 1]; v = [1 0 0];
The angle in degrees between u and v is 90.
Solution Stats
Problem Comments
-
6 Comments
Show
3 older comments
Aurelien Queffurust
on 11 Jun 2012
I have rescored the problem after adding more robust test suites.
Ashutosh datar
on 8 Jul 2013
only one test case runs, others are not working
Brian Holden
on 12 Jan 2024
I don't understand why the checker is rounding the answers, nor why some implementers are rounding the answers. Maybe it's to avoid roundoff issues, which admittedly are an issue when testing equivalence, but any reasonable solution to the problem should be able to give an answer out to 5 or 6 decimal places.
Solution Comments
Show commentsGroup

Paper-&-pencil Games
- 19 Problems
- 4 Finishers
- Guess the number I'm thinking of (Part 1)
- Sudoku square
- Solve the Sudoku Row
- Check to see if a Sudoku Puzzle is Solved
- Sudoku Solver - Standard 9x9
- GJam 2014 China Rd B: Sudoku Checker
- Hangman (easy)
- Hangman (strategy)
- Solve the picross! (Easy)
- Solve the picross! (Hard)
- Skyscrapers - Puzzle
- Word Search Solver
- Fill-a-pix - Solution Checker
- Fill-a-pix - Solver (basic)
- Play Tic-Tac-Toe: Easy Bots
- Play Tic Tac Toe : No Losses Allowed
- Tic Tac Toe Solver
- OXO counting
- Tic-Tac-Logic - Solution Checker
Problem Recent Solvers776
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!