{
  "openapi": "3.0.3",
  "info": {
    "title": "科学计算器",
    "description": "该接口基于科学计算算法和公式，提供高精度和准确度的计算结果。通过传递参数和调用相应的函数来实现所需的科学计算操作。包括数学运算、三角函数、指数和对数运算、矩阵计算、统计分析等。应用于科学研究、工程计算、数据分析等，为开发者提供便捷、高效和可靠的科学计算能力。",
    "termsOfService": "https://www.showapi.com/helpcenter/view#/4019/2",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://route.showapi.com"
    }
  ],
  "paths": {
    "/1699-2": {
      "x-pointCode": 2,
      "x-mode": "mapping",
      "x-read-timeout": 15,
      "x-connect-timeout": 15,
      "post": {
        "summary": "支持的规则列表",
        "description": "对支持的科学计算器的规则列表进行查询，适用于学生、教师、科研人员等，用于学习和研究科学计算器的功能和操作规则。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "ret_code": {
                              "type": "string",
                              "description": "接口调用是否成功,0:扣费，表示成功,-1:不扣费，表示渠道失败，例如网络失败、超时等"
                            },
                            "operation": {
                              "type": "string",
                              "description": "支持的操作名字"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "1699_2_POST",
        "parameters": []
      }
    },
    "/1699-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 15,
      "x-connect-timeout": 15,
      "post": {
        "summary": "科学计算器",
        "description": "该接口基于科学计算算法和公式，提供高精度和准确度的计算结果。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "ret_code": {
                              "type": "string",
                              "description": "接口调用是否成功,0:扣费，表示成功,-1:不扣费，表示渠道失败，例如网络失败、超时等"
                            },
                            "result": {
                              "type": "string",
                              "description": "计算结果"
                            },
                            "remark": {
                              "type": "string",
                              "description": "返回说明"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "1699_1_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "num": {
                    "type": "string",
                    "description": "需要计算的参数、多个参数以逗号','分割（适用于需要多个参数计算的函数）"
                  },
                  "operation": {
                    "type": "string",
                    "description": "divide=除<br>\ntan=正切<br>\nproduct=乘<br>\narccos=反余弦<br>\nlog=对数<br>\nsec=正割<br>\ncos=余弦<br>\nln=自然对数<br>\nsech=双曲正割<br>\npercentage=百分比<br>\nabsolute=绝对值<br>\ncsch=双曲余割<br>\nsquare=幂次方<br>\nadd=加<br>\ncoth=双曲余切<br>\nsin=正弦<br>\narccot=反余切<br>\narccsc=反余割<br>\ncosh=双曲余弦<br>\nsinh=双曲正弦<br>\ncot=余切<br>\ntanh=双曲正切<br>\narctan=反正切<br>\nsubtraction=减<br>\narcsin=反正弦<br>\nmod=求余<br>\nsqrt=开根<br>\ncsc=余割<br>\nfactorial=阶乘<br>\nexp=指数函数<br>\narcsec=反正割<br>\nrec=倒数<br>"
                  },
                  "rad_or_ang": {
                    "type": "string",
                    "description": "弧度制(rad)或者角度制(ang)"
                  }
                },
                "required": [
                  "num",
                  "operation"
                ]
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "AppKeyAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "appKey",
        "description": "从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp"
      }
    },
    "schemas": {
      "ShowapiResEnvelope": {
        "type": "object",
        "description": "ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）",
        "properties": {
          "showapi_res_code": {
            "type": "integer",
            "description": "API 返回的状态码"
          },
          "showapi_res_error": {
            "type": "string",
            "description": "API 返回的错误信息"
          },
          "showapi_res_id": {
            "type": "string",
            "description": "API 请求的唯一标识"
          },
          "showapi_fee_num": {
            "type": "integer",
            "description": "API 调用计费次数"
          }
        }
      }
    }
  },
  "security": [
    {
      "AppKeyAuth": []
    }
  ],
  "externalDocs": {
    "url": "https://www.showapi.com/apiGateway/view/1699?tab=book"
  },
  "x-apiCode": "1699",
  "x-is-own": true,
  "x-is-op": true
}