Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[WIP] Complete redesign of AngouriMath.FSharp

未关闭
#575 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
28/100
Issue 类型
重构
描述清晰度
需要澄清
活跃度
活跃
技术栈
fsharp

调研方向

首先检查 Sources/Wrappers/AngouriMath.FSharp/Operators.fs 和 Shortcuts.fs,然后将现有的 wrapper API 与 issue 中建议的 Functions 签名进行比较。当重新设计的范围和命名达成一致,并且受影响的 F# wrapper API、运算符和 shortcuts 都一致地体现该决定时,即可视为完成。

由索引模型根据 Issue 内容生成。

描述

Area: F# Design document Opinions wanted

Current problem

  1. First of all, naming is weird. E. g. simplified and compiled feel weird (not to mention derivative vs derivativeNode)
  2. Second, too long naming. derivative seems imo too long for something so commonly used. I think we can make it short.3.
  3. There are also some poorly named functions, like asNumber. What does it do? Well, it evaluates to a number.
  4. Weird undocumented operators, like this one
  5. Shortcuts which are too simple to take space in the library, and aren't very convenient to remember without IDE support

Suggested API

It should be concise, clear, consistent.

AngouriMath.FSharp.Functions
val simplify : obj -> Entity
val eval : obj -> Entity
val sub : (var : obj) -> (value : obj) -> (expr : obj) -> obj

val toInt32 : obj -> int
val toInt64 : obj -> long
val toFloat32 : obj -> float
val toFloat64 : obj -> double
val toBool : obj -> bool


主要语言
C#
星标
831
派生
79
平均合并
2 小时 15 分钟
30 天内合并 PR
459

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ASC-Community/AngouriMath 的其他 Issue

查看 ASC-Community/AngouriMath 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。