Fr 26. Sep 10:59:59 CEST 2025/wahrscheinlichkeit20250913.sh

#!/bin/bash

# (C) David Vajda
# 2025-09-13
# wahrscheinlichkeitsrechnungsuebung

i=0
while [ $i -lt 128 ]
do
    s=$(echo "obase=2; ibase=10; $(($RANDOM%16))" | bc)
    echo "scale=5; $s" | bc
    i=$(($i+1))
done
langrageinterpolationintegrationsuebung20250904.sh

binary20250911.txt
dlatchequ20250911.txt

m8portDosziCount20250912.asm
quine4net20250912.chp
quine4net20250912.fus
quine4net20250912.gal
quine4net20250912.jed
quine4net20250912.pin
quine4net20250912.txt

bin20250913.txt
m8portDosziCount20250913.asm
quine3net20250913.gal
quine420250913.txt
quine420250913.vhdl
quine4net20250913.chp
quine4net20250913.fus
quine4net20250913.gal
quine4net20250913.jed
quine4net20250913.pin
wahrscheinlichkeit20250913b.sh
wahrscheinlichkeit20250913.sh

auswendig20250915post001.txt
logbuch20250915.txt
m820250915countshf.asm
m820250915countslow.asm
QUINE20250915.chp
QUINE20250915.fus
QUINE20250915.GAL
QUINE20250915.jed
QUINE20250915.pin
quine20250915.txt
quine20250915.vhdl

bash20250916.sh
bash20250916.txt
bin20250916.txt
colors20250916.txt
e12resistor20250916.txt
init20250916.txt
key.private.20250916.txt
key.public.20250916.txt
klartext20250916.txt
klartext20250916.txt.asc
klartext20250916.txt.asc.decrypted.txt
mmx20250916.asm

abel20250917.gal
EECA_JIS_20250917.txt
lzvgen20250917.txt

langrage20250918.mc
langrage20250918.tex
ripplecarrychainadder20250918.gal

matrix20250919.tex

ripplecarrychainadder20250920.gal

bin20250923.txt
py20250923iban001.py
py20250923.out.txt
py20250923.py
quine20250923.chp
quine20250923.fus
quine20250923.gal
quine20250923.jed
quine20250923.pin
quine20250923.tim
quine20250923.txt
quine20250923.vcd
quine20250923.vhd
quine20250923.vhdl
sh20250923sh.sh

colors20250924.txt
EECA_JIS_codes20250924.txt
matrix20250924.tex
periodensystem20250924.2.txt
periodensystem20250924.sh
periodensystem20250924.txt
ttl20250924.txt

periodensystem20250925.txt

tmp00120250926.txt
tmp00220250926.txt
tmp20250926.txt
#!/bin/bash

# (C) David Vajda
# TTL - Excersize
# 2025-08-03

EASIEST=3
date=$(date)

fname="TTL_excersize_$date.out.txt"

TTLNamesEasiest=("7400" "7402" "7404" "7440" "54xx" "74xx" "84xx" "7408" "7409" "7411" "7421" "7432" "7474" "74171" "7483" "7485" "7486" "74136" "74181")
TTLNamesEasiestHum=("4x NAND" "NOR" "6x Inverter"  "NAND" "mil" "commercial" "industrial" "4x AND" "4x AND" "3x AND" "2x AND" "4x OR" "2x D-FF" "4x D-FF" "4 Bit FA" "4 Bit comperator" "4x XOR" "4x XOR" "4 Bit ALU")
level=$EASIEST

# i=0
# while [ $i -lt "${#TTLNamesEasiest[@]}" ]
# do
#    echo "${TTLNamesEasiest[$i]}, ${TTLNamesEasiestHum[$i]}"
#    i=$(($i+1))
# done

# exit

headstr1="# (C) David Vajda"
headstr2="# TTL - Excersize - extended version"
headstr3="# 2025-08-03"
headstr4="$date"

i=0
s=""
while [ $i -lt 128 ]
do
    r=$(($RANDOM%${#TTLNamesEasiest[@]}))
    s="$s ${TTLNamesEasiest[$r]}"
    t="$t ${TTLNamesEasiest[$r]}"
    t="$t ${TTLNamesEasiestHum[$r]}"
    i=$(($i+1))
done

echo "$headstr1"
echo "$headstr2"
echo "$headstr3"
echo "$date"
echo ""
echo "$s"

echo "$headstr1" >> "$fname"
echo "$headstr2" >> "$fname"
echo "$headstr3" >> "$fname"
echo "$date" >> "$fname"
echo "" >> "$fname"
echo "$s" >> "$fname"
echo "" >> "$fname"
echo "solution:" >> "$fname"
echo "" >> "$fname"
echo "$t" >> "$fname"
#!/bin/bash

# (C) David Vajda
# 2025-09-13
# wahrscheinlichkeitsrechnungsuebung

T=(A B C D)
i=0
while [ $i -lt 4 ]
do
    echo -n "${T[$i]}"
    i=$(($i+1))
done
i=0
while [ $i -lt 128 ]
do
    echo -n $(($RANDOM%2))
    if [ $(($i % 4)) -eq 0 ]
    then
        echo ""
    fi
    i=$(($i+1))
done

E=(A B C D)
echo "man sage ueber die ziffern, welche in welches Ereignis passt"
i=0
j=0
while [ $i -lt $((5*4)) ]
do
    echo -n
    if [ $(($i % 4)) -eq 0 ]
    then
        echo ""
        echo -n "Ereignis ${E[$j]} = {"
        j=$(($j+1))
    fi
    if [ $(($RANDOM%2)) -eq 0 ]
    then
        echo -n "${T[$(($i%4))]}"
    fi
    i=$(($i+1))
done
echo ""


Unterabschnitte