数字公式计算器-招投标价格

数学公式计算专家 - Excel 公式解析、分步计算、边界验证。专用于招投标价格分计算、复杂公式求解。

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 128 · 1 current installs · 2 all-time installs
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description (Excel formula parsing, step-by-step calculation, boundary checks for bidding scores) aligns with the content of SKILL.md and README. There are no unexpected credentials, binaries, or config paths required.
Instruction Scope
SKILL.md contains only formula-parsing, stepwise arithmetic and validation guidance. It does not instruct reading unrelated files, accessing environment variables, nor transmitting data to external endpoints. It explicitly recommends user confirmation before final output.
Install Mechanism
No install spec and no code files — instruction-only. README mentions optional manual install commands (npx/git clone) for a hypothetical repo, but the distributed skill itself writes nothing to disk and does not download or execute remote code.
Credentials
No environment variables, credentials, or config paths are requested. The README/skill examples include a small JS function snippet for illustration only; no secrets or unrelated service tokens are required.
Persistence & Privilege
Skill flags: always=false, user-invocable=true, disable-model-invocation=false (normal). The skill does not request persistent or elevated privileges and does not modify other skills or system settings.
Assessment
This skill appears coherent and low-risk: it is an instruction-only helper for parsing and computing Excel-like formulas and does not ask for credentials or install code. Before relying on results for important decisions, (1) verify numeric outputs with your own checks or a trusted calculator, (2) test edge cases (zero denominators, extreme values) as the skill itself recommends, and (3) avoid pasting any sensitive data into the formulas you submit. If you later follow README's manual install instructions (git clone or running code snippets locally), review any downloaded code before executing it on your machine.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
biddingvk97bbe57jmzcsvwcnwm3nd58wx82qsabcalculationvk97bbe57jmzcsvwcnwm3nd58wx82qsabexcelvk97bbe57jmzcsvwcnwm3nd58wx82qsabformulavk97bbe57jmzcsvwcnwm3nd58wx82qsablatestvk97bbe57jmzcsvwcnwm3nd58wx82qsabmathvk97bbe57jmzcsvwcnwm3nd58wx82qsab

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

数学公式计算专家

🎯 核心功能

1️⃣ Excel 公式解析

支持的函数:

  • 逻辑函数:IF, AND, OR, NOT, IFERROR
  • 数学函数:MAX, MIN, ROUND, ABS, SUM, AVERAGE
  • 比较运算:>, <, >=, <=, =, <>

解析能力:

  • 识别外层/中间层/内层函数
  • 识别变量与常量
  • 识别运算符优先级

2️⃣ 分步计算

计算流程:

第 1 步:公式原文抄录 → 不修改任何字符
第 2 步:公式结构拆解 → 识别函数层级
第 3 步:变量代入 → 明确每个变量的值
第 4 步:由内向外计算 → 先计算最内层函数
第 5 步:记录中间结果 → 每步保留计算过程
第 6 步:最终结果 → 四舍五入 (如需)

示例:

=ROUND(IF(B2<E2,MAX(0,F2-ABS(B2-E2)/E2*100*0.6),IF(B2=E2,F2,MAX(0,F2-ABS(B2-E2)/E2*100*0.9))),2)

变量:
B2 = 207 (报价)
E2 = 176.89445 (基准价)
F2 = 30 (基准分)

计算步骤:
1. B2 < E2? → 207 < 176.89445? → FALSE
2. 进入 ELSE 分支:MAX(0, F2-ABS(B2-E2)/E2*100*0.9)
3. ABS(B2-E2) = ABS(207-176.89445) = 30.10555
4. ABS(...)/E2 = 30.10555/176.89445 = 0.1702
5. ...*100 = 0.1702*100 = 17.02
6. ...*0.9 = 17.02*0.9 = 15.32
7. F2-... = 30-15.32 = 14.68
8. MAX(0, 14.68) = 14.68
9. ROUND(14.68, 2) = 14.68

结果:14.68 分

3️⃣ 边界验证

验证项目:

  • ✅ 除零检查:分母是否为 0
  • ✅ 负数检查:结果是否可能为负
  • ✅ 溢出检查:结果是否超出合理范围
  • ✅ 临界值测试:测试边界条件

验证流程:

1. 识别公式中所有分母 → 检查是否为 0 风险
2. 识别 MAX/MIN 函数 → 确认边界处理
3. 代入极端值测试 → 最大值/最小值/临界值
4. 检查结果合理性 → 是否在预期范围内

4️⃣ 招投标价格分计算

