This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * | |
| * Adrian Statescu (http://adrianstatescu.com) | |
| * | |
| * The number e is a mathematical constant that is the base of the natural logarithm. | |
| * Sometimes called Euler's number. | |
| * | |
| * License MIT | |
| * | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Adrian Statescu <mergesortv@gmail.com> http://adrianstatescu.com | |
| * Square Root(SQRT) Algorithm using Recurrence relation an+1 = ( an + n / an ) / 2.0; | |
| * MIT License | |
| */ | |
| #include <stdio.h> | |
| #include <math.h> | |
| float mySQRT(float n) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Adrian Statescu <mergesortv@gmail.com> http://adrianstatescu.com | |
| * Square Root(SQRT) Algorithm using Recurrence relation an+1 = ( an + n / an ) / 2.0; | |
| * MIT License | |
| */ | |
| DOMhelp = { | |
| addEvent: function(elem,evType,fn,useCapture) { | |
| if(elem.addEventListener) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Adrian Statescu <mergesortv@gmail.com> | |
| * Data Type Abstract Rational | |
| * Ordinateur with Rationals +,-,*,/ | |
| */ | |
| #include <iostream> | |
| using namespace std; | |
| typedef struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Adrian Statescu <mergesortv@gmail.com> | |
| * Derivatives and Polynomials. | |
| * MIT License | |
| */ | |
| #include <stdio.h> | |
| #define MAXN 500 | |
| void readPolynom(int *n, int vec[]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Blaise Pascal's Triangle | |
| */ | |
| #include <stdio.h> | |
| #define MAXN 20 | |
| int main() { | |
| int n, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * | |
| * Adrian Statescu (http://adrianstatescu.com) | |
| * | |
| * Computes SQuar RooT (SQRT) using recurrence relations. | |
| * | |
| * anplus1 = ( an + n / an ) / 2 | |
| * | |
| * License MIT | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * | |
| * Adrian Statescu (http://adrianstatescu.com) | |
| * | |
| * Pascal's Triangle | |
| * | |
| * License MIT | |
| * | |
| */ | |
| package main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * | |
| * Adrian Statescu (http://adrianstatescu.com) | |
| * | |
| * Comb using Pascal's Triangle | |
| * | |
| * License MIT | |
| * | |
| */ | |
| package main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Adrian Statescu <mergesortv@gmail.com> | |
| # This Method Computes SQuare RooT in Ruby. | |
| # MIT License | |
| # | |
| def sqrt(n) | |
| an = n / 2.0 |