Skip to main content
Ctrl+K
    AMPL Resources
  • AMPL.com
  • AMPL Support Forum
  • AMPL Download Portal
  • AMPL Development Resources
  • Amplbot
  • AMPL + Python 🐍
  • AMPL on Streamlit Cloud
  • Hands-On Optimization in Python
  • AMPL Model Colaboratory
  • amplpy: Python API
  • More Resources
  • AMPL Books
  • MP: Solver Interface Framework
  • AMPL’s Open-Source Projects
  • Licenses & Pricing
  • AMPL & Solvers pricing
  • Free Academic Licenses
  • Free AMPL Community Edition
  • Social Media
  • LinkedIn
amplgsl documentation - Home amplgsl documentation - Home GSL
  • Quick Start
  • Reference
  • Examples
  • GNU documentation and licenses
  • GitHub
  • AMPL Support Forum
  • AMPL Portal
  • AMPL Homepage
  • AMPL Resources
  • Amplbot
  • Quick Start
  • Reference
  • Examples
  • GNU documentation and licenses
  • GitHub
  • AMPL Support Forum
  • AMPL Portal
  • AMPL Homepage
  • AMPL Resources
  • Amplbot
Ctrl+K

Section Navigation

  • Elementary Functions
  • Special Functions
    • Airy Functions and Derivatives
    • Bessel Functions
    • Clausen Function
    • Coulomb Functions
    • Coupling Coefficients
    • Dawson Function
    • Debye Functions
    • Dilogarithm
    • Elliptic Integrals
    • Error Functions
    • Exponential Integrals
    • Fermi-Dirac Function
    • Gamma and Beta Functions
    • Gegenbauer Functions
    • Hypergeometric Functions
    • Laguerre Functions
    • Lambert W Functions
    • Legendre Functions and Spherical Harmonics
    • Logarithm and Related Functions
    • Mathieu Functions
    • Power Function
    • Psi (Digamma) Function
    • Synchrotron Functions
    • Transport Functions
    • Zeta Functions
    • References and Further Reading
  • Trigonometric Functions
  • Random Number Generation
  • Random Number Distributions
    • Introduction
    • The Gaussian Distribution
    • The Gaussian Tail Distribution
    • The Exponential Distribution
    • The Laplace Distribution
    • The Exponential Power Distribution
    • The Cauchy Distribution
    • The Rayleigh Distribution
    • The Rayleigh Tail Distribution
    • The Landau Distribution
    • The Levy alpha-Stable Distribution
    • The Levy skew alpha-Stable Distribution
    • The Gamma Distribution
    • The Flat (Uniform) Distribution
    • The Lognormal Distribution
    • The Chi-squared Distribution
    • The F-distribution
    • The t-distribution
    • The Beta Distribution
    • The Logistic Distribution
    • The Pareto Distribution
    • The Weibull Distribution
    • The Type-1 Gumbel Distribution
    • The Type-2 Gumbel Distribution
    • The Poisson Distribution
    • The Bernoulli Distribution
    • The Binomial Distribution
    • The Negative Binomial Distribution
    • The Pascal Distribution
    • The Geometric Distribution
    • The Hypergeometric Distribution
    • The Logarithmic Distribution
    • References and Further Reading
  • Statistics
    • Mean, Standard Deviation and Variance
    • Absolute deviation
    • Higher moments (skewness and kurtosis)
    • Autocorrelation
    • Covariance
    • Correlation
    • Maximum and Minimum values
    • Median and Percentiles
    • Order Statistics
    • Robust Location Estimates
    • Robust Scale Estimates
    • References and Further Reading
  • Sorting Functions
AMPL Python Ecosystem AMPL Python Ecosystem AMPL Model Colaboratory
Hands-On Mathematical Optimization with AMPL in Python

Follow us on LinkedIn!

  • Reference
  • Special Functions
  • Logarithm and Related Functions

Logarithm and Related Functions#

Information on the properties of the Logarithm function can be found in Abramowitz & Stegun, Chapter 4.

gsl_sf_log(x)#

This routine computes the logarithm of \(x\), \(\log(x)\), for \(x > 0\).

gsl_sf_log_abs(x)#

This routine computes the logarithm of the magnitude of \(x\), \(\log(|x|)\), for \(x \ne 0\).

gsl_sf_log_1plusx(x)#

This routine computes \(\log(1 + x)\) for \(x > -1\) using an algorithm that is accurate for small \(x\).

gsl_sf_log_1plusx_mx(x)#

This routine computes \(\log(1 + x) - x\) for \(x > -1\) using an algorithm that is accurate for small \(x\).

previous

Legendre Functions and Spherical Harmonics

next

Mathieu Functions

On this page
  • gsl_sf_log()
  • gsl_sf_log_abs()
  • gsl_sf_log_1plusx()
  • gsl_sf_log_1plusx_mx()

© Copyright 2016-2026, AMPL Optimization Inc.