Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Add fsin and fcos functions to angular library #4

Draft
wants to merge 2 commits into
base: angular
Choose a base branch
from

Conversation

joseviccruz
Copy link
Member

This pull request adds two new methods, fsin and fcos, which use a lookup table to retrieve approximate sine and cosine values, providing a faster alternative to the traditional math functions. While these methods sacrifice some degree of precision, they offer a significant performance boost for situations where speed is of the essence.

@joseviccruz joseviccruz added the enhancement New feature or request label Apr 12, 2023
@joseviccruz joseviccruz self-assigned this Apr 12, 2023
@bcs5
Copy link
Collaborator

bcs5 commented Jun 13, 2023

Depois colocar benchmarks que sustentem e que mostrem o quão mais rápido vs precisão. Além de se houver, referências para se chegar a essa solução.

@joseviccruz
Copy link
Member Author

Depois colocar benchmarks que sustentem e que mostrem o quão mais rápido vs precisão. Além de se houver, referências para se chegar a essa solução.

Não sei se chegará a entrar, o benchmark que fiz não justificou a adição desses métodos, mas manterei em draft até que seja feito um mais confiável.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants