AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻譯準備中
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證🟦 A lightweight JavaScript library for evaluating mathematical expressions written in natural mathematical notation.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Simplifying Math, Empowering Code.
Mathflow is a lightweight JavaScript library for evaluating mathematical expressions written in natural mathematical notation. It parses and computes standard arithmetic, trignometric functions, logarithms, and algebraic expressions exactly as you would write them on paper.
2x + 3(y - 1) instead of 2*x + 3*(y - 1). Both are supported anyway.x = 5, y = 5x - 1import { createContext } from '@mathflowjs/mathflow';
const ctx = createContext({ preferences: { angles: 'deg' } });
ctx.solve('x = 5');
ctx.solve('2x^3 + sqrt(25)');
// {
// value: 255,
// solution: [
// '2 * 5 ^ 3 + sqrt(25)',
// '2 * 125 + 5',
// '250 + 5',
// '255'
// ]
// }
Every value is a plain number, so a data set is written variadically:
mean(1, 2, 3), not mean([1, 2, 3]). See TODO.md for the full
function list and for what is deliberately out of scope.
To get started with Mathflow, read the documentation here.
Contributions are welcome to make Mathflow even better! Feel free to open issues or submit pull requests.
This project is licensed under the MIT License
Copyright © 2024-present, Henry Hale