Skip to content

Stdlib: pi, angle conversion, log/exp, and float checks - #10

Merged
PurHur merged 1 commit into
masterfrom
stdlib-math-trig-float-checks
May 17, 2026
Merged

Stdlib: pi, angle conversion, log/exp, and float checks#10
PurHur merged 1 commit into
masterfrom
stdlib-math-trig-float-checks

Conversation

@PurHur

@PurHur PurHur commented May 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Implement VM/JIT builtins for pi, deg2rad, rad2deg, log, exp, is_nan, is_finite, and is_infinite
  • Register libm helpers (log, exp, isnan, isfinite, isinf) in the standard module JIT init
  • Add PHPT compliance specs for each function and an integration test for angle conversion and transcendental math

Test plan

  • php vendor/bin/phpunit (VM + JIT compliance suites)
  • Verify new test/compliance/cases/stdlib/*.phpt cases pass
  • Verify test/real/cases/stdlib_trig_math.phpt integration case passes

Made with Cursor

Add VM/JIT implementations and PHPT compliance specs for basic math
stdlib functions (pi, deg2rad, rad2deg, log, exp, is_nan, is_finite,
is_infinite) plus an integration test covering angle conversion and
transcendental helpers.

Co-authored-by: Cursor <cursoragent@cursor.com>
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