Giter Site home page Giter Site logo

juerei / factorial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from russel/factorial

0.0 0.0 0.0 488 KB

Various implementations in various languages of factorial(n).

Python 10.15% C++ 5.31% Clojure 7.27% D 1.82% Erlang 1.01% Go 2.66% Groovy 13.81% Haskell 2.08% Java 15.26% Kotlin 9.41% Scala 7.53% Frege 1.12% Ceylon 7.61% Pony 1.51% CMake 0.53% Chapel 6.75% C 1.86% Meson 1.19% Rust 3.02% Prolog 0.10%

factorial's Introduction

Factorial

This repository contains the factorial function:

f(0) = 1
f(n) = n * f(n - 1), n > 0

coded with a number of different algorithms/implementations in various languages. The purpose is not to provide Factorial as a Service (FaaS), but it to investigate data-driven testing (both example based and property based) in the various languages.

See Also

Rosetta Code is possibly the premier location of examples of coding. For factorial see http://rosettacode.org/wiki/Factorial They are though concerned only with the code of the algorithm, the point of this repository is as much the tests as the algorithms.

Licence

All code in this repository is licenced under the GNU Public Licence version 3 (GPLv3). The licence statement is omitted from the individual files, but applies nontheless. The GPLv3 document file is contained in this repository.

factorial's People

Contributors

russel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.