<commit_before># -*- coding: utf-8 -*-
"""
Mathematical operations that generalize many operations from the
standard math module so that they also track first and second derivatives.

Examples:

  from admath import sin
  
  # Manipulation of numbers with uncertainties:
  x = ad.AD(3)
  print sin(x)  # prints ADF(0.141120008...)

  # The umath functions also work on regular Python floats:
  print sin(3)  # prints 0.141120008...  This is a Python float.

Importing all the functions from this module into the global namespace
is possible.  This is encouraged when using a Python shell as a
calculator.  Example:

  import ad
  from ad.admath import *  # Imports tan(), etc.
  
  x = ad.AD(3, 0.1)
  print tan(x)  # tan() is the ad.admath.tan function

The numbers with derivative tracking handled by this module are objects from
the ad (automatic differentiation) module, from either the ADV or the ADF class.

(c) 2013 by <NAME> (ADL) <<EMAIL>>.
Please send feature requests, bug reports, or feedback to this address.

This software is released under a dual license.  (1) The BSD license.
(2) Any other license, as long as it is obtained from the original
author.'''
"""
from __future__ import division
import math
from ad import __author__,ADF,to_auto_diff,_calculate_derivatives

__all__ = [<commit_msg>Fixed lots of calculation errors with inverse trig and inverse hyperbolic functions<commit_after># -*- coding: utf-8 -*-
"""
Mathematical operations that generalize many operations from the
standard math module so that they also track first and second derivatives.

Examples:

  from admath import sin
  
  # Manipulation of numbers with uncertainties:
  x = ad.AD(3)
  print sin(x)  # prints ADF(0.141120008...)

  # The umath functions also work on regular Python floats:
  print sin(3)  # prints 0.141120008...  This is a Python float.

Importing all the functions from this module into the global namespace
is possible.  This is encouraged when using a Python shell as a
calculator.  Example:

  import ad
  from ad.admath import *  # Imports tan(), etc.
  
  x = ad.AD(3, 0.1)
  print tan(x)  # tan() is the ad.admath.tan function

The numbers with derivative tracking handled by this module are objects from
the ad (automatic differentiation) module, from either the ADV or the ADF class.

(c) 2013 by <NAME> (ADL) <<EMAIL>>.
Please send feature requests, bug reports, or feedback to this address.

This software is released under a dual license.  (1) The BSD license.
(2) Any other license, as long as it is obtained from the original
author.'''
"""
from __future__ import division
import math
from ad import __author__,ADF,to_auto_diff,_calculate_derivatives

__all__ = [
    # math module equivalent functions
{'fraction_non_alphanumeric': 0.07517418408507517, 'fraction_numerical': 0.02346901356802347, 'mean_word_length': 3.9330922242314648, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4381774', 'n_tokens_mistral': 834, 'n_tokens_neox': 767, 'n_words': 373}