Skip to main content

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"
      ]
    }
  }
}

Metadata

Release files for math-genie-calc 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for math-genie-calc 0.1.8
File Interpreter ABI Platform
math_genie_calc-0.1.8-py3-none-any.whl Python 3 none any Details

Release files / math_genie_calc-0.1.8-py3-none-any.whl

Download URL math_genie_calc-0.1.8-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c3761817dfd50a5d17cb44c6928e2b96118671d0b9e84c3c2e174d393dcc181
BLAKE2b-256 checksum
How to use checksums
7650f1613f141c79cba4192576124f805b4ef07fafa7d8dff3b1abb035ad1b08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.7

Security for math-genie-calc 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page