Math. Radians Inside Math. Sin
Hy, I Write a Script for Calculating Delta E 2000, How to Figure This to Work on Google Spreadsheet: Var Dh = 2 * (Math. Pow((Var1 * Var2), 0.5)) * (Math...
Hy,
I write a script for calculating delta e 2000, how to figure this to work on google spreadsheet:
var DH = 2 * (Math.pow((var1 * var2), 0.5)) * (Math.sin((Math.radians(var3))/2));
or this, same error
360 + (Math.degrees(Math.atan2(var1, var2)));
I got this error: TypeError: Cannot find function radians in object [object Math]. (line 232, file "Code")
1 Answer
The Math object do not have the method radians().
To convert radians to degrees, divide by (Math.PI / 180), and multiply by this to convert the other way.