Previous question · 1064
Maximum Average Subarray I
easyAlgorithms
Next question · 1066
Retrieval Precision At K
easyML Coding
Random coding question

1065. Orthogonality

easy
GeneralGeneral
senior
Function contract
Inputs
x
np.ndarray
y
np.ndarray
tol
float
Returns
value
bool

Examples

Input
{
  "x": [
    1,
    2,
    -1
  ],
  "y": [
    2,
    -1,
    0
  ],
  "tol": 1e-9
}
Output
true

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
dot-product
orthogonality
numerical-tolerance
numpy

Similar Questions

Linear Regressionmedium
ML Coding
Activation function relueasy
ML Coding
Text normalizationmedium
ML Coding
49 people are solving this problem
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATAINTERVIEW
Interactive coding terminal
Python / NumPy environment ready.
Type a command below or run code from the editor.
run scriptExecute the current editor contents
submitGrade the current editor contents against all solution test cases
python ("print hello world")Run an isolated Python command
helpShow all available commands