Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fasttrig-0.1.3-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

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

Hashes for fasttrig-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6fe32ea570b02983088359e6b7523645d673036b9fa0779afb835ee7c4c334ab
MD5 c63949fd3e517993884f8509e97fd691
BLAKE2b-256 014fa97aa6c829b33c68016e3cc1f1d6250647ffd711825f2dd8cfed8069ab07

See more details on using hashes here.

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

Hashes for fasttrig-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 80c498e19df71b0622dc616149e4a48f7288938668de6714f43bc55fdc22cd78
MD5 99106a3fbc4f04c4304bd85117948256
BLAKE2b-256 cf43db92778e45574c43d2200c5f4f5633bc0d62037f7a069b710c42b65aa4bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page