But when I ran the Math.cos(1) It was different than the cos my calculator returned, would that make a difference with the answer? Will it return a different value?
On my calculator I tested 4 x cos(3) and in js I tested 4 * Math.cos(3).
They were both different, in js these were the first few numbers -3.9599 and on my calc 3.9945