.: Calco :.

High-Performance Math Library

About | Features | Installation | Downloads | License

About calco

calco is a high-performance, cross-platform math library written in C and exposed as a Python extension.

It provides fast, accurate, and comprehensive implementations of advanced mathematical operations beyond what's available in Python's MATH modules. calco is designed to be the fastest library for complex or moderately complex individual mathematical operations in Python, offering speeds over 30% faster than the built-in math module. Additionally, it supports ready-to-use functions not available in math.

๐Ÿš€ Features
๐Ÿ“ฆ Installation

Install from PyPI:

pip install calco

You can also manually download the appropriate version for your system from the links below in the Downloads section.

๐Ÿงช Example Usage
import calco

# Basic math
print(calco.add(3.0, 4.5))            # 7.5
print(calco.divide(10.0, 3.0))        # 3.333...

# Trigonometry
print(calco.sine(1.57))               # โ‰ˆ sin(90ยฐ)
print(calco.arctangent2(2.0, 3.0))    # atan2(y, x)

# Logarithmic
print(calco.log_base10(1000))         # 3.0

# Special
print(calco.gamma_function(0.5))      # โ‰ˆ sqrt(pi)
print(calco.fused_multiply_add(2, 3, 4))  # (2*3)+4 = 10
๐Ÿ“š Available Functions
Category Functions
Arithmeticadd, subtract, multiply, divide, power, square_root, cube_root, absolute_value, float_modulo, positive_difference, copy_sign_double, fused_multiply_add
Roundingfloor_val, ceil_val, round_val, nearbyint_val, truncate_val
Trigonometricsine, cosine, tangent, arcsine, arccosine, arctangent, arctangent2
Hyperbolichyperbolic_sine, hyperbolic_cosine, hyperbolic_tangent, inverse_hyperbolic_sine, inverse_hyperbolic_cosine, inverse_hyperbolic_tangent
Logarithmicnatural_log, log_base10, log_base2, log_custom_base
Exponentialexponential, exponential_base2, exponential_minus_1
Specialgamma_function, log_gamma_function, error_function, complementary_error_function, next_after_double
Constantsget_pi, get_e
Convertersdegrees_to_radians, radians_to_degrees
Checksis_nan, is_infinity
๐Ÿ›  Platform Support
OS Architectures
Windowsx86 / x64
Linuxx86_64, ARM (via wheel)
macOSIntel / Apple Silicon
โฌ‡๏ธ Downloads

Select the appropriate wheel file for your Python version and system architecture.

Windows Downloads

32-bit (Win32)

calco-1.0.0-cp38-cp38-win32.whl (9 KB) calco-1.0.0-cp313-cp313-win32.whl (9 KB) calco-1.0.0-cp312-cp312-win32.whl (9 KB) calco-1.0.0-cp39-cp39-win32.whl (9 KB) calco-1.0.0-cp311-cp311-win32.whl (9 KB) calco-1.0.0-cp310-cp310-win32.whl (9 KB)

64-bit (Win_amd64)

calco-1.0.0-cp38-cp38-win_amd64.whl (10 KB) calco-1.0.0-cp39-cp39-win_amd64.whl (10 KB) calco-1.0.0-cp310-cp310-win_amd64.whl (10 KB) calco-1.0.0-cp311-cp311-win_amd64.whl (10 KB) calco-1.0.0-cp312-cp312-win_amd64.whl (10 KB) calco-1.0.0-cp313-cp313-win_amd64.whl (10 KB)

Linux Downloads (x86_64)

Manylinux

calco-1.0.0-cp39-cp39-manylinux1_x86_64.whl (20 KB) calco-1.0.0-cp310-cp310-manylinux1_x86_64.whl (20 KB) calco-1.0.0-cp311-cp311-manylinux1_x86_64.whl (20 KB) calco-1.0.0-cp312-cp312-manylinux1_x86_64.whl (20 KB) calco-1.0.0-cp313-cp313-manylinux1_x86_64.whl (20 KB) calco-1.0.0-cp38-cp38-manylinux1_x86_64.whl (20 KB)

Musllinux

calco-1.0.0-cp39-cp39-musllinux_1_2_x86_64.whl (21 KB) calco-1.0.0-cp38-cp38-musllinux_1_2_x86_64.whl (21 KB) calco-1.0.0-cp310-cp310-musllinux_1_2_x86_64.whl (21 KB) calco-1.0.0-cp311-cp311-musllinux_1_2_x86_64.whl (21 KB) calco-1.0.0-cp312-cp312-musllinux_1_2_x86_64.whl (21 KB) calco-1.0.0-cp313-cp313-musllinux_1_2_x86_64.whl (21 KB)

macOS Downloads (Apple Silicon/ARM64)

calco-1.0.0-cp38-cp38-macosx_11_0_arm64.whl (7 KB) calco-1.0.0-cp39-cp39-macosx_11_0_arm64.whl (7 KB) calco-1.0.0-cp310-cp310-macosx_11_0_arm64.whl (7 KB) calco-1.0.0-cp312-cp312-macosx_11_0_arm64.whl (7 KB) calco-1.0.0-cp311-cp311-macosx_11_0_arm64.whl (7 KB) calco-1.0.0-cp313-cp313-macosx_11_0_arm64.whl (7 KB)
๐Ÿง‘โ€๐Ÿ’ป License

MIT License โ€“ free for personal, academic, and commercial use.