Article view

Piecewise: Flexible piecewise functions for fast integral transforms in Julia

By Christophe Berthod

Article information

Publication
Published 22 September 2025
Institutions at publication
University of Geneva
1 Citations OpenAlex, 4 December 2026 FULL LIST: Citations
Countries with citations No data yet
Usage Phase 3: not collected yet

Abstract

A piecewise function of a real variable 𝑥 returns a value computed from a rule that can be different in each interval of the values of 𝑥.The Julia (Bezanson et al., 2017) module Piecewise provides an implementation of piecewise functions, where the user is free to choose the rules.A mechanism allows for fitting a piecewise function made of user-defined formulas to a real function of a real variable. With appropriately chosen formulas, various integral transforms of the piecewise function become directly available without relying on quadratures. The module Piecewise defines seven formula that enable the fast calculation of the moments of the piecewise function. The module PiecewiseHilbert supplements these formula with methods enabling a fast Hilbert transform. The module PiecewiseLorentz extends some of these formula to enable what we call a Lorentz transform. This code was written to solve a quantum physics problem involving several coupled integral equations (Berthod, 2025;

Citations per year

Citations per year
YearCitations
2025 1
2026 0

OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.

Works citing this article

OpenAlex counts 1 citation, but the citing work is not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.

Where its authors are based

Countries of the institutions the article's authors were affiliated to when it was published.

  • AUTHORS
  • CITATIONS No data yet
  • USAGE Phase 3
Authors by country
CountryAuthors
Switzerland1