data = {
const out = [];
for (let angle = xmin; angle <= xmax; angle += xstep) {
const rad = geometric.angleToRadians(angle),
cos = Math.cos(rad),
sin = Math.sin(rad),
tan = Math.tan(rad);
out.push({angle, fn: "cos", value: cos});
out.push({angle, fn: "sin", value: sin});
out.push({angle, fn: "tan", value: tan});
}
return out;
}