constants-float64-max-nth-double-factorial

Maximum nth double factorial when stored in double-precision floating-point format.

https://github.com/feiyingjun/constants-float64-max-nth-double-factorial

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.5%) to scientific vocabulary

Keywords

const constant double f64 float floating floating-point ieee754 javascript max nodejs number safe stdlib
Last synced: 6 months ago · JSON representation ·

Repository

Maximum nth double factorial when stored in double-precision floating-point format.

Basic Info
  • Host: GitHub
  • Owner: feiyingjun
  • License: apache-2.0
  • Language: JavaScript
  • Default Branch: main
  • Size: 43.9 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Topics
const constant double f64 float floating floating-point ieee754 javascript max nodejs number safe stdlib
Created 10 months ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct Citation Security

README.md

Constants for Maximum nth Double Factorial in Double-Precision Floating-Point Format 🎉

Double Factorial Latest Release

Welcome to the constants-float64-max-nth-double-factorial repository! This project provides a constant value representing the maximum nth double factorial that can be stored in double-precision floating-point format.

Table of Contents

Introduction

The double factorial of a non-negative integer ( n ) is the product of all the integers from ( n ) down to 1 that have the same parity as ( n ). For example, the double factorial of 6 is ( 6 \times 4 \times 2 = 48 ), and the double factorial of 5 is ( 5 \times 3 \times 1 = 15 ).

This repository focuses on the maximum value of the nth double factorial that can be represented in a double-precision floating-point format, adhering to the IEEE 754 standard. This value is crucial for applications in scientific computing, numerical analysis, and statistical modeling.

Installation

To get started with this project, you can download the latest release from our Releases page. Make sure to execute the downloaded file according to the instructions provided.

Prerequisites

  • Node.js installed on your machine.
  • Basic understanding of JavaScript.

Usage

Once you have installed the necessary files, you can utilize the constant in your JavaScript code. Here’s a simple example:

```javascript const maxNthDoubleFactorial = require('constants-float64-max-nth-double-factorial');

console.log(The maximum nth double factorial is: ${maxNthDoubleFactorial}); ```

This will log the maximum value of the nth double factorial to the console.

Example Calculation

To demonstrate how to calculate a double factorial, consider the following function:

```javascript function doubleFactorial(n) { if (n < 0) return undefined; // Not defined for negative numbers if (n === 0 || n === 1) return 1; // Base case return n * doubleFactorial(n - 2); // Recursive call }

console.log(doubleFactorial(6)); // Outputs: 48 console.log(doubleFactorial(5)); // Outputs: 15 ```

This function recursively calculates the double factorial for a given integer ( n ).

Contributing

We welcome contributions to this project! If you want to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature/YourFeature).
  6. Open a Pull Request.

Please ensure that your code adheres to our coding standards and includes tests where applicable.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Support

If you encounter any issues or have questions, please check the Releases section for updates. You can also open an issue in the repository for assistance.

Conclusion

Thank you for visiting the constants-float64-max-nth-double-factorial repository! We hope you find this constant useful in your projects. For more information and updates, feel free to explore the Releases page.

Stay curious and keep coding! 🚀

Owner

  • Login: feiyingjun
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
title: stdlib
message: >-
  If you use this software, please cite it using the
  metadata from this file.

type: software

authors:
  - name: The Stdlib Authors
    url: https://github.com/stdlib-js/stdlib/graphs/contributors

repository-code: https://github.com/stdlib-js/stdlib
url: https://stdlib.io

abstract: |
  Standard library for JavaScript and Node.js.

keywords:
  - JavaScript
  - Node.js
  - TypeScript
  - standard library
  - scientific computing
  - numerical computing
  - statistical computing

license: Apache-2.0 AND BSL-1.0

date-released: 2016

GitHub Events

Total
  • Release event: 1
  • Push event: 750
  • Create event: 3
Last Year
  • Release event: 1
  • Push event: 750
  • Create event: 3

Dependencies

package.json npm
  • istanbul ^0.4.1 development
  • tap-min git+https://github.com/Planeshifter/tap-min.git development
  • tape git+https://github.com/kgryte/tape.git#fix/globby development
  • @stdlib/utils-library-manifest ^0.2.2