Snippet Library

Browse | Submit A New Snippet | Create A Package

Snippets by category: Math Functions

Snippet ID Title Creator
11Decimal EmpaquetadoAndres Ovalle
Algoritmo de empaquetamientos de decimales.
12Binario -> HexadecimalAndres Ovalle
Conversion de un Binario a un Hexadecimal, en agrupacion de 4 bits
a code snippet for generators
31pidigits ocamlMatías Giovannini
OCaml code for the pidigits benchmark
41C Code Bubble SortAyla Stokes
Bubble sorting algorithm that focus on comparing elements from the start of the array till to the end. This implementation is for new programming learners. I haven't used any libraries to get this task done. is the principal owner of this code. And you can use, make changes & distribute this code, but you have to give attribution to the owners and all the other people involved in this code up-gradation chain.
42C program of insertion sortMelta Fitz
Insertion sort works on the principle of simplicity, building one element at a time. It is a less efficient algorithm, when it comes to big arrays sorting but works best in short arrays. I designed this for new learners.

I also submitted this on github and sourceforge.


Copyright This program is the copyright of and you have to take permission before using it at anywhere.

44Binary Search C++ ProgramAndrea Hillerud
This is a binary search program, upload by Ms. Andrea Hillerud. I love to create mathematical functions that are related to basic mathematics and how to manipulate those functions for greater publications. This program has 3 parts. First input, and second processor and third output. You can use the code anyway you want but you have to give proper credits to before using, sharing, or editing it.
45Fibonacci SeriesMarilee Christy
FS is simple but have vast applications. You have to add previous numbers, in order to get the next combinations. To get T(n,1), you have to add T(n-1,1)+T(n-1,2). Where n-1 is the level and also 1,2 are the respected positions on those levels.

51Bubblesortalbertine dublin
Bubblesort is a simple program which keep repeating itself until all the elements are placed in the correct order. In order to do so it compares adjacent elements and swaps them if later one is smaller than first one. It keeps swapping until no element needs to be swapped and thus the sequence is right. You can find more practical examples at
53Integrate SumCarolyne Rubiano
Maths has lots of mathematical functions rather series that can't be computed manually even with calculator, unless you find some around the way methods, it is one of those functions. It keeps summing up the integers as the keep increasing and goes on doing that until specified and this is done using a library.

Carolyne Rubiano - Accountant (
772.5 faster F# regex-reduxVasily Kirichenko
Faster F# regex-redux
Powered By FusionForge