Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide trigonometry functions #70

Open
zoubata opened this issue Sep 28, 2020 · 1 comment
Open

Provide trigonometry functions #70

zoubata opened this issue Sep 28, 2020 · 1 comment
Labels
Feature Request This issue is a request for a particular feature Minor This change is a minor addition

Comments

@zoubata
Copy link

zoubata commented Sep 28, 2020

Hi,
This is a very interesting lib for smal CPU without FPU.
On my case I need sin(x) cos(x),
It could be nice to add this into your library, with precomputed table.

@Pharap Pharap added Feature Request This issue is a request for a particular feature Minor This change is a minor addition labels Mar 25, 2021
@Pharap Pharap changed the title improvement : trigonometric math Provide trigonometry functions Mar 25, 2021
@Pharap
Copy link
Owner

Pharap commented Mar 25, 2021

I will look into this in the future, but at the moment trigonometric functions haven't been provided simply because of the difficulty of providing functions that are both generic and efficient.

I have in the past written sine and cosine functions that accepted 'brads' ('binary radians' - where the values 0 to 256 map to degrees of 0 to 360), but I would need to research alternatives and performance costs before introducing anything into the library itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request This issue is a request for a particular feature Minor This change is a minor addition
Projects
None yet
Development

No branches or pull requests

2 participants