Skip to content

✨ feat(mq-lang): add math builtin functions ln, log10, sqrt, exp and fix pow#1602

Merged
harehare merged 1 commit intomainfrom
feat/math-builtins
Apr 15, 2026
Merged

✨ feat(mq-lang): add math builtin functions ln, log10, sqrt, exp and fix pow#1602
harehare merged 1 commit intomainfrom
feat/math-builtins

Conversation

@harehare
Copy link
Copy Markdown
Owner

  • Add ln: natural logarithm (base e)
  • Add log10: base-10 logarithm
  • Add sqrt: square root
  • Add exp: exponential (e^x)
  • Fix pow to support negative and float exponents via powf
  • Add integration tests for all new functions and pow edge cases
  • Add doc entries for all new builtins

…fix pow

- Add `ln`: natural logarithm (base e)
- Add `log10`: base-10 logarithm
- Add `sqrt`: square root
- Add `exp`: exponential (e^x)
- Fix `pow` to support negative and float exponents via `powf`
- Add integration tests for all new functions and pow edge cases
- Add doc entries for all new builtins
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Apr 15, 2026

Merging this PR will not alter performance

✅ 29 untouched benchmarks


Comparing feat/math-builtins (83952e4) with main (f5c5277)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (48f619d) during the generation of this report, so f5c5277 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@harehare harehare merged commit ccf8d87 into main Apr 15, 2026
6 checks passed
@harehare harehare deleted the feat/math-builtins branch April 15, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant