Skip to content

Instantly share code, notes, and snippets.

View a-voel's full-sized avatar

Andreas Völker a-voel

View GitHub Profile
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#define NUM_SAMPLES 100000
typedef struct{
float x, y, z;
} vec3;
@a-voel
a-voel / avcfg.h
Last active February 22, 2022 13:39
#ifndef AVCFG_H_INCLUDED
#define AVCFG_H_INCLUDED
/*****************************************************************************
* Declaration *
*****************************************************************************/
/* Size of internal hashtable for dependency resolution. If you have really big
configuration files you might increase this to improve performance. In this case
it might be time to reevaluate if this library is right for you anyway! */
#include "progressreporter.h"
#include <iostream>
#include <cmath>
#include <sstream>
#include <iomanip>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
import numpy as np
import matplotlib.pyplot as plt
plt.style.use('ggplot')
Sbar = 0.15
Ibar = 0.001
beta = 2
gamma = 1/2
exponent= beta*Sbar-gamma