Skip to content

Instantly share code, notes, and snippets.

View Leva-kleva's full-sized avatar
👋

Lev Kireenko Leva-kleva

👋
View GitHub Profile
SELECT *
FROM learnsql_employees;
@Leva-kleva
Leva-kleva / main.py
Created May 27, 2020 20:50
Основы мат мода, задача 2
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import numpy as np
'''
инициализируем границы
и другие постоянные
'''
@Leva-kleva
Leva-kleva / characteristic.py
Last active April 15, 2020 17:52
first task of basic mathematical modeling
# -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
def CharacteristicX(x0, t):
a = 2+np.cos(np.cos(np.pi*x0/2))
b = 1+(1+2*np.cos(np.pi*x0/2)+np.sin(np.cos(np.pi*x0/2)))**2
@Leva-kleva
Leva-kleva / nom_1.py
Created March 19, 2020 22:50
tasks in probability theory
# -*- coding: utf-8 -*-
from random import random
from math import log
def main() :
lmbd = float(input())
eto = random()
import pycuda.driver as cuda
import pycuda.autoinit
from pycuda.compiler import SourceModule
import numpy as np
import matplotlib.pyplot as plt
from time import time
import math as m
sigma = 1/10
mu = 0.5
import numpy as np
from random import uniform
import math as m
import matplotlib.pyplot as plt
'''constants'''
delta = 1.758820149*10**11 #q/m
pi = m.pi
e0 = 8.854184817*10**-12
sigma = 1/10
SELECT
t6.quest,
t6.conv_proh
FROM
(
SELECT
t5.quest,
t5.cnt_game,
t5.cnt_start,
(t5.cnt_start*1.0 / t5.cnt_game*1.0)*100 as conv_game,
from math import pi
import numpy as np
import matplotlib.pyplot as plt
n = int(input())
##generation
x = np.arange(0, 2*pi+0.1, 0.1)
array = [np.cos(i*x).tolist() for i in range(1, n+1, 1) ]
x = x.tolist()
import requests
class BotHandler:
def __init__(self, token):
self.token = token
self.api_url = "https://api.telegram.org/bot{}/".format(token)
def set_webhook(self):
method = "setwebhook"
params = {"url": }
#include <iostream>
#include <fstream>
#include <cmath>
using namespace std;
double g = 9.8, R, p0, p, z0, v0 = 0, t, eps;
double func(double z)
{