Skip to content

builtins: add tan log10 log2 atan2#181

Merged
danieljohnmorris merged 2 commits into
mainfrom
fix/math-extra-builtins
May 12, 2026
Merged

builtins: add tan log10 log2 atan2#181
danieljohnmorris merged 2 commits into
mainfrom
fix/math-extra-builtins

Conversation

@danieljohnmorris
Copy link
Copy Markdown
Collaborator

Follow-up to PR #162. Adds the four remaining transcendentals every analysis program needs: phase angles atan2, decibels log10, bit-depth log2, oscillations tan. atan2 takes y first per C/Python convention. Opcodes 105-108. 11 cross-engine tests + example with phase/dB/bits/slope.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

❌ Patch coverage is 90.12876% with 23 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/vm/compile_cranelift.rs 31.57% 13 Missing ⚠️
src/vm/mod.rs 96.29% 6 Missing ⚠️
src/interpreter/mod.rs 66.66% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

@danieljohnmorris danieljohnmorris force-pushed the fix/math-extra-builtins branch 2 times, most recently from 8351af3 to a1f7147 Compare May 11, 2026 23:55
Follow-up to PR #162 math builtins. Adds the four remaining transcendentals every analysis program needs: phase angles atan2, decibels log10, bit-depth log2, oscillations tan. atan2 takes y first per C/Python convention. Opcodes 105-108.
@danieljohnmorris danieljohnmorris force-pushed the fix/math-extra-builtins branch from a1f7147 to 583e003 Compare May 12, 2026 00:03
@danieljohnmorris danieljohnmorris merged commit 569b2be into main May 12, 2026
4 of 5 checks passed
@danieljohnmorris danieljohnmorris deleted the fix/math-extra-builtins branch May 12, 2026 00:06
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