Skip to main content

Windows命令行科学计算器,内置Node独立exe,无需安装Node环境

Project description

sci-calc-cli

基于Node打包的Windows命令行科学计算器,可通过 pip 一键安装,开箱即用,无需额外安装Node环境

✨ 功能介绍

  • 支持基础四则运算:+ - * /
  • 内置常量:圆周率 π、自然常数 e
  • 三角函数(角度制):sin()cos()tan()
  • 常用数学函数:sqrt()ln()log10()
  • 两种使用模式:单行快速计算 / 交互式连续计算

📦 安装方式

Windows 下 pip 一键安装

pip install sci-calc-cli

说明:本包内置Windows独立exe程序,安装完成后直接在任意终端使用 scalc 命令,不需要配置Node.js。

🚀 使用示例

1. 单行快速计算

# 基础运算
scalc 100 + 2 * 30

# 正弦函数
scalc sin(90)

# 平方根 × 圆周率
scalc sqrt(100) * π

# 自然对数
scalc ln(e)

2. 交互式计算模式

直接执行命令进入连续计算界面:

scalc

输入 exit / q 即可退出计算器。

📋 支持函数对照表

语法 说明
π 圆周率
e 自然常数
sin(角度) 正弦(角度制)
cos(角度) 余弦(角度制)
tan(角度) 正切(角度制)
sqrt(x) 平方根
ln(x) 自然对数
log10(x) 常用对数

⚠️ 系统限制

当前版本仅支持 Windows 64位 系统,内置Node打包可执行程序,无需依赖Node运行环境。

🛠 源码说明

本项目是Node CLI科学计算器的Python封装分发版本:

  1. 核心计算程序由Node.js开发,通过pkg打包为独立exe;
  2. 使用Python setuptools封装,通过pip实现一键安装与系统命令注册;
  3. 安装后自动注册全局scalc命令,终端可直接调用。

📄 开源协议

MIT License

👨‍💻 开发者

qiweb3

需要我给你精简一版短README适合PyPI展示吗?

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qiweb_sci_calc_cli-1.0.1-py3-none-any.whl (14.5 MB view details)

Uploaded Python 3

File details

Details for the file qiweb_sci_calc_cli-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for qiweb_sci_calc_cli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 058edf6ccbccb6f51998fcb1923f3b54cd85710c1cad4286dcbbdda3d5225be0
MD5 9014efe57237acc572cd9a3943818b87
BLAKE2b-256 b398208c793f89cd6783c81d9a6ed6314ad958b6029206b59e6e3799538ea10a

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