Skip to content

Instantly share code, notes, and snippets.

Avatar

Markus Buchholz markusbuchholz

View GitHub Profile
View nonlinear_eq.cpp
#include <iostream>
#include <vector>
#include<tuple>
#include <math.h>
#include "matplotlibcpp.h"
namespace plt = matplotlibcpp;
// --------------------------------------------------------------
View diff_eq_order_2.cpp
#include <iostream>
#include <vector>
#include <tuple>
#include <math.h>
#include "matplotlibcpp.h"
namespace plt = matplotlibcpp;
const double omega = 6.0;
View diff_eq_order_1.cpp
#include <iostream>
#include <string>
#include <vector>
#include <math.h>
#include <tuple>
#include "matplotlibcpp.h"
namespace plt = matplotlibcpp;
View docker-compose.yml
version: '3'
services:
# Define an InfluxDB service
influxdb:
image: influxdb:1.3.5
volumes:
- ./data/influxdb:/var/lib/influxdb
ports:
- "8086:8086"
View cpu_collector_json.cpp
//g++ cpu_collector_json.cpp -o cpu_collector -lboost_system
//communication
#include <boost/asio.hpp>
#include <iostream>
#include "json.hpp"
#include <stdlib.h>
#include <time.h>
//system data collector
View influx_json_server_python.py
import random
import time
import sys
import os
import re
import json
from influxdb import InfluxDBClient
import socket
View latex_eq.md

eq1.--------------------------------------

$$\large x_{n+1} = x_{0} - \frac{f(x_{n})}{f'(x_{n})} $$

eq2.--------------------------------------

$$ \large f(x) = x^2 - 999$$

eq3.--------------------------------------

View diff_newton.cpp
#include <iostream>
#include <vector>
#include <cmath>
#include <iomanip> // std::setprecision
#include "matplotlibcpp.h"
namespace plt = matplotlibcpp;
//-----------------------------------------------------------
View integration.cpp
#include <iostream>
#include <vector>
#include <cmath>
#include <iomanip> // std::setprecision
#include "matplotlibcpp.h"
namespace plt = matplotlibcpp;
//-----------------------------------------------------------
View interpolation.cpp
#include <iostream>
#include <tuple>
#include <vector>
#include "matplotlibcpp.h"
namespace plt = matplotlibcpp;
//global
std::vector<float> interpolated;