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.3.tar.gz
(2.0 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.3.tar.gz.
File metadata
- Download URL: fasttrig-0.1.3.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fe32ea570b02983088359e6b7523645d673036b9fa0779afb835ee7c4c334ab
|
|
| MD5 |
c63949fd3e517993884f8509e97fd691
|
|
| BLAKE2b-256 |
014fa97aa6c829b33c68016e3cc1f1d6250647ffd711825f2dd8cfed8069ab07
|
File details
Details for the file fasttrig-0.1.3-py3-none-any.whl.
File metadata
- Download URL: fasttrig-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.3 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 |
80c498e19df71b0622dc616149e4a48f7288938668de6714f43bc55fdc22cd78
|
|
| MD5 |
99106a3fbc4f04c4304bd85117948256
|
|
| BLAKE2b-256 |
cf43db92778e45574c43d2200c5f4f5633bc0d62037f7a069b710c42b65aa4bd
|