As much as Im in awe of ChatGPT, take care in using it. Got a relatively easy cosine calculation wrong. Hopefully its learning from it. Looks like the initial calculation of cos(15) was 0.8798 instead of ~0.9659.