<commit_before>extern crate integrate;

use integrate::cquad;
use std::num::FloatMath;
use std::f64::consts;

fn main() {
    // Integrate sin(x)/2 from 0 to pi
    let (result, err, neval) = cquad(|x| 0.5f64 * FloatMath::sin(x), 0f64, consts::PI);
    println!("result: {}, err {}, neval {}", result, err, neval);
}

<commit_msg>Increase output precision in example<commit_after>extern crate integrate;

use integrate::cquad;
use std::num::FloatMath;
use std::f64::consts;

fn main() {
    // Integrate sin(x)/2 from 0 to pi
    let (result, err, neval) = cquad(|x| 0.5f64 * FloatMath::sin(x), 0f64, consts::PI);
    println!("result: {:.10e}, err {:.10e}, neval {}", result, err, neval);
}


{'fraction_non_alphanumeric': 0.19047619047619047, 'fraction_numerical': 0.03751803751803752, 'mean_word_length': 4.552, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1617013', 'n_tokens_mistral': 277, 'n_tokens_neox': 258, 'n_words': 70}