<commit_before>/* This file is part of Metallic, a runtime library for WebAssembly.
 *
 * Copyright (C) 2017 <NAME> <<EMAIL>>
 *
 * This Source Code Form is subject to the terms of the Mozilla
 * Public License v. 2.0. If a copy of the MPL was not distributed
 * with this file, You can obtain one at http://mozilla.org/MPL/2.0/
 */
#include <math.h>

// Relative error: 1.366020e-8
static double _kernel(double x)
{
    const double c[] = {
        1.0000000136602037230,
       -3.3333387464326621934e-1,
       -2.2218602357593262059e-2,
       -2.1257933049346633617e-3,
       -1.9957378945992693876e-4,
       -2.9761078265444352366e-5,
        9.7271696975616268840e-7,
       -7.7386756126714814615e-7
    };<commit_msg>Full documentation on the kernel of tanf<commit_after>/* This file is part of Metallic, a runtime library for WebAssembly.
 *
 * Copyright (C) 2017 <NAME> <<EMAIL>>
 *
 * This Source Code Form is subject to the terms of the Mozilla
 * Public License v. 2.0. If a copy of the MPL was not distributed
 * with this file, You can obtain one at http://mozilla.org/MPL/2.0/
 */
#include <math.h>
/*!
 * \brief Kernel of tanf
 *
 * This computes the limit of \f$ \sqrt x \cot \sqrt x \f$
 * for \a x in \f$ \left[ 0, \frac\pi2 \right] \f$.
 * The result is guaranteed to be faithfully rounded in \c float,
 * whose absolute error is controlled within 1.366020e-8.
 *
 * If \a x is outside of \f$ \left[ 0, \frac\pi2 \right] \f$,
 * the result is inaccurate.
 *
 * \param x - The argument in \f$ \left[ 0, \frac\pi2 \right] \f$.
 * \return  Approximate \f$ \sqrt x \cot \sqrt x \f$ as precise as \c float.
 */
static double _kernel(double x)
{
    const double c[] = {
        1.0000000136602037230,
       -3.3333387464326621934e-1,
       -2.2218602357593262059e-2,
       -2.1257933049346633617e-3,
       -1.9957378945992693876e-4,
       -2.9761078265444352366e-5,
        9.7271696975616268840e-7,
       -7.7386756126714814615e-7
    };
{'fraction_non_alphanumeric': 0.12124299541518084, 'fraction_numerical': 0.18950585838003056, 'mean_word_length': 2.590493601462523, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '64113', 'n_tokens_mistral': 946, 'n_tokens_neox': 732, 'n_words': 230}