Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1005 Bytes

math.md

File metadata and controls

33 lines (24 loc) · 1005 Bytes

math: Mathematics in SQLite

Common math functions for SQLite versions before 3.35. Extracted from SQLite 3.35.4 source code (func.c).

Provides following functions:

  • rounding: ceil, floor, trunc;
  • logarithmic: ln, log10, log2, log;
  • arithmetic: pow, sqrt, mod;
  • trigonometric: cos, sin, tan;
  • hyperbolic: cosh, sinh, tanh;
  • inverse trigonometric: acos, asin, atan, atan2;
  • inverse hyperbolic: acosh, asinh, atanh;
  • angular measures: radians, degrees;
  • pi.

Full description

Installation and Usage

SQLite command-line interface:

sqlite> .load ./math
sqlite> select sqrt(9);

See How to Install an Extension for usage with IDE, Python, etc.

⬇️ Download✨ Explore🚀 Follow