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
Release history Release notifications | RSS feed
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.1.tar.gz
(56.5 kB
view details)
File details
Details for the file math_genie_calc-0.1.1.tar.gz.
File metadata
- Download URL: math_genie_calc-0.1.1.tar.gz
- Upload date:
- Size: 56.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1903a6017657580542d04d19cc237dca32f0e3ab964e7d98c702b4d41c75be95
|
|
| MD5 |
545234ebabaa1998c858b0394afef0a0
|
|
| BLAKE2b-256 |
8feca23eaed9aaf9a6f34ea8ab22fff5730644dd6aa421e13529a154f5ca9836
|