Giter VIP home page Giter VIP logo

quickmath's Introduction

QuickMath

An attempt at a math library with various mathematical functions written i C++.

Building

To build the library, just run:

mkdir build && cd build && cmake ..

Then just run ./QuickMath.out to run main with any functions from the library. To clean up the build files just run rm -rf build.

Existing Implementations

  • Math
  • Factorial
  • Pascal
  • LinAlg
  • Trig

Math

Basic mathematical functions that are used by the other parts of the library.

Existing functions

  • power
  • sqRoot

Factorial

A simple function to calculate the factorial of a number.

Pascal

Two functions, one to calculate Pascal's triangle and one to print Pascal's triangle.

LinAlg

A collection of functions to perform Linear Algebra calculations. Currently supports range of calculations involving vectors as well as basic calculations involving matrices. Vectors can be initialized with values to be 1, 2, 3 or 4 dimensional but can also be initialized with a std::vector to be of any dimension. Matrices can be of any dimension.

Existing functions

  • getVector
  • addVector
  • subtractVector
  • scalarMultiply
  • vectorSum
  • vectorDifference
  • vectorScalarMultiplication
  • dotProduct
  • crossProduct
  • getLength
  • calculateLength
  • calculateAngle
  • size
  • getMatrix
  • setMatrix
  • getRowVector
  • getColumnVector
  • getSubMatrix
  • getRows
  • getColumns
  • zero
  • linearTransform
  • matrixSum
  • matrixDifference
  • matrixScalarMultiplication
  • matrixMultiplication
  • linearTransformation
  • calculateDeterminant

Trig

A collection of functions to perform trigonometric operations. Currently supports sinus, cosine, and tangent functions as well as their inverses.

Combi

A collection of simple functions to calculate the amount of permutations and combinations both without repetition and with repetition.

Existing functions

  • calculatePermutations
  • calculateRepetitivePermutations
  • calculateCombinations
  • calculateRepetitiveCombinations

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.