View kbbsgen.rb
$title = readline.chomp
puts <<-EOS
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="description" content="azapen6">
<meta name="keywords" content="seal,penguin,programing,computer science,mathematics,manga,anime,あざらし,ペンギン,あざペン,鰭脚類,計算機科学,数学,漫画,アニメ,帰宅部活動記録">
<link rel="stylesheet" href="style.css" type="text/css">
View acceldif.jl
#acceldif.jl
R = 1:20
h = [2.0^(-k) for k in R + 2]
f(x) = exp(x)
err(x) = abs(x - f(1)) / f(1)
dif_f(h) = (f(1 + h) - f(1)) / h
dif(h) = (f(1 + h) - f(1 - h)) / 2h
View sse2test.cpp
#include <stdio.h>
#include <random>
#include "mytimer.h"
typedef double v2df __attribute__ ((vector_size (16)));
#define N 10000000
#define AL 16
#define HNK 139079.0
View mydouble.h
#include <stdio.h>
#include <math.h>
typedef double PrimDouble;
struct MyDouble {
PrimDouble v;
static const int precision = 23;
MyDouble() { v = 0; }
View mytimer.h
#include <stdio.h>
#include <chrono>
class MyTimer {
std::chrono::system_clock::time_point s;
double ms;
public:
inline void start() {
s = std::chrono::system_clock::now();
}
View bfi.plt
#bfi.plt
load "bfi_init.plt"
load "bfi_run.plt"