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
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; |
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
'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}); |
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
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} |
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
import math | |
from labs.lab2 import runge | |
def f(x, y): | |
# return y * math.log(y) / x | |
return (y * y + x * y) / (x * x) | |
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
#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 */ |
OlderNewer