Skip to main content
Warning
This app is archived. App archiving documentation
Math extensions app icon

Math extensions

The Math extensions Add-on provides a set of math related macros.Built by Consist Software Solutions
splunk product badge

Default Version 1.0.1

May 6, 2024

Compatibility

Splunk Enterprise

Platform Version: 9.4, 9.3, 9.2, 9.1, 9.0

Rating
5
(3)

Log in to rate this app

Support
Archived Add-on

The Math extensions Add-on provides a set of math related macros. # Supported Macros (Version 1.0.0) -- Factorial -- * `factorial_stirling(stirling_input)` calculates the factorial using stirlings approximation. Results are correct up to factorial 4. After that, only approximations are calculated. * `factorial_lookup(factorial_lookup_input, factorial_lookup_output)` calculates the factorial based on an lookup. It is possible to calculate the factorial up to 200. -- Haversine -- Calculates the distance between two points on earth * `haversine(hav_input_lat1,hav_input_lon1,hav_input_lat2,hav_input_lon2)` defaults to unit = 'km', output field to 'distance'. * `haversine(hav_input_lat1,hav_input_lon1,hav_input_lat2,hav_input_lon2,hav_unit)` defaults output field to 'distance', it is possible to choose 'km', 'nm' or 'mi' as output unit. * `haversine(hav_input_lat1,hav_input_lon1,hav_input_lat2,hav_input_lon2,hav_unit,hav_output_field)` * `nCk(nck_n, nck_k, nck_output)` calculates the binomial coefficient * `nPk(npk_n, npk_k, npk_output)` calculates the permutations from n of k