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
(0)
Categories
Created By
Type
Downloads
Licensing
Splunk Answers
Resources