Skip to content

Conversation

@mhovd
Copy link
Collaborator

@mhovd mhovd commented Jan 8, 2026

This PR adds support for trigonometric, hyperbolic, and rounding functions.

We use this sometimes in e.g. Heaviside models.

Copilot AI review requested due to automatic review settings January 8, 2026 18:14
@mhovd mhovd linked an issue Jan 8, 2026 that may be closed by this pull request
2 tasks
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the model transpiler to support additional mathematical functions commonly used in Heaviside models, including trigonometric, hyperbolic, rounding, and logarithmic functions.

Key Changes:

  • Added support for trigonometric functions (sin, cos, tan, asin, acos, atan, atan2)
  • Added support for hyperbolic functions (sinh, cosh, tanh, asinh, acosh, atanh)
  • Added support for rounding functions (floor, ceiling, round, trunc)
  • Added ln and log2 logarithmic functions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mhovd mhovd merged commit 4aa76fb into main Jan 9, 2026
10 checks passed
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.

Feature request: support more functions in the transpiler

3 participants