<commit_before>(*
 * OWL - an OCaml numerical library for scientific computing
 * Copyright (c) 2016-2017 <NAME> <<EMAIL>>
 *)

(** [ Mathematics Module ]  *)

let pi = 3.141592653589793238462643383279502884197169399

(** [ Basic and advanced math functions ] *)

let abs x = if x < 0. then (0.-.x) else x

let neg x = 0. -. x

let sqrt x = sqrt x

let pow x y = x ** y

let exp x = Gsl.Sf.exp x

let expm1 x = Gsl.Sf.expm1 x

let exp_mult x y = Gsl.Sf.exp_mult x y

let exprel x = Gsl.Sf.exprel x

let ln x = Gsl.Sf.log x

let ln1p x = Gsl.Sf.log_1plusx x

let ln_abs x = Gsl.Sf.log_abs x

let log2 x = (ln x) /. Gsl.Math.ln2

let log10 x = (ln x) /. Gsl.Math.ln10

let log base x = (ln x) /. (ln base)

let sigmoid x = 1. /. (exp (-.x) +. 1.)

let sin x = sin x

let cos x = cos x

let tan x = tan x

let cot x = 1. /. (tan x)

let sec x = 1. /. (cos x)

let csc x = 1. /. (sin x)

let asin x = asin x

let acos x = acos x

let atan x = atan x

let acot x = (Gsl.Math.pi /. 2.) -. (atan x)

let asec = None

let acsc = None

let sinc x = Gsl.Sf.sinc x

let sinh x = sinh x

let cosh x = cosh x

let tanh x = tanh x

let asinh x = asinh x

let acosh x = acosh x

let atanh x = atanh x

let lnsinh x = Gsl.Sf.lnsinh x

let lncosh x = Gsl.Sf.lncosh x

let hypot x y = Gsl.Sf.hypot x y
<commit_msg>algodiff : add more operators<commit_after>(*
 * OWL - an OCaml numerical library for scientific computing
 * Copyright (c) 2016-2017 <NAME> <<EMAIL>>
 *)

(** [ Mathematics Module ]  *)

let pi = 3.141592653589793238462643383279502884197169399

(** [ Basic and advanced math functions ] *)

let abs x = if x < 0. then (0.-.x) else x

let neg x = 0. -. x

let sqrt x = sqrt x

let pow x y = x ** y

let exp x = Gsl.Sf.exp x

let expm1 x = Gsl.Sf.expm1 x

let exp_mult x y = Gsl.Sf.exp_mult x y

let exprel x = Gsl.Sf.exprel x

let ln x = Gsl.Sf.log x

let ln1p x = Gsl.Sf.log_1plusx x

let ln_abs x = Gsl.Sf.log_abs x

let log2 x = (ln x) /. Gsl.Math.ln2

let log10 x = (ln x) /. Gsl.Math.ln10

let log base x = (ln x) /. (ln base)

let sigmoid x = 1. /. (exp (-.x) +. 1.)

let sin x = sin x

let cos x = cos x

let tan x = tan x

let cot x = 1. /. (tan x)

let sec x = 1. /. (cos x)

let csc x = 1. /. (sin x)

let asin x = asin x

let acos x = acos x

let atan x = atan x

let acot x = (Gsl.Math.pi /. 2.) -. (atan x)

let asec = None

let acsc = None

let sinc x = Gsl.Sf.sinc x

let sinh x = sinh x

let cosh x = cosh x

let tanh x = tanh x

let asinh x = Gsl.Math.asinh x

let acosh x = Gsl.Math.acosh x

let atanh x = Gsl.Math.atanh x

let lnsinh x = Gsl.Sf.lnsinh x

let lncosh x = Gsl.Sf.lncosh x

let hypot x y = Gsl.Sf.hypot x y

{'fraction_non_alphanumeric': 0.1256166982922201, 'fraction_numerical': 0.05540796963946869, 'mean_word_length': 2.258343634116193, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7172966', 'n_tokens_mistral': 1345, 'n_tokens_neox': 1226, 'n_words': 457}