支持的评标方法:

  • 综合评分法
  • 最低评标价法
  • 竞争性谈判

价格分公式模板:

' 基准价法 (报价>基准价)
=30-ABS(报价 - 基准价)/基准价*100*0.9

' 基准价法 (报价<基准价)
=30-ABS(报价 - 基准价)/基准价*100*0.6

' 完整版 (含边界处理)
=MAX(0,30-ABS(报价 - 基准价)/基准价*100*系数)

🔧 使用方式

场景 1: Excel 公式解析

用户:解析这个公式 =ROUND(IF(B2<E2,MAX(0,F2-ABS(B2-E2)/E2*100*0.6),...),2)

数学公式计算专家:
1. 外层函数:ROUND(..., 2) → 保留 2 位小数
2. 中间函数:IF(条件,真值,假值)
3. 条件:B2 < E2
4. 真值:MAX(0, F2-ABS(B2-E2)/E2*100*0.6)
5. 假值:IF(B2=E2, F2, MAX(0, F2-ABS(B2-E2)/E2*100*0.9))
...

场景 2: 分步计算

用户:计算价格分,报价 207 万,基准价 176.89 万,基准分 30 分

数学公式计算专家:
已知:
- 报价 = 207 万
- 基准价 = 176.89 万
- 基准分 = 30 分
- 报价 > 基准价,系数用 0.9

计算:
1. 差额 = |207 - 176.89| = 30.11
2. 比例 = 30.11 / 176.89 = 0.1702
3. 扣分 = 0.1702 × 100 × 0.9 = 15.32
4. 价格分 = 30 - 15.32 = 14.68 分

结果:14.68 分

场景 3: 边界验证

用户:验证这个公式是否有边界问题

数学公式计算专家:
检查项目:
1. ✅ 分母 E2 (基准价) → 应>0,正常
2. ✅ MAX(0, ...) → 已处理负数情况
3. ✅ ROUND(..., 2) → 已处理精度
4. ⚠️ 建议:添加 IFERROR 处理异常

改进建议:
=IFERROR(ROUND(IF(...),2), 0)

📊 常见错误与避免

错误 1: 分母混淆

❌ 错误:ABS(报价 - 基准价) / 报价 ✅ 正确:ABS(报价 - 基准价) / 基准价

记忆方法: 比例计算始终以"基准"为分母

错误 2: 系数混淆

❌ 错误:报价<基准价用 0.9,报价>基准价用 0.6 ✅ 正确:报价<基准价用 0.6(鼓励低价),报价>基准价用 0.9(惩罚高价)

记忆方法: 低价扣分少 (0.6),高价扣分多 (0.9)

错误 3: 忽略边界

❌ 错误:30 - ABS(...)*100*系数 (可能为负) ✅ 正确:MAX(0, 30 - ABS(...)*100*系数)

记忆方法: 分数不能为负,必须用 MAX(0,...)


🎯 工作流程 SOP

标准作业程序

┌─────────────────────────────────────────────────────────────┐
│ 数学公式计算 SOP                                            │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  1. 公式原文抄录                                            │
│     ↓                                                       │
│  2. 公式结构拆解 (识别函数层级)                              │
│     ↓                                                       │
│  3. 变量代入 (明确每个变量的值)                              │
│     ↓                                                       │
│  4. 由内向外计算 (先最内层)                                  │
│     ↓                                                       │
│  5. 记录中间结果 (每步保留)                                  │
│     ↓                                                       │
│  6. 边界验证 (除零/负数/溢出)                                │
│     ↓                                                       │
│  7. 结果校验 (合理性检查)                                    │
│     ↓                                                       │
│  8. 用户确认 (输出前请用户验证)                              │
│                                                             │
└─────────────────────────────────────────────────────────────┘

📚 学习资源

Excel 公式教程

  • Microsoft Excel 官方文档
  • Excel 函数大全
  • Excel 公式与函数指南

数学基础

  • 代数运算规则
  • 绝对值计算
  • 百分比与加权

招投标知识

  • 《政府采购法》
  • 《招标投标法》
  • 评标办法与标准

⚠️ 注意事项

  1. 公式原文优先: 不修改用户提供的任何字符
  2. 分步验证: 每步计算都要记录中间结果
  3. 边界检查: 必须验证除零、负数、溢出风险
  4. 用户确认: 输出前请用户确认公式理解是否正确
  5. 持续改进: 遇到错误要记录到 LEARNINGS.md

版本: 1.0.0
创建时间: 2026-03-10
状态: ✅ 已创建

Files

2 total
Select a file
Select a file to preview.

Comments

Loading comments…