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.0.tar.gz (1.9 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.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

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

Hashes for fasttrig-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3dd482a6bb8a56dd3abde3944a0b5188d39ac2391c3aa1b8bc5566987cbcbba9
MD5 e5114bb4b137e29ec596ca79ec6092f6
BLAKE2b-256 8070be81fb9d721f29fe83a72f315906f7bbfc9be4396f3525320155a707b0ae

See more details on using hashes here.

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

Hashes for fasttrig-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eaf0250765b71510c73c0db42e86fc0c6a6ac5732ff8ea1c936c9a4414df66ff
MD5 c49da67955b2a1cabbb238b841600942
BLAKE2b-256 2c49960bc61bbff9ceb8dac05104dfebbdf75ac613a7daa21a38b509758a83db

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