Continued BACH
This commit is contained in:
parent
160309eff7
commit
b0399c4675
7 changed files with 1193 additions and 9 deletions
11
data/z_distribution/calculate_function_values.py
Normal file
11
data/z_distribution/calculate_function_values.py
Normal 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
61
data/z_distribution/flake.lock
generated
Normal 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
|
||||
}
|
||||
32
data/z_distribution/flake.nix
Normal file
32
data/z_distribution/flake.nix
Normal 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 {};
|
||||
|
||||
|
||||
|
||||
}
|
||||
);
|
||||
}
|
||||
1000
data/z_distribution/z_distribution.csv
Normal file
1000
data/z_distribution/z_distribution.csv
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue