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

Uploaded Python 3

File details

Details for the file fasttrig-0.1.1.tar.gz.

File metadata

  • Download URL: fasttrig-0.1.1.tar.gz
  • Upload date:
  • Size: 1.8 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.1.tar.gz
Algorithm Hash digest
SHA256 143892b3ccbfc0e8843a72f90fc1df2f74fa31fbe604084029ad199810319a82
MD5 7d1745665306c71321a7a5aa67e07ab3
BLAKE2b-256 60e17d2caf400f02544a7ed7156b0df8a7bf0eefb739cce086de9d7841ecf11e

See more details on using hashes here.

File details

Details for the file fasttrig-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: fasttrig-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f610f4f28b97840cd1e887c7a0672e40cc6fcaaf5d07a7fc854d1b90e763a8b
MD5 19d67e097f0b000f13c550a1f0933081
BLAKE2b-256 025852de441fed563bb8bc9d35ba733f7d3bef751d6446a36a2f9c772106b783

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