{"success":true,"version":"v1","request":{"tool":"get_calculator_schema","calculator_id":"trigonometry"},"result":{"entity_type":"calculator","id":"trigonometry","calculator_id":"trigonometry","canonical_url":"https://tttkmbb.com/math/trigonometry","name":"Trigonometry Calculator","title":"Trigonometry Calculator – sin, cos, tan, sec, csc, cot of an Angle and Inverse Functions (arcsin, arccos, arctan)","category":"math","category_name":"Math","tool_name":"calculate_trigonometric_functions","featured_mcp_tool":false,"description":"Evaluates the six trigonometric functions of an angle given in degrees or radians, with the reference angle and quadrant, and/or the inverse function (arcsin, arccos, arctan) of a value, returning the angle in degrees and radians.","use_when":"You need sin, cos, tan or their reciprocals for an angle, the angle whose sine/cosine/tangent is a given value, or the reference angle and quadrant of an angle.","do_not_use_when":"You want to solve a triangle from sides and angles (use right-triangle or triangle-solver) or only convert an angle between units (use angle).","inputs":[{"name":"angle","label":"Angle","type":"number","required":false,"min":-1000000000,"max":1000000000,"description":"Angle to evaluate the forward functions at. Omit when only an inverse function is needed.","example":30},{"name":"unit","label":"Angle unit","type":"enum","required":false,"default":"degrees","values":[{"value":"degrees","label":"Degrees","aliases":["deg","°"]},{"value":"radians","label":"Radians","aliases":["rad"]}],"description":"Unit of the angle input.","example":"degrees"},{"name":"value","label":"Value for the inverse function","type":"number","required":false,"description":"Number whose arcsin, arccos or arctan is wanted (between −1 and 1 for arcsin/arccos).","example":0.5},{"name":"inverse_function","label":"Inverse function","type":"enum","required":false,"default":"arcsin","values":[{"value":"arcsin","label":"arcsin (sin⁻¹)","aliases":["asin","sin-1","inverse sine"]},{"value":"arccos","label":"arccos (cos⁻¹)","aliases":["acos","cos-1","inverse cosine"]},{"value":"arctan","label":"arctan (tan⁻¹)","aliases":["atan","tan-1","inverse tangent"]}],"description":"Which inverse function to apply to value.","example":"arcsin"}],"outputs":[{"name":"angle_degrees","label":"Angle","type":"number","unit":"°","decimals":6,"description":"The input angle in degrees."},{"name":"angle_radians","label":"Angle (radians)","type":"number","unit":"rad","decimals":6,"description":"The input angle in radians."},{"name":"normalized_degrees","label":"Coterminal angle","type":"number","unit":"°","decimals":6,"description":"The equivalent angle in [0°, 360°)."},{"name":"reference_angle_degrees","label":"Reference angle","type":"number","unit":"°","decimals":6,"description":"Acute angle between the terminal side and the x-axis (0°–90°)."},{"name":"quadrant","label":"Quadrant","type":"string","decimals":4,"description":"Quadrant I–IV of the terminal side, or the axis it lies on."},{"name":"sin","label":"sin","type":"number","decimals":6,"description":"Sine of the angle."},{"name":"cos","label":"cos","type":"number","decimals":6,"description":"Cosine of the angle."},{"name":"tan","label":"tan","type":"number","decimals":6,"description":"Tangent sin/cos; the string 'undefined' at 90° + k·180°."},{"name":"sec","label":"sec","type":"number","decimals":6,"description":"Secant 1/cos; 'undefined' where cos = 0."},{"name":"csc","label":"csc","type":"number","decimals":6,"description":"Cosecant 1/sin; 'undefined' where sin = 0."},{"name":"cot","label":"cot","type":"number","decimals":6,"description":"Cotangent cos/sin; 'undefined' where sin = 0."},{"name":"inverse_angle_degrees","label":"Inverse result","type":"number","unit":"°","decimals":6,"description":"inverse_function(value) in degrees: arcsin in [−90°, 90°], arccos in [0°, 180°], arctan in (−90°, 90°). Only when value is given."},{"name":"inverse_angle_radians","label":"Inverse result (radians)","type":"number","unit":"rad","decimals":6,"description":"The same principal value in radians."},{"name":"inverse_expression","label":"Inverse expression","type":"string","decimals":4,"description":"e.g. 'arcsin(0.5) = 30°'."}],"input_schema":{"type":"object","properties":{"angle":{"description":"Angle to evaluate the forward functions at. Omit when only an inverse function is needed.","type":"number","minimum":-1000000000,"maximum":1000000000,"examples":[30]},"unit":{"description":"Unit of the angle input.","type":"string","enum":["degrees","radians"],"default":"degrees","examples":["degrees"]},"value":{"description":"Number whose arcsin, arccos or arctan is wanted (between −1 and 1 for arcsin/arccos).","type":"number","examples":[0.5]},"inverse_function":{"description":"Which inverse function to apply to value.","type":"string","enum":["arcsin","arccos","arctan"],"default":"arcsin","examples":["arcsin"]}},"additionalProperties":false},"output_schema":{"type":"object","properties":{"angle_degrees":{"description":"The input angle in degrees. Unit: °.","type":"number","x-unit":"°"},"angle_radians":{"description":"The input angle in radians. Unit: rad.","type":"number","x-unit":"rad"},"normalized_degrees":{"description":"The equivalent angle in [0°, 360°). Unit: °.","type":"number","x-unit":"°"},"reference_angle_degrees":{"description":"Acute angle between the terminal side and the x-axis (0°–90°). Unit: °.","type":"number","x-unit":"°"},"quadrant":{"description":"Quadrant I–IV of the terminal side, or the axis it lies on.","type":"string"},"sin":{"description":"Sine of the angle.","type":"number"},"cos":{"description":"Cosine of the angle.","type":"number"},"tan":{"description":"Tangent sin/cos; the string 'undefined' at 90° + k·180°.","type":"number"},"sec":{"description":"Secant 1/cos; 'undefined' where cos = 0.","type":"number"},"csc":{"description":"Cosecant 1/sin; 'undefined' where sin = 0.","type":"number"},"cot":{"description":"Cotangent cos/sin; 'undefined' where sin = 0.","type":"number"},"inverse_angle_degrees":{"description":"inverse_function(value) in degrees: arcsin in [−90°, 90°], arccos in [0°, 180°], arctan in (−90°, 90°). Only when value is given. Unit: °.","type":"number","x-unit":"°"},"inverse_angle_radians":{"description":"The same principal value in radians. Unit: rad.","type":"number","x-unit":"rad"},"inverse_expression":{"description":"e.g. 'arcsin(0.5) = 30°'.","type":"string"}}},"formula":"θ_rad = θ_deg × π/180; tan = sin/cos, sec = 1/cos, csc = 1/sin, cot = cos/sin; reference angle = acute angle to the x-axis; arcsin, arccos, arctan return principal values","method":"Angles that are whole degrees are evaluated exactly at the axes (sin 180° = 0, cos 90° = 0) so that the reciprocal functions report 'undefined' instead of a huge number; other values come from IEEE double arithmetic and are rounded to 6 decimals.","sources":[{"name":"NIST Digital Library of Mathematical Functions §4.14 – Trigonometric functions: definitions and periodicity","url":"https://dlmf.nist.gov/4.14","type":"standard","retrieved_at":"2026-09-24"},{"name":"NIST Digital Library of Mathematical Functions §4.23 – Inverse trigonometric functions: definitions","url":"https://dlmf.nist.gov/4.23","type":"standard","retrieved_at":"2026-09-24"},{"name":"Wikipedia – Trigonometric functions","url":"https://en.wikipedia.org/wiki/Trigonometric_functions","type":"reference","retrieved_at":"2026-09-24"}],"freshness":{"type":"static","max_age_seconds":null,"note":"Deterministic formula with fixed constants; results never go stale. Inputs supplied by the caller determine the output."},"examples":[{"name":"30° and arcsin 0.5","inputs":{"angle":30,"unit":"degrees","value":0.5,"inverse_function":"arcsin"},"expected":{"angle_degrees":30,"angle_radians":0.523599,"normalized_degrees":30,"reference_angle_degrees":30,"quadrant":"Quadrant I","sin":0.5,"cos":0.866025,"tan":0.57735,"sec":1.154701,"csc":2,"cot":1.732051,"inverse_angle_degrees":30,"inverse_angle_radians":0.523599,"inverse_expression":"arcsin(0.5) = 30°"},"url":"https://tttkmbb.com/api/v1/calculate/trigonometry?angle=30&unit=degrees&value=0.5&inverse_function=arcsin"},{"name":"90°","inputs":{"angle":90},"expected":{"sin":1,"cos":0,"tan":"undefined","sec":"undefined","csc":1,"cot":0,"reference_angle_degrees":90,"quadrant":"on the positive y-axis (90°)","angle_radians":1.570796},"url":"https://tttkmbb.com/api/v1/calculate/trigonometry?angle=90"}],"faq":[{"q":"Why is tan 90° 'undefined' rather than a large number?","a":"cos 90° is exactly 0, so tan = sin/cos has no value; the function has a vertical asymptote there. A plain calculator prints ~1.6 × 10^16 only because π/2 cannot be represented exactly."},{"q":"Which value does arcsin return?","a":"The principal value between −90° and 90°. Since sin is periodic, 30° and 150° both have sine 0.5; the second solution of sin x = v is 180° − arcsin v."},{"q":"What is the reference angle for?","a":"It is the acute angle whose function values equal those of the original angle up to sign, e.g. sin 150° = sin 30° and cos 150° = −cos 30°."}],"tags":["trigonometry","sin cos tan","sec csc cot","arcsin arccos arctan","inverse trig","reference angle"],"related":[{"calculator_id":"angle","reason":"Convert between degrees, radians, gradians and turns."},{"calculator_id":"right-triangle","reason":"Apply the ratios to the sides of a right triangle."},{"calculator_id":"triangle-solver","reason":"Law of sines and cosines for general triangles."}],"links":{"html":"https://tttkmbb.com/math/trigonometry","markdown":"https://tttkmbb.com/math/trigonometry.md","json":"https://tttkmbb.com/math/trigonometry.json","api":"https://tttkmbb.com/api/v1/calculate/trigonometry","schema":"https://tttkmbb.com/api/v1/calculators/trigonometry","openapi":"https://tttkmbb.com/openapi.json","mcp":"https://tttkmbb.com/mcp"},"version":"v1","updated_at":"2026-09-24"},"timestamp":"2026-09-24T01:51:00Z"}