@nodescript/stdlib
Version:
Standard Node Definitions
19 lines (18 loc) • 373 B
JavaScript
export const module = {
version: '1.0.4',
moduleName: 'Math / Tan',
description: `
Computes the tangent of specified number.
`,
params: {
value: {
schema: { type: 'number' },
},
},
result: {
schema: { type: 'number' },
}
};
export const compute = params => {
return Math.tan(params.value);
};