Fast sine/cosine/tangent approximation using fourth degree polynomials
Project description
fasttrig
<<<<<<< HEAD Fast approximation of sin, cos, tan using forth degree polynomials
A fast and lightweight approximation of sin, cos, and tan using 4th-degree polynomials.
Accuracy: Error < 0.001
Example
from fasttrig import P1_fast, fast_cos, fast_tan
import numpy as np
print(P1_fast(np.pi/2))
print(fast_cos(np.pi))
print(fast_tan(np.pi/4))
08b946d (Initial commit: fasttrig first release)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fasttrig-0.1.0.tar.gz
(1.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fasttrig-0.1.0.tar.gz.
File metadata
- Download URL: fasttrig-0.1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dd482a6bb8a56dd3abde3944a0b5188d39ac2391c3aa1b8bc5566987cbcbba9
|
|
| MD5 |
e5114bb4b137e29ec596ca79ec6092f6
|
|
| BLAKE2b-256 |
8070be81fb9d721f29fe83a72f315906f7bbfc9be4396f3525320155a707b0ae
|
File details
Details for the file fasttrig-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fasttrig-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaf0250765b71510c73c0db42e86fc0c6a6ac5732ff8ea1c936c9a4414df66ff
|
|
| MD5 |
c49da67955b2a1cabbb238b841600942
|
|
| BLAKE2b-256 |
2c49960bc61bbff9ceb8dac05104dfebbdf75ac613a7daa21a38b509758a83db
|