This file contains 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
# -*- coding: utf-8 -*- | |
from sympy import * | |
init_printing() | |
def lagrange(matrix): | |
size = len(matrix) | |
x = Symbol('x') | |
a = 0 | |
for k in range(0, size): |
This file contains 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
fn gcd_rec(value1: i32, value2: i32) -> i32 | |
{ | |
if value2 == 0 | |
{ | |
return value1; | |
} | |
return gcd_rec(value2, (value1 % value2)); | |
} | |
fn gcd(mut value1: i32,mut value2: i32) -> i32 |
This file contains 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
(defn gcd [value1 value2] | |
(if (zero? value2) | |
value1 | |
(recur value2 (mod value1 value2)))) | |
(gcd 150 20) |
This file contains 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
###### DOCKER ###### | |
# Remove old version of docker | |
sudo apt-get remove docker docker-engine docker.io | |
# Allow apt install from HTTPS | |
sudo apt-get update && \ | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ |
NewerOlder