Skip to main content

math genie calculator

Project description

math_genie_calc

math_genie_calc是一款专注于科学计算的 Python 应用,为用户提供便捷、准确的各类数学运算功能,涵盖了基础运算到复杂三角函数等多种计算需求,适合学生、科研人员以及任何需要进行数学计算的场景使用。

主要功能

基础运算

  • 加法:实现两个及多个数字的相加运算,支持整数、浮点数等多种数值类型。

  • 减法:进行数字间的减法操作,可处理正数与负数的运算。

  • 乘法:完成数字的乘法计算,包括多位数相乘。

  • 除法:支持除法运算,同时会对除数为 0 的情况进行处理,避免程序错误。

三角函数计算

  • 提供正弦(sin)、余弦(cos)、正切(tan)函数的计算,输入参数为弧度值。

  • 支持余切(cot)、正割(sec)、余割(csc)函数的计算,通过相应三角函数的倒数推导得出,同样以弧度为输入单位。

其他运算

  • 幂运算:能够计算一个数的任意次幂,包括整数幂、小数幂等。

  • 平方根:可对非负数字进行平方根计算,返回精确的结果。

  • 阶乘:计算非负整数的阶乘,0 的阶乘为 1,对于较大的整数也能准确处理。

安装方法

你可以通过 PyPI 来安装math_genie_calc,使用以下命令:

pip install math_genie_calc

使用示例

npx @modelcontextprotocol/inspector uvx math_genie_calc

MCP 服务器配置

{
  "mcpServers": {
    "math_genie_calc": {
      "command": "uvx",
      "args": [
        "math_genie_calc@latest"
      ]
    }
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

math_genie_calc-0.1.4.tar.gz (56.6 kB view details)

Uploaded Source

File details

Details for the file math_genie_calc-0.1.4.tar.gz.

File metadata

  • Download URL: math_genie_calc-0.1.4.tar.gz
  • Upload date:
  • Size: 56.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for math_genie_calc-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4d9405f9b8a07fa2813bd5fe5030118a73bace3130a00bb35b05a2f0306c7269
MD5 f23356ca4996c40afa1f8cf5d519ea24
BLAKE2b-256 c222c316272faa5294ee84ced239472368ee1bac4bf6e467098cd10b86f6fe84

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page