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.2.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.2.tar.gz.
File metadata
- Download URL: fasttrig-0.1.2.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 |
d79c8fd745081e93ea25ae28a14df64fdc2ce5d0480e70b07d90ec9c0860e313
|
|
| MD5 |
25a65998902464023edabd2b5d065a70
|
|
| BLAKE2b-256 |
724ff7a6ab7579471dfca0e9363d3aaadd445800e056445ee750a10c6494a103
|
File details
Details for the file fasttrig-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fasttrig-0.1.2-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 |
bc9bcfc8d10a5a6e7723dd8b80b4582f780736f771500b23b441655eefda1568
|
|
| MD5 |
1a84908b7d380ccae9c4af9dab14d2e5
|
|
| BLAKE2b-256 |
fe3ad24b3bc3e9874f249908748fb9cf7f37805534b583b67f9637b4fa5daf78
|