Skip to content

向量投影計算機

將向量 a 投影到向量 b:計算純量投影、向量投影的各分量,以及垂直分量(拒投影)。可用於二維(z = 0)與三維,並提供逐步推導。

輸入

向量 a(被投影者)

向量 b(方向)

結果

輸入數值即可顯示計算結果。

詳細資料

逐步推導

\begin{aligned} \operatorname{comp}_{\mathbf{b}}\mathbf{a} &= \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{b}|} \\ &= \frac{?}{?} \\ &= ? \end{aligned}
\begin{aligned} p_x &= \frac{\mathbf{a} \cdot \mathbf{b}}{\mathbf{b} \cdot \mathbf{b}}\, b_x \\ &= \frac{?}{{\text{?}}}(1) \\ &= ? \end{aligned}
\begin{aligned} p_y &= \frac{\mathbf{a} \cdot \mathbf{b}}{\mathbf{b} \cdot \mathbf{b}}\, b_y \\ &= \frac{?}{{\text{?}}}(0) \\ &= ? \end{aligned}
\begin{aligned} p_z &= \frac{\mathbf{a} \cdot \mathbf{b}}{\mathbf{b} \cdot \mathbf{b}}\, b_z \\ &= \frac{?}{{\text{?}}}(0) \\ &= ? \end{aligned}
\begin{aligned} r_x &= a_x - p_x \\ &= 3 - (?) \\ &= ? \end{aligned}
\begin{aligned} r_y &= a_y - p_y \\ &= 4 - (?) \\ &= ? \end{aligned}
\begin{aligned} r_z &= a_z - p_z \\ &= 0 - (?) \\ &= ? \end{aligned}

嵌入這個計算機

預覽

將這段程式碼貼到您的網頁中即可顯示計算機。

分享這個計算

開啟此連結的人都會看到您填入的數值。

200+ 計算機 · 10 種語言 · 完全免費

這個計算機對您有幫助嗎?

需要改進

我們可以如何改進這個計算機?