I am attempting to use the Laws of Cosines, but I am reaching the issue that Vexcode doesn’t seem to know how to do exponents. I am using the standard x^2 format, which is what I would expect, with x being defined as a double. However, it highlights the circumflex and outputs the error “Invalid operands to binary expression (‘double’ and ‘double’)”
For some matters it does not matter, as x^2 is the same as xx. However, I can’t figure out how to do operations such as square roots. Thank you.