Skip to content
The Chat Archive
gpt-3.5-turbo-0301· OpenAI WildChat-4.8M (AI2)

Untitled conversation

  1. User

    [0,0,-1] 绕 [1,0,0]旋转30度 等于多少

  2. Assistant

    将向量 [0, 0, -1] 绕 [1, 0, 0] 轴旋转 30 度可以通过 Rodrigues' Rotation Formula 来计算:

    vrot=vcos⁡θ+(k×v)sin⁡θ+k(k⋅v)(1−cos⁡θ)\textbf{v}_{rot} = \textbf{v}\cos \theta + (\textbf{k}\times \textbf{v})\sin \theta + \textbf{k}(\textbf{k}\cdot \textbf{v})(1-\cos\theta)

    其中,v\textbf{v} 是原始向量,θ\theta 是旋转角度,k\textbf{k} 是旋转轴的单位向量。

    首先,需要将向量 [0, 0, -1] 和 [1, 0, 0] 转化为单位向量:

    v=[00−1]\textbf{v} = \begin{bmatrix} 0 \\ 0 \\ -1 \end{bmatrix},vunit=v∥v∥=[00−1]\textbf{v}_{unit} = \frac{\textbf{v}}{\left\lVert\textbf{v}\right\rVert} = \begin{bmatrix} 0 \\ 0 \\ -1 \end{bmatrix}

    k=[100]\textbf{k} = \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix},kunit=k∥k∥=[100]\textbf{k}_{unit} = \frac{\textbf{k}}{\left\lVert\textbf{k}\right\rVert} = \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix}

    然后,将 θ\theta 转化为弧度:

    θ=30∘×π180=π6\theta = 30^{\circ} \times \frac{\pi}{180} = \frac{\pi}{6}

    代入 Rodrigues' Rotation Formula,计算旋转后的向量 vrot\textbf{v}_{rot}:

    vrot=vunitcos⁡θ+(kunit×vunit)sin⁡θ+kunit(kunit⋅vunit)(1−cos⁡θ)=[00−1]cos⁡π6+[100]×[00−1]sin⁡π6+[100]([100]⋅[00−1])(1−cos⁡π6)=[032−12]\begin{aligned} \textbf{v}_{rot} &= \textbf{v}_{unit}\cos \theta + (\textbf{k}_{unit}\times \textbf{v}_{unit})\sin \theta + \textbf{k}_{unit}(\textbf{k}_{unit}\cdot \textbf{v}_{unit})(1-\cos\theta) \\ &= \begin{bmatrix} 0 \\ 0 \\ -1 \end{bmatrix} \cos \frac{\pi}{6} + \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix} \times \begin{bmatrix} 0 \\ 0 \\ -1 \end{bmatrix} \sin \frac{\pi}{6} + \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix} (\begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix} \cdot \begin{bmatrix} 0 \\ 0 \\ -1 \end{bmatrix}) (1-\cos \frac{\pi}{6}) \\ &= \begin{bmatrix} 0 \\ \frac{\sqrt{3}}{2} \\ -\frac{1}{2} \end{bmatrix} \end{aligned}

    因此,[0, 0, -1] 绕 [1, 0, 0] 旋转 30 度后的结果是 [0, 32\frac{\sqrt{3}}{2}, −12-\frac{1}{2}]。

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.