Skip to main content
Glama
Trigonometric.ts2.29 kB
export class Trigonometric { /** * Calculate the sin of a number in radians * @param number - The number to find the sin of * @returns The sin of a number in radians */ static sin(number: number) { const sin = Math.sin(number) return sin } /** * Calculate the arcsin of a number in radians * @param number - The number to find the arcsin of * @returns The arcsin of a number in radians */ static arcsin(number: number) { const arcsin = Math.asin(number) return arcsin } /** * Calculate the cos of a number in radians * @param number - The number to find the cos of * @returns The cos of a number in radians */ static cos(number: number) { const cos = Math.cos(number) return cos } /** * Calculate the arccos of a number in radians * @param number - The number to find the arccos of * @returns The arccos of a number in radians */ static arccos(number: number) { const arccos = Math.acos(number) return arccos } /** * Calculate the tangent of a number in radians * @param number - The number to find the tangent of * @returns The tangent of a number in radians */ static tan(number: number) { const tangent = Math.tan(number) return tangent } /** * Calculate the arc tangent of a number in radians * @param number - The number to find the arc tangent of * @returns The arc tangent of a number in radians */ static arctan(number: number) { const arctangent = Math.atan(number) return arctangent } /** * Converts a radian into its equivalent value in degrees * @param number - The number to get the degree of * @returns The degree of the number */ static radiansToDegrees(number: number) { const degrees = number * (180 / Math.PI) return degrees } /** * Converts a degree into its equivalent value in radians * @param number - The number to get the radians of * @returns The radians of the number */ static degreesToRadians(number: number) { const radians = number * (Math.PI / 180) return radians } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/EthanHenrickson/math-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server