- Machine Learning Quick Reference
- Rahul Kumar
- 123字
- 2021-08-20 10:05:10
Dot product
The dot product of two vectors returns a number that happens to be scalar. It is a representation of how two vectors are associated with each other.
Geometrically, the dot product of two vectors x and y would be as follows:
x . y= ||x|| ||y|| cosθ
θ is the angle between the vector x and y.
However, algebraically, we get the following:

Geometrically, we get the following:
θ=β-α
cosθ=cos(β-α)
cosθ = cosβ cosα + sinβ sinα
cosθ = (x1/||x||) (y1/||y||) + (x2/||x||) (y2/||y||)
||x||||y|| cosθ= x1 y1 + x2y2
x . y = x1 y1 + x2y2
推薦閱讀
- Verilog HDL數(shù)字系統(tǒng)設(shè)計入門與應(yīng)用實例
- 來吧!帶你玩轉(zhuǎn)Excel VBA
- Apache Hive Essentials
- 最后一個人類
- 氣動系統(tǒng)裝調(diào)與PLC控制
- 嵌入式操作系統(tǒng)原理及應(yīng)用
- 工業(yè)機器人集成應(yīng)用
- 貫通Java Web輕量級應(yīng)用開發(fā)
- Windows 7故障與技巧200例
- Mastering MongoDB 4.x
- PostgreSQL 10 High Performance
- Linux常用命令簡明手冊
- Hands-On Agile Software Development with JIRA
- Windows Server 2012 Automation with PowerShell Cookbook
- 單片機技術(shù)