Ow. Yes, you do. This wasn’t a typo either, I remembered the result incorrectly. Thanks for pointing it out, and props for being attentive enough to catch it.
Or to be more precise, you only need one scalar, but the scalar is for y not z, because z isn’t given. The theorem says that, given x and y, there is a scalar a and a vector z such that x=ay+z and y is orthogonal to z.
Ow. Yes, you do. This wasn’t a typo either, I remembered the result incorrectly. Thanks for pointing it out, and props for being attentive enough to catch it.
Or to be more precise, you only need one scalar, but the scalar is for y not z, because z isn’t given. The theorem says that, given x and y, there is a scalar a and a vector z such that x=ay+z and y is orthogonal to z.