{
  "title": "Scientific calculator",
  "human_url": "https://happytails.ai/en/calculators/scientific-calculator/",
  "agent_url": "https://happytails.ai/agents/en/calculators/scientific-calculator/",
  "language": "en",
  "markdown_url": "https://happytails.ai/en/calculators/scientific-calculator.md",
  "content": "Scientific calculator\nA proper calculator for powers, roots and trigonometry.\nHow can we improve this tool?\nReport a problem or share an idea.\nPlease leave out private information. Your message and the tool name go to our team via PostHog.\nHow to use Scientific calculator\nEnter expression in the input field.\nThe result updates as you type. Adjust the available settings if needed.\nReview the result, then use Copy result or a download link when available.\nUseful next steps\nQuadratic formula calculator\nPythagorean theorem calculator\nPercentage\nHow Scientific calculator works\nThis scientific calculator evaluates an expression you type, using real numbers, parentheses, powers (^), factorials (!), postfix percent and the functions sin, cos, tan, asin, acos, atan, sqrt, log (base 10), ln, exp, abs, floor and ceil, plus the constants pi and e. It follows the usual order of operations, groups repeated powers from the right, and shows the answer as you type, rounded to 12 significant digits. Trigonometry starts in degrees, and you can switch to radians. Multiplication must be explicit, so 2pi is an error while 2*pi works.\nBefore you start\nCheck the angle unit before using trig functions, since sin(30) is 0.5 in degrees but about -0.988 in radians. Write every multiplication with * and close each parenthesis.\nA worked example\nTyping sqrt(144) + 2^3 returns 20, and sin(30) in degrees returns 0.5. In radians, asin(1) returns 1.57079632679, which is pi/2 rounded to 12 significant digits.\nHow to use it\nEnter an expression, choose degrees or radians, and the answer updates as you type. Use the keypad or your keyboard. Multiplication must be explicit: write 2*pi, not 2pi.\nA worked example\nsqrt(144) + 2^3 = 20. In degrees, sin(30) = 0.5. Powers bind before unary minus, so -2^2 = -4.\nWhat to know\nThe calculator supports real numbers, parentheses, factorials and postfix percentages. It uses floating-point arithmetic, rounds to 12 significant digits and rejects undefined results. It does not solve symbolic equations.\nCommon questions\nWhy does -2^2 give -4 instead of 4?\nPowers are evaluated before the leading minus sign, so -2^2 means -(2^2), which is -4. This matches standard math notation. If you want the square of negative two, type (-2)^2, which returns 4.\nHow does the % sign work in this calculator?\nHere % divides the number right before it by 100. So 200*15% returns 30, but 50+10% returns 50.1, because it adds 0.1 rather than 10% of 50. To add 10% to 50, type 50*1.1 or 50+50*10%, which both return 55.\nShould I use degrees or radians?\nUse degrees when your angles come from geometry, construction or everyday measurements, such as 30 or 45 degrees. Use radians for calculus and formulas written with pi, such as sin(pi/6). The setting also changes inverse functions: asin(1) returns 90 in degrees and 1.57079632679 in radians.\nWhy do I get an error for tan(90) or sqrt(-1)?\nThe calculator works with real numbers only and rejects results that are undefined or infinite. tan(90) in degrees, division by zero, the square root of a negative number and log(0) all show an error instead of a huge or complex value. Factorials also stop at 170!, and non-whole numbers such as 2.5! are rejected.\nWhat is the difference between log and ln?\nlog is the base 10 logarithm, so log(1000) returns 3. ln is the natural logarithm with base e, so ln(e) returns 1. For any other base, divide two logs: log base 2 of 8 is ln(8)/ln(2), which is 3.",
  "content_format": "text/plain",
  "visibility": "public",
  "links": [
    {
      "name": "Quadratic formula calculator",
      "url": "https://happytails.ai/en/calculators/quadratic-formula/"
    },
    {
      "name": "Pythagorean theorem calculator",
      "url": "https://happytails.ai/en/calculators/pythagorean-theorem/"
    },
    {
      "name": "Percentage",
      "url": "https://happytails.ai/en/calculators/percentage/"
    }
  ],
  "tool": {
    "id": "scientific-calculator",
    "category": "calculators",
    "built": true,
    "requirements": "The calculator supports real numbers, parentheses, factorials and postfix percentages. It uses floating-point arithmetic, rounds to 12 significant digits and rejects undefined results. It does not solve symbolic equations.",
    "implementation": {
      "fields": [
        {
          "key": "angle",
          "label": "Angle unit",
          "value": "Degrees",
          "type": "select",
          "values": [
            "Degrees",
            "Radians"
          ]
        }
      ],
      "live": true,
      "presentation": "metrics",
      "note": "Real-number arithmetic with parentheses, +, -, *, /, ^, factorial ! and postfix %. Functions: sin, cos, tan, asin, acos, atan, sqrt, log (base 10), ln, exp, abs, floor and ceil. Use explicit multiplication, such as 2*pi. Results use floating-point arithmetic and 12 significant digits.",
      "experience": {
        "automatic": true,
        "single": true,
        "inputMaxLength": 1000000,
        "inputMode": "text",
        "label": "Expression",
        "placeholder": "sqrt(144) + 2^3",
        "help": "Use explicit multiplication, parentheses and the functions listed below. Results update as you type. Up to 1,000,000 characters.",
        "action": null
      },
      "mode": "automatic",
      "interactive": false
    },
    "execution": "Browser interface",
    "api": null,
    "browser_agent": {
      "supported": true,
      "name": "run_current_tool",
      "discovery": "WebMCP on the human page in a supporting browser",
      "verification": "See audit/API-AUDIT.md; availability is not verification"
    }
  },
  "markdown": "# Scientific calculator\n\n- Human page: https://happytails.ai/en/calculators/scientific-calculator/\n- Markdown: https://happytails.ai/en/calculators/scientific-calculator.md\n- Structured JSON: https://happytails.ai/agents/en/calculators/scientific-calculator/index.json\n- Visibility: public\n\n## Tool capabilities\n\n| Property | Value |\n| --- | --- |\n| Tool ID | `scientific-calculator` |\n| Category | calculators |\n| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |\n| Browser execution | Automatic updates after valid input or file selection. |\n| Browser processing | Browser; see tool notes for network behavior. |\n| HTTP API | Not callable through HTTP. |\n| Browser-agent interface | run_current_tool |\n\n### Implementation notes\n\nReal-number arithmetic with parentheses, +, -, *, /, ^, factorial ! and postfix %. Functions: sin, cos, tan, asin, acos, atan, sqrt, log (base 10), ln, exp, abs, floor and ceil. Use explicit multiplication, such as 2*pi. Results use floating-point arithmetic and 12 significant digits.\n\n### Inputs and settings\n\nText input: Expression.\n\nExample or placeholder shown in the interface (not a validated fixture):\n\n```text\nsqrt(144) + 2^3\n```\n\nUse explicit multiplication, parentheses and the functions listed below. Results update as you type. Up to 1,000,000 characters.\n\n| Setting | Meaning | Control type | Default | Constraints |\n| --- | --- | --- | --- | --- |\n| `angle` | Angle unit | select | \"Degrees\" | Allowed: Degrees, Radians |\n\n### Browser-agent workflow\n\n1. Open the human page in a browser that supports WebMCP.\n2. Discover the interface exposed by that page; use its actual schema.\n3. Select files on the page first when the tool requires files.\n4. Call `run_current_tool` with valid input and settings.\n5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.\n\nCalls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.\n\n### Planning specification\n\nThe calculator supports real numbers, parentheses, factorials and postfix percentages. It uses floating-point arithmetic, rounds to 12 significant digits and rejects undefined results. It does not solve symbolic equations.\n\nThis describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.\n\n### Complete machine-readable capability record\n\n```json\n{\n  \"id\": \"scientific-calculator\",\n  \"category\": \"calculators\",\n  \"built\": true,\n  \"requirements\": \"The calculator supports real numbers, parentheses, factorials and postfix percentages. It uses floating-point arithmetic, rounds to 12 significant digits and rejects undefined results. It does not solve symbolic equations.\",\n  \"implementation\": {\n    \"fields\": [\n      {\n        \"key\": \"angle\",\n        \"label\": \"Angle unit\",\n        \"value\": \"Degrees\",\n        \"type\": \"select\",\n        \"values\": [\n          \"Degrees\",\n          \"Radians\"\n        ]\n      }\n    ],\n    \"live\": true,\n    \"presentation\": \"metrics\",\n    \"note\": \"Real-number arithmetic with parentheses, +, -, *, /, ^, factorial ! and postfix %. Functions: sin, cos, tan, asin, acos, atan, sqrt, log (base 10), ln, exp, abs, floor and ceil. Use explicit multiplication, such as 2*pi. Results use floating-point arithmetic and 12 significant digits.\",\n    \"experience\": {\n      \"automatic\": true,\n      \"single\": true,\n      \"inputMaxLength\": 1000000,\n      \"inputMode\": \"text\",\n      \"label\": \"Expression\",\n      \"placeholder\": \"sqrt(144) + 2^3\",\n      \"help\": \"Use explicit multiplication, parentheses and the functions listed below. Results update as you type. Up to 1,000,000 characters.\",\n      \"action\": null\n    },\n    \"mode\": \"automatic\",\n    \"interactive\": false\n  },\n  \"execution\": \"Browser interface\",\n  \"api\": null,\n  \"browser_agent\": {\n    \"supported\": true,\n    \"name\": \"run_current_tool\",\n    \"discovery\": \"WebMCP on the human page in a supporting browser\",\n    \"verification\": \"See audit/API-AUDIT.md; availability is not verification\"\n  }\n}\n```\n\n## Page guide\n\nA proper calculator for powers, roots and trigonometry.\n\nHow can we improve this tool?\n\nReport a problem or share an idea.\n\nPlease leave out private information. Your message and the tool name go to our team via PostHog.\n\n### How to use Scientific calculator\n\n1. Enter expression in the input field.\n2. The result updates as you type. Adjust the available settings if needed.\n3. Review the result, then use Copy result or a download link when available.\n\n## Useful next steps\n\n- [Quadratic formula calculator](https://happytails.ai/en/calculators/quadratic-formula/) ([Markdown](https://happytails.ai/en/calculators/quadratic-formula.md))\n\n- [Pythagorean theorem calculator](https://happytails.ai/en/calculators/pythagorean-theorem/) ([Markdown](https://happytails.ai/en/calculators/pythagorean-theorem.md))\n\n- [Percentage](https://happytails.ai/en/calculators/percentage/) ([Markdown](https://happytails.ai/en/calculators/percentage.md))\n\n## How Scientific calculator works\n\nThis scientific calculator evaluates an expression you type, using real numbers, parentheses, powers (^), factorials (!), postfix percent and the functions sin, cos, tan, asin, acos, atan, sqrt, log (base 10), ln, exp, abs, floor and ceil, plus the constants pi and e. It follows the usual order of operations, groups repeated powers from the right, and shows the answer as you type, rounded to 12 significant digits. Trigonometry starts in degrees, and you can switch to radians. Multiplication must be explicit, so 2pi is an error while 2\\*pi works.\n\n### Before you start\n\nCheck the angle unit before using trig functions, since sin(30) is 0.5 in degrees but about -0.988 in radians. Write every multiplication with \\* and close each parenthesis.\n\n### A worked example\n\nTyping sqrt(144) + 2^3 returns 20, and sin(30) in degrees returns 0.5. In radians, asin(1) returns 1.57079632679, which is pi/2 rounded to 12 significant digits.\n\n## How to use it\n\nEnter an expression, choose degrees or radians, and the answer updates as you type. Use the keypad or your keyboard. Multiplication must be explicit: write 2\\*pi, not 2pi.\n\n### A worked example\n\nsqrt(144) + 2^3 = 20. In degrees, sin(30) = 0.5. Powers bind before unary minus, so -2^2 = -4.\n\n### What to know\n\nThe calculator supports real numbers, parentheses, factorials and postfix percentages. It uses floating-point arithmetic, rounds to 12 significant digits and rejects undefined results. It does not solve symbolic equations.\n\n## Common questions\n\n### Why does -2^2 give -4 instead of 4?\n\nPowers are evaluated before the leading minus sign, so -2^2 means -(2^2), which is -4. This matches standard math notation. If you want the square of negative two, type (-2)^2, which returns 4.\n\n### How does the % sign work in this calculator?\n\nHere % divides the number right before it by 100. So 200\\*15% returns 30, but 50+10% returns 50.1, because it adds 0.1 rather than 10% of 50. To add 10% to 50, type 50\\*1.1 or 50+50\\*10%, which both return 55.\n\n### Should I use degrees or radians?\n\nUse degrees when your angles come from geometry, construction or everyday measurements, such as 30 or 45 degrees. Use radians for calculus and formulas written with pi, such as sin(pi/6). The setting also changes inverse functions: asin(1) returns 90 in degrees and 1.57079632679 in radians.\n\n### Why do I get an error for tan(90) or sqrt(-1)?\n\nThe calculator works with real numbers only and rejects results that are undefined or infinite. tan(90) in degrees, division by zero, the square root of a negative number and log(0) all show an error instead of a huge or complex value. Factorials also stop at 170!, and non-whole numbers such as 2.5! are rejected.\n\n### What is the difference between log and ln?\n\nlog is the base 10 logarithm, so log(1000) returns 3. ln is the natural logarithm with base e, so ln(e) returns 1. For any other base, divide two logs: log base 2 of 8 is ln(8)/ln(2), which is 3.\n"
}