Multiplication table
5 | 4 | 3 | 2 | 1 | |
---|---|---|---|---|---|
5 | 25 | 20 | 15 | 10 | 5 |
4 | 20 | 16 | 12 | 8 | 4 |
3 | 15 | 12 | 9 | 6 | 3 |
2 | 10 | 8 | 6 | 4 | 2 |
1 | 5 | 4 | 3 | 2 | 1 |
// Aliases h=head, t=tail, f=function, z=zero (aka identity), n=node as right fold. | |
let n = (h,t) => (f,z) => | |
t ? f(h, t(f,z)) : f(h,z) | |
let p = console.log | |
let list = n(4, n(3, n(2, n(1)))) | |
let factorial4 = list((a,b) => a * b, 1) |
Multiplication table
5 | 4 | 3 | 2 | 1 | |
---|---|---|---|---|---|
5 | 25 | 20 | 15 | 10 | 5 |
4 | 20 | 16 | 12 | 8 | 4 |
3 | 15 | 12 | 9 | 6 | 3 |
2 | 10 | 8 | 6 | 4 | 2 |
1 | 5 | 4 | 3 | 2 | 1 |
//------------------------------- Define Network ------------------------------- | |
type Activation = | |
| Linear | |
| Binary | |
| Tanh | |
| ReLU | |
type Neuron = { Weights: float list; Bias: float } |
ip link show
ping google.com
default gnome-terminal
replaced by ptyxis
dnf5-plugin-automatic x86_64 5.2.6.2-1.fc41 fedora 130 k replacing dnf-automatic.noarch 4.21.1-1.fc40
https://manpages.opensuse.org/Tumbleweed/dnf5-plugin-automatic/dnf5-automatic.8.en.html
--