Skip to content

[FPSan] implement cosine and sine#10005

Merged
ptillet merged 2 commits into
mainfrom
fpsan_cossin
Apr 11, 2026
Merged

[FPSan] implement cosine and sine#10005
ptillet merged 2 commits into
mainfrom
fpsan_cossin

Conversation

@apgoucher
Copy link
Copy Markdown
Collaborator

These now obey the usual algebraic properties, namely the trigonometric angle sum identities, reflection formulae, and the sin(x)^2 + cos(x)^2 == 1 norm condition. Unit tests are included to verify these.

This is accomplished by taking the coefficients of (-3/5 + 4/5 i)^x in the quadratic extension of the payload domain by a formal symbol i satisfying i^2 == -1.

These now obey the usual algebraic properties, namely the angle sum
identities, reflection formulae, and the sin(x)^2 + cos(x)^2 == 1
norm condition.

This is accomplished by taking the coefficients of (-3/5 + 4/5 i)^x
in the quadratic extension of the payload domain by a formal symbol
i satisfying i^2 == -1.
@ptillet ptillet merged commit f7c1d69 into main Apr 11, 2026
9 checks passed
@ptillet ptillet deleted the fpsan_cossin branch April 11, 2026 17:31
plognjen pushed a commit to plognjen/triton that referenced this pull request Apr 14, 2026
These now obey the usual algebraic properties, namely the trigonometric
angle sum identities, reflection formulae, and the `sin(x)^2 + cos(x)^2
== 1` norm condition. Unit tests are included to verify these.

This is accomplished by taking the coefficients of `(-3/5 + 4/5 i)^x` in
the quadratic extension of the payload domain by a formal symbol `i`
satisfying `i^2 == -1`.
raymondtay pushed a commit to raymondtay/triton that referenced this pull request Apr 18, 2026
These now obey the usual algebraic properties, namely the trigonometric
angle sum identities, reflection formulae, and the `sin(x)^2 + cos(x)^2
== 1` norm condition. Unit tests are included to verify these.

This is accomplished by taking the coefficients of `(-3/5 + 4/5 i)^x` in
the quadratic extension of the payload domain by a formal symbol `i`
satisfying `i^2 == -1`.
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.

2 participants