Giter VIP home page Giter VIP logo

funmath's Introduction



FUN MATH

Implementations of mathematical functions, formulas and concepts




It provides the mathematical implementations for various topics which are related to mathematical things such as fibonacci, euclidean, prime numbers and so on. Any mathematical topics or concepts are welcome. If you love the math, join to here with your algorithms and codes!

This repository does not force for using the specific programming languages, but if you are using the Python, you should use the Python 3.6 to contribute or to run. (you wiil use the only Python 3.6+ in the future)

A solution can be implemented in three ways:

  • By definition solution, a mathematical definition. Good example is the fibonacci series. But the solution by definition of the fibonacci has worst performance
  • Optimal solution which has better performance than by definition one (or best solution).
  • Creative solution. This may not be optimal one, but creative or funny way.

Run

  • Python
    • python3 -m doctest <path>/<script_name.py> -v

Implementations

Contribution

  • You can implement any sort of algorithms for mathematical things.
    • If you add new kind of algorithms, please also add that in README as new category.
    • If you want to add other programming language version of existing solutions, you must name the source code file as same to existing one.
    • It is better to provide the explains of your algorithms in comments of source code files.
  • You can use any programming languages you are preferring, but you SHOULD take care of handling large numbers. And if you want to contribute the algorithms with Python, you SHOULD write the scripts with Python 3.6+.
  • You MUST have to write the test codes for each algorithms. See the example for writing the tests (the example is written in Python)
  • It is not recommended to use the builtin math libraries as possible. Because this repository encourages that implement the mathematical things by ourselves.
  • It is better to provide the optimal solutions as well for each algorithms.

Changelog

Enhancement

  • Link the Travis CI to run the tests when commits #4

Fixed

  • Don't check the weird invalid type on functions which accept only specific types #3
  • Remove the stricted type checking on some functions #2

Contributors

License

FOSSA Status

funmath's People

Contributors

mingrammer avatar stzminjae avatar tsimpdim avatar xaltonon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

funmath's Issues

I wouldn't use math.floor(x) != x

Go the save round and just use isinstance(n, numbers.Number) or numbers.Complex, numbers.Real and and and. So you don't need to import the math module at all, which I think was your goal.

Tests

Hey guys,

is this repository still activate?

Have you ever thought of implementing tests ?

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.