Skip to content

Instantly share code, notes, and snippets.

View skhokhlov's full-sized avatar

Sergey Khokhlov skhokhlov

View GitHub Profile
int main() {
const int lens = 11;
char source[lens] = {'e', 'e', 's', 't', ' ', 't', 't', 'l', 'i', 'n', 'g'};
const int lenp = 2;
char p[lenp] = {'t', 't'};
int i, j;
int d[lenp];
int res[lenp];
int resi = 0;
'use strict';
const X = [0.1, 0.5, 0.9, 1.3, 1.7];
const Y = [-2.3026, -0.69315, -0.10536, 0.26236, 0.53063];
const x = 0.8;
// const n = 3;
// var splines = new Array(X.length).fill({a:null,b:null,c:null,d:null,x:null});
var splines = [];
for (let i =0; i < X.length; i++){
splines.push({a:null,b:null,c:null,d:null,x:null});
package com.skhokhlov;
public class Main {
public static void main(String[] args) {
double[][] matrix = {
{15, 3, -5, -5, 36},
{7, -15, -6, 1, -112},
{-4, 7, 19, 6, 19},
{3, 0, -5, 8, -23}
import math
from labs.lab2 import runge
def f(x, y):
# return y * math.log(y) / x
return (y * y + x * y) / (x * x)
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h>
#pragma optimize("gt",on)
#else
#include <x86intrin.h>
#endif
/* for rdtscp and clflush */