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封装分发版本:
- 核心计算程序由Node.js开发,通过
pkg打包为独立exe; - 使用Python setuptools封装,通过
pip实现一键安装与系统命令注册; - 安装后自动注册全局
scalc命令,终端可直接调用。
📄 开源协议
MIT License
👨💻 开发者
qiweb3
需要我给你精简一版短README适合PyPI展示吗?
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qiweb_sci_calc_cli-1.0.1-py3-none-any.whl.
File metadata
- Download URL: qiweb_sci_calc_cli-1.0.1-py3-none-any.whl
- Upload date:
- Size: 14.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
058edf6ccbccb6f51998fcb1923f3b54cd85710c1cad4286dcbbdda3d5225be0
|
|
| MD5 |
9014efe57237acc572cd9a3943818b87
|
|
| BLAKE2b-256 |
b398208c793f89cd6783c81d9a6ed6314ad958b6029206b59e6e3799538ea10a
|