Git Product home page Git Product logo

math-functions's Introduction

Math Functions

A C++ library containing most commonly used mathematics routines in solving Project Euler. While this is written to improve upon code reusability while attempting Project Euler, I hope that others will also find this useful.

Usage

Check out this guide

Documentation

Check out the wiki

To do (in no particular order)

  • Finding nth prime
  • Whether a number is pandigital
  • Whether a number is permutation of another number
  • Sum of multiples of a number
  • Whether 3 numbers form a triangle
  • Check for Pythagorean triplet
  • Divisors count (proper and improper)
  • Prime factorization and prime factors count
  • Collatz Sequence
  • Champernowne's Constant
  • Factorials
  • Computations with days of the year
  • Fibonacci Index
  • Combinatorics
  • Concatenating integers
  • Check for perfect square
  • Triangular, Pentagonal and Hexagonal numbers

Contributing

At this stage, there not many functionalities available. If you think you have an awesome suggestion (all suggestions are awesome!), feel free to open an issue with your feature. If you already implemented it, open a pull request.

If you have a better implementation or optimization to any of the algorithms I've used, submit your proposal, properly commented, with a pull request and I'll look into it. The only contributing guideline is "Don't mess up existing code and try to follow the same style (unless you think it is inefficient)"

Issues

This is a work in progress. I try my best to keep the code bug free and correct. But some edge cases may not be fully tested. If you come across any bug, file an issue and I will look into it. I might add some test cases and CI, in the near future, for keeping the code free of bugs.

License

This is released under the MIT License. See the license for more info.

math-functions's People

Contributors

aparav avatar

Watchers

 avatar  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.