Continued BACH

This commit is contained in:
Marius Drechsler 2024-08-12 20:28:04 +02:00
parent 160309eff7
commit b0399c4675
7 changed files with 1193 additions and 9 deletions

View file

@ -0,0 +1,11 @@
import csv
import numpy as np
import math
with open('z_distribution.csv', "w") as csvfile:
writer = csv.writer(csvfile)
for i in np.linspace(-10, 10, 1000):
calculation = 2/math.sqrt(math.pi) * math.exp(-(i**2)/4) * math.erf(i/2)
if i < 0:
calculation = calculation * -1
writer.writerow([i, calculation])

61
data/z_distribution/flake.lock generated Normal file
View file

@ -0,0 +1,61 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1710146030,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1723175592,
"narHash": "sha256-M0xJ3FbDUc4fRZ84dPGx5VvgFsOzds77KiBMW/mMTnI=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5e0ca22929f3342b19569b21b2f3462f053e497b",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

View file

@ -0,0 +1,32 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
in {
devShell = pkgs.mkShell rec {
buildInputs = with pkgs; [
];
nativeBuildInputs = with pkgs; [
python312Packages.pandas
python312Packages.matplotlib
python312Packages.imageio
python312Packages.requests
python312Packages.csvw
python312
];
};
packages.default = pkgs.mkDerivation {};
}
);
}

File diff suppressed because it is too large Load diff