This file is indexed.

/usr/share/genius/gel/functions/delta.gel is in genius-common 1.0.23-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
## Delta functions and related

## Dirac Delta ``function'' (actually a distribution)
## Defined by Intergral_I(f*DiracDelta) = f(0) for I=[a,b], where
## a<0<=b.

## Discrete Delta
## Takes a vector v and returns 1 if any entry is non-zero, 0 otherwise
function DiscreteDelta(v) = KroneckerDelta([0,v])
SetHelp("DiscreteDelta","functions","Returns 1 if and only if all elements are zero");

## Kronecker Delta
## Takes a vector v and returns 1 if all entries are equal,
## 0 otherwise
function KroneckerDelta(v) = 
 (
  test_value=v@(1);
  for i in v do (
    if i != test_value then return 0
  );
  1
 )
SetHelp("KroneckerDelta","functions","Returns 1 if and only if all elements are equal");

## Unit Step Function
## The integral of the Dirac Delta function
## FIXME: should have option to make UnitStep(0) be undefined
function UnitStep(x) = if (x<0) then 0 else 1
SetHelp("UnitStep","functions","The unit step function = 0 for x<0, 1 otherwise.  This is the integral of the Dirac Delta function.");