Giter Site home page Giter Site logo

integers-of-arbitrary-length-in-c's Introduction

integers-of-arbitrary-length-in-C

A C library for the integers of arbitrary length (intal).

C allows integer values between the range -2147483648 to +2147483647 for a regular int variable

C allows integer values between the range -9223372036854775808 to +9223372036854775807 for a long int variable

This C library, allows integer values of any arbitrary length by storing them in string format. The library provides the basic mathematical operations similar to the operations between two positive int values. An intal is represented as a string of decimal digits (0-9) that are stored in the big-endian style.

The functions include:

  • Addition of two intals
  • Subtraction of two intals
  • Multiplication of two intals
  • Mod of two intals
  • GCD of two intals
  • Factorial of an integer (result returned as an intal)
  • nth Fibonacci number (result returned as an intal)
  • Comparison of two intals
  • Power of one intal to the other
  • Binomial coefficient of two integers (result returned as an intal)
  • Finding index of max intal in an unsorted intal array
  • Finding index of min intal in an unsorted intal array
  • Finding index of the given intal in an unsorted intal array (linear search)
  • Sorting an array of intals in O(nlogn) time (merge sort)
  • Searching for the given intal in a sorted intal array (binary search)

integers-of-arbitrary-length-in-c's People

Contributors

dhruvvvx17 avatar

Stargazers

 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.