Skip to content

Instantly share code, notes, and snippets.

View Allespro's full-sized avatar
:shipit:
Suspicious

Fabeni Allespro

:shipit:
Suspicious
View GitHub Profile
@Allespro
Allespro / Callaghans.py
Created March 2, 2022 01:08
Lagrange polynomial calc, first three
'''
Lagrange polynomial
'''
def L(X, x, y):
l1, l2, l3 = L1(X, x, y), L2(X, x, y), L3(X, x, y)
return l1, l2, l3, l1 - l3, l2 - l3
@Allespro
Allespro / C++ first homework
Last active March 12, 2019 17:32
My C++ homework.....
#include <iostream>
using namespace std;
int nom1()
{
int number;
cin >> number;
cout << "Десятков: " << number / 10 << "\nЕдениц: " << number % 10 << "\nСумма цифр: " << (number / 10)+(number % 10) << endl;
return 1;