Das neue Auswendig lernen und die neuen Übungen - 0003

Benutzeravatar
davidvajda.de
Site Admin
Beiträge: 1497
Registriert: Di Jul 18, 2023 8:36 pm
Wohnort: D-72072, Tübingen
Kontaktdaten:

Re: Das neue Auswendig lernen und die neuen Übungen - 0003

Beitrag von davidvajda.de »

Bild

Code: Alles auswählen

<?php
session_start ();
?>

<form method="POST" action="./form20240410.php">
<input type="text" name="form20240410a"></input>
<input type="submit">
</form>

<?php
echo session_id () . "<br>";
setcookie ("form20240410b", "Hallo, das ist das erste Cookie", time () + 1200);

echo htmlentities ($_POST ["form20240410a"]) . "<br>\n";
echo htmlentities ($_COOKIE ["form20240410b"]) . "<br>\n";
echo htmlentities ($_COOKIE ["form20240410c"]) . "<br>\n";

session_destroy ();
?>

Code: Alles auswählen

Trying ::1...
Connected to localhost.
Escape character is '^]'.
HTTP/1.1 200 OK
Date: Wed, 10 Apr 2024 06:34:34 GMT
Server: Apache/2.4.57 (Debian)
Set-Cookie: PHPSESSID=a8elriq9b6s751fe647iqumuii; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: form20240410b=Hallo%2C%20das%20ist%20das%20erste%20Cookie; expires=Wed, 10 Apr 2024 06:54:34 GMT; Max-Age=1200
Vary: Accept-Encoding
Content-Length: 231
Content-Type: text/html; charset=UTF-8


<form method="POST" action="./form20240410.php">
<input type="text" name="form20240410a"></input>
<input type="submit">
</form>

a8elriq9b6s751fe647iqumuii<br>Das ist das zweite Datum<br>
<br>
Hallo, das ist das zweite Cookie<br>

Code: Alles auswählen

POST http://localhost/mysql20240217/20240410/form20240410.php HTTP/1.1
host: localhost
Cookie: form20240410c=Hallo, das ist das zweite Cookie
Content-Length: 38
Content-Type: application/x-www-form-urlencoded

form20240410a=Das ist das zweite Datum

Code: Alles auswählen

<?php
session_start ();

include ("/home/david/mysqldata.php");

$db = new PDO ("mysql: host=localhost", $MYSQL_USER, $MYSQL_PASSWORD);

$sql = "CREATE DATABASE mysql20240410" . session_id () . "; ";
$db->query ($sql);

$sql = "USE mysql20240410" . session_id () . "; ";
$db->query ($sql);

$sql = "CREATE TABLE a (x1 INTEGER, x2 INTEGER); CREATE TABLE b (y1 INTEGER, y2 INTEGER); ";
$db->query ($sql);

$sql = "INSERT INTO a (x1, x2) VALUES (0, 0); ";
$db->query ($sql);

$sql = "INSERT INTO a (x1, x2) VALUES (0, 1); ";
$db->query ($sql);

$sql = "INSERT INTO a (x1, x2) VALUES (1, 0); ";
$db->query ($sql);

$sql = "INSERT INTO a (x1, x2) VALUES (1, 1); ";
$db->query ($sql);

$sql = "INSERT INTO a (x1, x2) VALUES (2, 7); ";
$db->query ($sql);

$sql = "INSERT INTO b (y1, y2) VALUES (0, 1); ";
$db->query ($sql);

$sql = "INSERT INTO b (y1, y2) VALUES (1, 0); ";
$db->query ($sql);

$sql = "INSERT INTO b (y1, y2) VALUES (2, 7); ";
$db->query ($sql);

$sql = "SELECT x1, x2 FROM a; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", " . $row [1] . "; ";
echo "<br>\n";

$sql = "SELECT y1, y2 FROM b; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", " . $row [1] . "; ";
echo "<br>\n";

$sql = "SELECT x1, x2, y1, y1 FROM a INNER JOIN b ON a.x1 = b.y1; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", " . $row [1] . ", " . $row [2] . ", " . $row [3] . "; ";
echo "<br>\n";


$sql = "DROP DATABASE mysql20240410" . session_id () . "; ";
$db->query ($sql);

session_destroy ();
?>

Code: Alles auswählen

0, 0; 0, 1; 1, 0; 1, 1; 2, 7; <br>
0, 1; 1, 0; 2, 7; <br>
0, 0, 0, 0; 0, 1, 0, 0; 1, 0, 1, 1; 1, 1, 1, 1; 2, 7, 2, 2; <br>

Code: Alles auswählen

<?php
session_start ();

include ("/home/david/mysqldata.php");

$db = new PDO ("mysql: host=localhost", $MYSQL_USER, $MYSQL_PASSWORD);

$sql = "CREATE DATABASE q20240410" . session_id () . "; ";
$db->query ($sql);

$sql = "USE q20240410" . session_id () . "; ";
$db->query ($sql);

$sql = "CREATE TABLE a (x INTEGER); CREATE TABLE b (x INTEGER); CREATE TABLE c (x INTEGER); ";
$db->query ($sql);

for ($i = 0;  $i < 24;  $i++) {
    $sql = "INSERT INTO a (x) VALUES (" . rand () % 32 . "); ";
    $sql .= "INSERT INTO b (x) VALUES (" . rand () % 64 . "); ";
    $sql .= "INSERT INTO c (x) VALUES (" . rand () % 128 . "); ";
    $db->query ($sql);
}

$sql = "SELECT x FROM (SELECT x FROM a UNION SELECT x FROM b) x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (SELECT x FROM a UNION SELECT x FROM c) x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (SELECT x FROM b UNION SELECT x FROM c) x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (SELECT x FROM a INTERSECT SELECT x FROM b) x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (SELECT x FROM a INTERSECT SELECT x FROM c) x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (SELECT x FROM b INTERSECT SELECT x FROM c) x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (
            SELECT x FROM (SELECT x FROM a UNION SELECT x FROM b) x
                INTERSECT
            SELECT x FROM c
    ) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (
            SELECT x FROM (SELECT x FROM a INTERSECT SELECT x FROM c) x
                UNION
            SELECT x FROM (SELECT x FROM b INTERSECT SELECT x FROM c) x
    ) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (
            SELECT x FROM (SELECT x FROM a UNION SELECT x FROM c) x
                INTERSECT
            SELECT x FROM b
    ) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (
            SELECT x FROM (SELECT x FROM a INTERSECT SELECT x FROM b) x
                INTERSECT
            SELECT x FROM (SELECT x FROM b INTERSECT SELECT x FROM c) x
    ) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (
            SELECT x FROM (SELECT x FROM b UNION SELECT x FROM c) x
                INTERSECT
            SELECT x FROM a
    ) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "SELECT x FROM (
            SELECT x FROM (SELECT x FROM a INTERSECT SELECT x FROM b) x
                INTERSECT
            SELECT x FROM (SELECT x FROM c INTERSECT SELECT x FROM a) x
    ) x ORDER BY x; ";
$stmt = $db->query ($sql);
while ($row = $stmt -> fetch ())
    echo $row [0] . ", ";
echo "<br>\n";

$sql = "DROP DATABASE q20240410" . session_id () . "; ";
$db->query ($sql);

session_destroy ();
?>

Code: Alles auswählen

15, 13, 14, 0, 7, 31, 24, 6, 27, 12, 25, 29, 20, 26, 16, 28, 4, 5, 1, 61, 48, 54, 47, 56, 34, 42, 51, 22, 36, 17, 44, 40, 32, 38, <br>
15, 13, 14, 0, 7, 31, 24, 6, 27, 12, 25, 29, 20, 26, 16, 28, 4, 5, 90, 97, 102, 76, 9, 75, 22, 52, 105, 96, 50, 63, 70, 121, 17, <br>
1, 61, 48, 54, 47, 56, 24, 6, 34, 42, 51, 22, 36, 17, 44, 40, 32, 15, 38, 12, 7, 25, 90, 31, 97, 28, 102, 76, 9, 75, 52, 105, 96, 50, 63, 70, 121, 5, 20, <br>
15, 7, 24, 6, 12, <br>
15, 31, 24, 25, 20, 28, 5, <br>
24, 22, 17, 15, <br>
5, 15, 17, 20, 22, 24, 25, 28, 31, <br>
5, 15, 17, 20, 22, 24, 25, 28, 31, <br>
6, 7, 12, 15, 17, 22, 24, <br>
15, 24, <br>
5, 6, 7, 12, 15, 20, 24, 25, 28, 31, <br>
15, 24, <br>

Code: Alles auswählen

#!/bin/bash

if [[ "$1" == "David" && "$2" == "Vajda" ]]
then
    echo "Das bin ich"
elif [[ "$1" == "David Vajda" && -z "$2" ]]
then
    echo "Das bin ich"
elif [[ "$1" == "David" && -z "$2" ]]
then
    echo "Das koennte ich sein"
elif [[ "$1" == "Vajda" && -z "$2" ]]
then
    echo "Das koennte ich sein"
elif [ -n "$1" ]
then
    echo "Das bin ich nicht"
else
    echo "Hallo Welt"

    i=0
    while [ $i -lt 10 ]
    do
        echo "Hallo zum $(($i+1))."
        i=$(($i+1))
    done

    a=(Ich bin ein Array)
    a+=(Und seine Fortsetzung)

    i=0
    while [ $i -lt 7 ]
    do
        echo "${a[$i]}"
        i=$(($i++1))
    done

    for s in "${a[@]}"
    do
        echo "$s"
    done

    l=$(ls)
    for s in $l
    do
        echo "$s"
    done

fi

Code: Alles auswählen

#!/bin/bash

/bin/bash bash20240408.sh "David" "Vajda"
/bin/bash bash20240408.sh "David Vajda"
/bin/bash bash20240408.sh "David"
/bin/bash bash20240408.sh "Vajda"
/bin/bash bash20240408.sh "David Mustermann"
/bin/bash bash20240408.sh "Max Mustermann"
/bin/bash bash20240408.sh

Code: Alles auswählen

Das bin ich
das bin ich
Das koennt ich sein
Hallo Welt
Hallo zum 1.
Hallo zum 2.
Hallo zum 3.
Hallo zum 4.
Hallo zum 5.
Hallo zum 6.
Hallo zum 7.
Hallo zum 8.
Hallo zum 9.
Hallo zum 10.
Aber
super
Sache
Das
ist
ein
Array
Aber
super
Sache
Das
ist
ein
Array
200066.png
200082.png
20240403_193924.jpg
20240403_201151.jpg
20240403_201154.jpg
434404849_25023964997218914_7634363595333631096_n.jpg
addressdecodertestbench.c
algoke1_20240403.aux
algoke1_20240403.log
algoke1_20240403.pdf
algoke1_20240403.tex
alldo.txt
alllinks.sh
asm15
asm16
asm20240403
asm20240403.asm
asm20240403.o
asm20240404
asm20240404.asm
asm20240404.aux
asm20240404.log
asm20240404.o
asm20240404.pdf
asm20240404.tex
aufgabe1.1.pdf
aufgabenalgomath20240403.txt
auswendig20240402a.txt
auswendig20240402b.txt
auswendig20240402c.txt
automat15
automat15.c
automat20240403-1.jpg
automat20240403.aux
automat20240403.csv
automat20240403.log
automat20240403.pdf
automat20240403.tex
automat20240403.txt
bash20240402all.sh
bash20240402.out
bash20240402.sh
bash20240403all.sh
bash20240403.out
bash20240403.sh
bash20240404all.sh
bash20240404.out
bash20240404.sh
bash20240408all.sh
bash20240408.out
bash20240408.sh
bash20240410all.sh
bash20240410.out
bash20240410.sh
bas.txt
Bilder
bin20240204.txt
bin20240403.txt
binary2
binary2.c
deepsearch1.c
deepsearch2
deepsearch2.c
doc
Dokumente
dos-inst
Downloads
facebookpassword.txt
files.lst
float.c
fsmprogs
generatetestbench2
generatetestbench3
generatetestbench4
generatetestbench5
gnu-hello
ieee754aufgabe
ieee754aufgabe2.c
ieee754aufgabe.c
ieee754aufgabe.o
Induktion-pdf.pdf
inst
mail
Mars
mathematik.aux
mathematik.log
mathematik.pdf
mathematik.tex
matlab
mips32singlecycle2.vhdl
mips32singlecycle.vhdl
Musik
mycounter.jpg
mycounter.odg
mydaemontestd
myminix-01.jpg
myminix-02.jpg
myminix-03.jpg
myminix-04.jpg
myminix-05.jpg
myminix-06.jpg
myminix-07.jpg
myminix-08.jpg
myminix-09.jpg
myminix-10.jpg
myminix-11.jpg
myminix-12.jpg
myminix-13.jpg
myminix-14.jpg
myminix-15.jpg
myminix-16.jpg
myminix-17.jpg
myminix-18.jpg
myminix-19.jpg
myminix20240405-01.jpg
myminix20240405-02.jpg
myminix20240405-03.jpg
myminix20240405-04.jpg
myminix20240405-05.jpg
myminix20240405-06.jpg
myminix20240405-07.jpg
myminix20240405-08.jpg
myminix20240405-09.jpg
myminix20240405-10.jpg
myminix20240405-11.jpg
myminix20240405-12.jpg
myminix20240405-13.jpg
myminix20240405-14.jpg
myminix20240405-15.jpg
myminix20240405-16.jpg
myminix20240405-17.jpg
myminix20240405-18.jpg
myminix20240405-19.jpg
myminix20240405-20.jpg
myminix20240405-21.jpg
myminix20240405-22.jpg
myminix20240405-23.jpg
myminix20240405-24.jpg
myminix20240405-25.jpg
myminix20240405-26.jpg
myminix20240405-27.jpg
myminix20240405.aux
myminix20240405.log
myminix20240405.pdf
myminix20240405.tex
myminix-20.jpg
myminix-21.jpg
myminix-22.jpg
myminix-23.jpg
myminix-24.jpg
myminix-25.jpg
myminix-26.jpg
myminix-27.jpg
myminixalljpg20240405.out
myminixalljpg.out
myminixalljpg.sh
myminix.aux
myminix.log
myminix.pdf
myminix.tex
myminix.txt
mysqldata.php
node_modules
Öffentlich
out.txt
password
password20240326.txt
password46.txt
quine
quine20240402.txt
quine20240402.vhdl
quine20240403.txt
quine20240403.vhdl
quine20240404.txt
quine20240404.vhdl
replace.sh
Schreibtisch
Screenshot_20240402_161254.png
Screenshot_20240402_222524.png
Screenshot_20240403_095701.png
Screenshot_20240403_112929.png
Screenshot_20240406_091517.png
Screenshot_20240410_082629.png
state3
svg
tagebuch.txt
test.png.vcd
todo2.txt
todo.txt
Videos
VirtualBox
VMs
vorl03_ana.pdf
Vorlagen
wave.ghw
wave.wav
work-obj93.cf
Hallo Welt
Hallo zum 1.
Hallo zum 2.
Hallo zum 3.
Hallo zum 4.
Hallo zum 5.
Hallo zum 6.
Hallo zum 7.
Hallo zum 8.
Hallo zum 9.
Hallo zum 10.
Aber
super
Sache
Das
ist
ein
Array
Aber
super
Sache
Das
ist
ein
Array
200066.png
200082.png
20240403_193924.jpg
20240403_201151.jpg
20240403_201154.jpg
434404849_25023964997218914_7634363595333631096_n.jpg
addressdecodertestbench.c
algoke1_20240403.aux
algoke1_20240403.log
algoke1_20240403.pdf
algoke1_20240403.tex
alldo.txt
alllinks.sh
asm15
asm16
asm20240403
asm20240403.asm
asm20240403.o
asm20240404
asm20240404.asm
asm20240404.aux
asm20240404.log
asm20240404.o
asm20240404.pdf
asm20240404.tex
aufgabe1.1.pdf
aufgabenalgomath20240403.txt
auswendig20240402a.txt
auswendig20240402b.txt
auswendig20240402c.txt
automat15
automat15.c
automat20240403-1.jpg
automat20240403.aux
automat20240403.csv
automat20240403.log
automat20240403.pdf
automat20240403.tex
automat20240403.txt
bash20240402all.sh
bash20240402.out
bash20240402.sh
bash20240403all.sh
bash20240403.out
bash20240403.sh
bash20240404all.sh
bash20240404.out
bash20240404.sh
bash20240408all.sh
bash20240408.out
bash20240408.sh
bash20240410all.sh
bash20240410.out
bash20240410.sh
bas.txt
Bilder
bin20240204.txt
bin20240403.txt
binary2
binary2.c
deepsearch1.c
deepsearch2
deepsearch2.c
doc
Dokumente
dos-inst
Downloads
facebookpassword.txt
files.lst
float.c
fsmprogs
generatetestbench2
generatetestbench3
generatetestbench4
generatetestbench5
gnu-hello
ieee754aufgabe
ieee754aufgabe2.c
ieee754aufgabe.c
ieee754aufgabe.o
Induktion-pdf.pdf
inst
mail
Mars
mathematik.aux
mathematik.log
mathematik.pdf
mathematik.tex
matlab
mips32singlecycle2.vhdl
mips32singlecycle.vhdl
Musik
mycounter.jpg
mycounter.odg
mydaemontestd
myminix-01.jpg
myminix-02.jpg
myminix-03.jpg
myminix-04.jpg
myminix-05.jpg
myminix-06.jpg
myminix-07.jpg
myminix-08.jpg
myminix-09.jpg
myminix-10.jpg
myminix-11.jpg
myminix-12.jpg
myminix-13.jpg
myminix-14.jpg
myminix-15.jpg
myminix-16.jpg
myminix-17.jpg
myminix-18.jpg
myminix-19.jpg
myminix20240405-01.jpg
myminix20240405-02.jpg
myminix20240405-03.jpg
myminix20240405-04.jpg
myminix20240405-05.jpg
myminix20240405-06.jpg
myminix20240405-07.jpg
myminix20240405-08.jpg
myminix20240405-09.jpg
myminix20240405-10.jpg
myminix20240405-11.jpg
myminix20240405-12.jpg
myminix20240405-13.jpg
myminix20240405-14.jpg
myminix20240405-15.jpg
myminix20240405-16.jpg
myminix20240405-17.jpg
myminix20240405-18.jpg
myminix20240405-19.jpg
myminix20240405-20.jpg
myminix20240405-21.jpg
myminix20240405-22.jpg
myminix20240405-23.jpg
myminix20240405-24.jpg
myminix20240405-25.jpg
myminix20240405-26.jpg
myminix20240405-27.jpg
myminix20240405.aux
myminix20240405.log
myminix20240405.pdf
myminix20240405.tex
myminix-20.jpg
myminix-21.jpg
myminix-22.jpg
myminix-23.jpg
myminix-24.jpg
myminix-25.jpg
myminix-26.jpg
myminix-27.jpg
myminixalljpg20240405.out
myminixalljpg.out
myminixalljpg.sh
myminix.aux
myminix.log
myminix.pdf
myminix.tex
myminix.txt
mysqldata.php
node_modules
Öffentlich
out.txt
password
password20240326.txt
password46.txt
quine
quine20240402.txt
quine20240402.vhdl
quine20240403.txt
quine20240403.vhdl
quine20240404.txt
quine20240404.vhdl
replace.sh
Schreibtisch
Screenshot_20240402_161254.png
Screenshot_20240402_222524.png
Screenshot_20240403_095701.png
Screenshot_20240403_112929.png
Screenshot_20240406_091517.png
Screenshot_20240410_082629.png
state3
svg
tagebuch.txt
test.png.vcd
todo2.txt
todo.txt
Videos
VirtualBox
VMs
vorl03_ana.pdf
Vorlagen
wave.ghw
wave.wav
work-obj93.cf
Das bin ich nicht
Hallo Welt
Hallo zum 1.
Hallo zum 2.
Hallo zum 3.
Hallo zum 4.
Hallo zum 5.
Hallo zum 6.
Hallo zum 7.
Hallo zum 8.
Hallo zum 9.
Hallo zum 10.
Aber
super
Sache
Das
ist
ein
Array
Aber
super
Sache
Das
ist
ein
Array
200066.png
200082.png
20240403_193924.jpg
20240403_201151.jpg
20240403_201154.jpg
434404849_25023964997218914_7634363595333631096_n.jpg
addressdecodertestbench.c
algoke1_20240403.aux
algoke1_20240403.log
algoke1_20240403.pdf
algoke1_20240403.tex
alldo.txt
alllinks.sh
asm15
asm16
asm20240403
asm20240403.asm
asm20240403.o
asm20240404
asm20240404.asm
asm20240404.aux
asm20240404.log
asm20240404.o
asm20240404.pdf
asm20240404.tex
aufgabe1.1.pdf
aufgabenalgomath20240403.txt
auswendig20240402a.txt
auswendig20240402b.txt
auswendig20240402c.txt
automat15
automat15.c
automat20240403-1.jpg
automat20240403.aux
automat20240403.csv
automat20240403.log
automat20240403.pdf
automat20240403.tex
automat20240403.txt
bash20240402all.sh
bash20240402.out
bash20240402.sh
bash20240403all.sh
bash20240403.out
bash20240403.sh
bash20240404all.sh
bash20240404.out
bash20240404.sh
bash20240408all.sh
bash20240408.out
bash20240408.sh
bash20240410all.sh
bash20240410.out
bash20240410.sh
bas.txt
Bilder
bin20240204.txt
bin20240403.txt
binary2
binary2.c
deepsearch1.c
deepsearch2
deepsearch2.c
doc
Dokumente
dos-inst
Downloads
facebookpassword.txt
files.lst
float.c
fsmprogs
generatetestbench2
generatetestbench3
generatetestbench4
generatetestbench5
gnu-hello
ieee754aufgabe
ieee754aufgabe2.c
ieee754aufgabe.c
ieee754aufgabe.o
Induktion-pdf.pdf
inst
mail
Mars
mathematik.aux
mathematik.log
mathematik.pdf
mathematik.tex
matlab
mips32singlecycle2.vhdl
mips32singlecycle.vhdl
Musik
mycounter.jpg
mycounter.odg
mydaemontestd
myminix-01.jpg
myminix-02.jpg
myminix-03.jpg
myminix-04.jpg
myminix-05.jpg
myminix-06.jpg
myminix-07.jpg
myminix-08.jpg
myminix-09.jpg
myminix-10.jpg
myminix-11.jpg
myminix-12.jpg
myminix-13.jpg
myminix-14.jpg
myminix-15.jpg
myminix-16.jpg
myminix-17.jpg
myminix-18.jpg
myminix-19.jpg
myminix20240405-01.jpg
myminix20240405-02.jpg
myminix20240405-03.jpg
myminix20240405-04.jpg
myminix20240405-05.jpg
myminix20240405-06.jpg
myminix20240405-07.jpg
myminix20240405-08.jpg
myminix20240405-09.jpg
myminix20240405-10.jpg
myminix20240405-11.jpg
myminix20240405-12.jpg
myminix20240405-13.jpg
myminix20240405-14.jpg
myminix20240405-15.jpg
myminix20240405-16.jpg
myminix20240405-17.jpg
myminix20240405-18.jpg
myminix20240405-19.jpg
myminix20240405-20.jpg
myminix20240405-21.jpg
myminix20240405-22.jpg
myminix20240405-23.jpg
myminix20240405-24.jpg
myminix20240405-25.jpg
myminix20240405-26.jpg
myminix20240405-27.jpg
myminix20240405.aux
myminix20240405.log
myminix20240405.pdf
myminix20240405.tex
myminix-20.jpg
myminix-21.jpg
myminix-22.jpg
myminix-23.jpg
myminix-24.jpg
myminix-25.jpg
myminix-26.jpg
myminix-27.jpg
myminixalljpg20240405.out
myminixalljpg.out
myminixalljpg.sh
myminix.aux
myminix.log
myminix.pdf
myminix.tex
myminix.txt
mysqldata.php
node_modules
Öffentlich
out.txt
password
password20240326.txt
password46.txt
quine
quine20240402.txt
quine20240402.vhdl
quine20240403.txt
quine20240403.vhdl
quine20240404.txt
quine20240404.vhdl
replace.sh
Schreibtisch
Screenshot_20240402_161254.png
Screenshot_20240402_222524.png
Screenshot_20240403_095701.png
Screenshot_20240403_112929.png
Screenshot_20240406_091517.png
Screenshot_20240410_082629.png
state3
svg
tagebuch.txt
test.png.vcd
todo2.txt
todo.txt
Videos
VirtualBox
VMs
vorl03_ana.pdf
Vorlagen
wave.ghw
wave.wav
work-obj93.cf

Code: Alles auswählen

Entschuldigung, ich hatte bei der schriftlichen Division länger gebraucht, weil nicht sauber untereinander geschrieben

1.) Rechne die Zahl in binaer Darstellung  in eine Dezimale Darstellung um
1011111111000110b 49094d
2.) Rechne die Zahl in dezimal darstellung in eine Binaerdarstellung um
27975 0110110101000111
3.) Addiere die drei Zahlen schriftlich
            19408
+           41812
+           51897
-----------------
           113117
4.) Subtrahiere die letzten drei Zahlen schriftlich von der ersten schriftlich
            36335
-            5211
-            6124
-            5962
-----------------
            19038
5.) Rechne die Zahl ins zweier komplement um, mit 8 Bit - und subtrahiere diese zahl von der ersten und rechne das Ergebnis nach dezimal
123 -102 = 21
01111011 10011010 = 00010101
6.) Multipliziere die zwei Zahlen schriftlich
41479*6082 = 252275278
7.) Dividiere die zwei Zahlen schriftlich
50162/29140 = 1
8.) Errechne x Logarithmisch mit dem Taschenrechner
9232^x = 1806847989
Rechne die Zahl in IEEE-754 um 12497.503906
Bild

Bild

Bild

Bild

Bild

Bild

Bild

Bild

Bild

Bild

Code: Alles auswählen

Entschuldigung, ich hatte bei der schriftlichen Division länger gebraucht, weil nicht sauber untereinander geschrieben

1.) Rechne die Zahl in binaer Darstellung  in eine Dezimale Darstellung um
1011111111000110b 49094d
2.) Rechne die Zahl in dezimal darstellung in eine Binaerdarstellung um
27975 0110110101000111
3.) Addiere die drei Zahlen schriftlich
            19408
+           41812
+           51897
-----------------
           113117
4.) Subtrahiere die letzten drei Zahlen schriftlich von der ersten schriftlich
            36335
-            5211
-            6124
-            5962
-----------------
            19038
5.) Rechne die Zahl ins zweier komplement um, mit 8 Bit - und subtrahiere diese zahl von der ersten und rechne das Ergebnis nach dezimal
123 -102 = 21
01111011 10011010 = 00010101
6.) Multipliziere die zwei Zahlen schriftlich
41479*6082 = 252275278
7.) Dividiere die zwei Zahlen schriftlich
50162/29140 = 1
8.) Errechne x Logarithmisch mit dem Taschenrechner
9232^x = 1806847989
Rechne die Zahl in IEEE-754 um 12497.503906
Bild

Code: Alles auswählen

 0 0 0 0 0    1
 1 0 0 0 1    1
 2 0 0 1 0    1
 3 0 0 1 1    1
 4 0 1 0 0    1
 5 0 1 0 1    1
 6 0 1 1 0    0
 7 0 1 1 1    1
 8 1 0 0 0    1
 9 1 0 0 1    1
10 1 0 1 0    0
11 1 0 1 1    1
12 1 1 0 0    1
13 1 1 0 1    1
14 1 1 1 0    0
15 1 1 1 1    1


 0 0 0 0 0    1
 1 0 0 0 1    1
 2 0 0 1 0    1
 3 0 0 1 1    1
 4 0 1 0 0    1
 5 0 1 0 1    1
 7 0 1 1 1    1
 8 1 0 0 0    1
 9 1 0 0 1    1
11 1 0 1 1    1
12 1 1 0 0    1
13 1 1 0 1    1
15 1 1 1 1    1


Gruppe 0:
 0 0 0 0 0    1
Gruppe 1:
 1 0 0 0 1    1
 2 0 0 1 0    1
 4 0 1 0 0    1
 8 1 0 0 0    1
Gruppe 2:
 3 0 0 1 1    1
 5 0 1 0 1    1
 9 1 0 0 1    1
12 1 1 0 0    1
Gruppe 3:
 7 0 1 1 1    1
11 1 0 1 1    1
13 1 1 0 1    1
Gruppe 4:
15 1 1 1 1    1

0:1             0 0 0 -
0:2             0 0 - 0
0:4             0 - 0 0
0:8             - 0 0 0
1:3             0 0 - 1
1:5             0 - 0 1
1:9             - 0 0 1
2:3             0 0 1 -
4:5             0 1 0 -
4:12            - 1 0 0
8:9             1 0 0 -
8:12            1 - 0 0
3:7             0 - 1 1
3:11            - 0 1 1
5:7             0 1 - 1
5:13            - 1 0 1
9:11            1 0 - 1
9:13            1 - 0 1
12:13           1 1 0 -
7:15            - 1 1 1
11:15           1 - 1 1
13:15           1 1 - 1










0:1             0 0 0 -
2:3             0 0 1 -
4:5             0 1 0 -
12:13           1 1 0 -
8:9             1 0 0 -
5:7             0 1 - 1
9:11            1 0 - 1
13:15           1 1 - 1
1:3             0 0 - 1
0:2             0 0 - 0
8:12            1 - 0 0
3:7             0 - 1 1
9:13            1 - 0 1
11:15           1 - 1 1
1:5             0 - 0 1
0:4             0 - 0 0
1:9             - 0 0 1
4:12            - 1 0 0
3:11            - 0 1 1
5:13            - 1 0 1
7:15            - 1 1 1
0:8             - 0 0 0




Gruppe 0:
0:1             0 0 0 -
Gruppe 1:
2:3             0 0 1 -
4:5             0 1 0 -
8:9             1 0 0 -
Gruppe 2:
12:13           1 1 0 -


Gruppe 0:
0:2             0 0 - 0
Gruppe 1:
1:3             0 0 - 1
5:7             0 1 - 1
Gruppe 2:
9:11            1 0 - 1
Gruppe 3:
13:15           1 1 - 1


Gruppe 0:
0:4             0 - 0 0
Gruppe 1:
8:12            1 - 0 0
1:5             0 - 0 1
Gruppe 2:
3:7             0 - 1 1
9:13            1 - 0 1
Gruppe 3:
11:15           1 - 1 1


Gruppe 0:
0:8             - 0 0 0
Gruppe 1:
1:9             - 0 0 1
4:12            - 1 0 0
Gruppe 2:
3:11            - 0 1 1
5:13            - 1 0 1
Gruppe 3:
7:15            - 1 1 1


Gruppe 0:
0:1             0 0 0 -
Gruppe 1:
2:3             0 0 1 -
4:5             0 1 0 -
8:9             1 0 0 -
Gruppe 2:
12:13           1 1 0 -

0:1:2:3                 0 0 - -
0:1:4:5                 0 - 0 -
0:1:8:9                 - 0 0 -
4:5:12:13               - 1 0 -
8:9:12:13               1 - 0 -


Gruppe 0:
0:2             0 0 - 0
Gruppe 1:
1:3             0 0 - 1
Gruppe 2:
9:11            1 0 - 1
5:7             0 1 - 1
Gruppe 3:
13:15           1 1 - 1

0:2:1:3                 0 0 - -
1:3:9:11                - 0 - 1
1:3:5:7                 0 - - 1
9:11:13:15              1 - - 1
5:7:13:15               - 1 - 1



Gruppe 0:
0:4             0 - 0 0
Gruppe 1:
8:12            1 - 0 0
1:5             0 - 0 1
Gruppe 2:
3:7             0 - 1 1
9:13            1 - 0 1
Gruppe 3:
11:15           1 - 1 1

0:4:8:12                - - 0 0
0:4:1:5                 0 - 0 -
8:12:9:13               1 - 0 -
1:5:3:7                 0 - - 1
1:5:9:13                - - 0 1
3:7:11:15               - - 1 1
9:13:11:15              1 - - 1


Gruppe 0:
0:8             - 0 0 0
Gruppe 1:
1:9             - 0 0 1
4:12            - 1 0 0
Gruppe 2:
3:11            - 0 1 1
5:13            - 1 0 1
Gruppe 3:
7:15            - 1 1 1


0:8:1:9                 - 0 0 -
0:8:4:12                - - 0 0
1:9:3:11                - 0 - 1
1:9:5:13                - - 0 1
4:12:5:13               - 1 0 -
3:11:7:15               - - 1 1
5:13:7:15               - 1 - 1








0:1:2:3                 0 0 - -
0:1:4:5                 0 - 0 -
0:1:8:9                 - 0 0 -
4:5:12:13               - 1 0 -
8:9:12:13               1 - 0 -
0:2:1:3                 0 0 - -
1:3:9:11                - 0 - 1
1:3:5:7                 0 - - 1
9:11:13:15              1 - - 1
5:7:13:15               - 1 - 1
0:4:8:12                - - 0 0
0:4:1:5                 0 - 0 -
8:12:9:13               1 - 0 -
1:5:3:7                 0 - - 1
1:5:9:13                - - 0 1
3:7:11:15               - - 1 1
9:13:11:15              1 - - 1
0:8:1:9                 - 0 0 -
0:8:4:12                - - 0 0
1:9:3:11                - 0 - 1
1:9:5:13                0 - 0 1
4:12:5:13               - 1 0 -
3:11:7:15               - - 1 1
5:13:7:15               - 1 - 1



0:1:2:3                 0 0 - -
0:2:1:3                 0 0 - -
0:1:8:9                 - 0 0 -
4:5:12:13               - 1 0 -
4:12:5:13               - 1 0 -
0:8:1:9                 - 0 0 -
0:1:4:5                 0 - 0 -
8:9:12:13               1 - 0 -
0:4:1:5                 0 - 0 -
8:12:9:13               1 - 0 -
1:3:5:7                 0 - - 1
9:11:13:15              1 - - 1
1:5:3:7                 0 - - 1
9:13:11:15              1 - - 1
1:3:9:11                - 0 - 1
5:7:13:15               - 1 - 1
5:13:7:15               - 1 - 1
1:9:3:11                - 0 - 1
0:4:8:12                - - 0 0
0:8:4:12                - - 0 0
1:5:9:13                - - 0 1
3:7:11:15               - - 1 1
1:9:5:13                - - 0 1
3:11:7:15               - - 1 1



0:1:2:3                 0 0 - -
4:12:5:13               - 1 0 -
0:8:1:9                 - 0 0 -
0:4:1:5                 0 - 0 -
8:12:9:13               1 - 0 -
1:5:3:7                 0 - - 1
9:11:13:15              1 - - 1
1:3:9:11                - 0 - 1
5:13:7:15               - 1 - 1
0:8:4:12                - - 0 0
1:9:5:13                - - 0 1
3:11:7:15               - - 1 1



Gruppe 0:
0:1:2:3                 0 0 - -
Gruppe 0:
0:8:1:9                 - 0 0 -
Gruppe 1:
4:12:5:13               - 1 0 -
Gruppe 0:
0:4:1:5                 0 - 0 -
Gruppe 1:
8:12:9:13               1 - 0 -
Gruppe 1:
1:5:3:7                 0 - - 1
Gruppe 2:
9:11:13:15              1 - - 1
Gruppe 1:
1:3:9:11                - 0 - 1
Gruppe 2:
5:13:7:15               - 1 - 1
Gruppe 0:
0:8:4:12                - - 0 0
Gruppe 1:
1:9:5:13                - - 0 1
Gruppe 2:
3:11:7:15               - - 1 1

Gruppe 0:
0:1:2:3                             0 0 - -
Gruppe 0:
0:8:1:9                 - 0 0 -
Gruppe 1:
4:12:5:13               - 1 0 -

0:8:1:9:4:12:5:13                   - - 0 -

Gruppe 0:
0:4:1:5                 0 - 0 -
Gruppe 1:
8:12:9:13               1 - 0 -

0:4:1:5:8:12:9:13                   - - 0 -

Gruppe 1:
1:5:3:7                 0 - - 1
Gruppe 2:
9:11:13:15              1 - - 1

1:5:3:7:9:11:13:15                  - - - 1

Gruppe 1:
1:3:9:11                - 0 - 1
Gruppe 2:
5:13:7:15               - 1 - 1

1:3:9:11:5:13:7:15                  - - - 1

Gruppe 0:
0:8:4:12                - - 0 0
Gruppe 1:
1:9:5:13                - - 0 1
Gruppe 2:
3:11:7:15               - - 1 1

0:8:4:12:1:9:5:13                   - - 0 -
1:9:5:13:3:11:7:15                  - - - 1




Gruppe 0:
0:1:2:3                             0 0 - -
0:8:1:9:4:12:5:13                   - - 0 -
0:4:1:5:8:12:9:13                   - - 0 -
1:5:3:7:9:11:13:15                  - - - 1
1:3:9:11:5:13:7:15                  - - - 1
0:8:4:12:1:9:5:13                   - - 0 -
1:9:5:13:3:11:7:15                  - - - 1


0:1:2:3                             0 0 - -
0:8:1:9:4:12:5:13                   - - 0 -
1:5:3:7:9:11:13:15                  - - - 1



                            0   1   2   3   4   5   7   8   9   11  12  13  15
0:1:2:3                     *   *   *   *
0:8:1:9:4:12:5:13           *   *           *   *       *           *   *
1:5:3:7:9:11:13:15              *       *       *   *       *   *       *   *

                            0   1   2   3   4   5   7   8   9   11  12  13  15
0:1:2:3                     *   *   *   *                                           p
0:8:1:9:4:12:5:13           *   *           *   *       *           *   *           p
1:5:3:7:9:11:13:15              *       *       *   *       *   *       *   *       p







    y <=    (not x3 and not x2) or
            (not x1) or
            (x0);
    y <=    (x3 or x2) and
            (x1) and
            (not x0);


library ieee;
use ieee.std_logic_1164.all;

entity quine20240410 is
port (
    x3, x2, x1, x0: in std_logic;
    y: out std_logic
);
end;

architecture behaviour of quine20240410 is
begin
    y <=    (not x3 and not x2) or
            (not x1) or
            (x0);
end;

library ieee;
use ieee.std_logic_1164.all;

entity quine20240410testbench is
port (
    y: out std_logic
);
end;

architecture behaviour of quine20240410testbench is
    component quine20240410
    port (
        x3, x2, x1, x0: in std_logic;
        y: out std_logic
    );
    end component;
    signal x3, x2, x1, x0: std_logic;
begin
    q: quine20240410 PORT MAP (x3=>x3, x2=>x2, x1=>x1, x0=>x0, y=>y);

Code: Alles auswählen

library ieee;
use ieee.std_logic_1164.all;

entity quine20240410 is
port (
    x3, x2, x1, x0: in std_logic;
    y: out std_logic
);
end;

architecture behaviour of quine20240410 is
begin
    y <=    (not x3 and not x2) or
            (not x1) or
            (x0);
end;

library ieee;
use ieee.std_logic_1164.all;

entity quine20240410testbench is
port (
    y: out std_logic
);
end;

architecture behaviour of quine20240410testbench is
    component quine20240410
    port (
        x3, x2, x1, x0: in std_logic;
        y: out std_logic
    );
    end component;
    signal x3, x2, x1, x0: std_logic;
begin
    q: quine20240410 PORT MAP (x3=>x3, x2=>x2, x1=>x1, x0=>x0, y=>y);

    x0 <= '0' after 0 ns, '1' after 10 ns, '0' after 20 ns, '1' after 30 ns, '0' after 40 ns, '1' after 50 ns, '0' after 60 ns, '1' after 70 ns, '0' after 80 ns, '1' after 90 ns, '0' after 100 ns, '1' after 110 ns, '0' after 120 ns, '1' after 130 ns, '0' after 140 ns, '1' after 150 ns;

    x1 <= '0' after 0 ns, '0' after 10 ns, '1' after 20 ns, '1' after 30 ns, '0' after 40 ns, '0' after 50 ns, '1' after 60 ns, '1' after 70 ns, '0' after 80 ns, '0' after 90 ns, '1' after 100 ns, '1' after 110 ns, '0' after 120 ns, '0' after 130 ns, '1' after 140 ns, '1' after 150 ns;

    x2 <= '0' after 0 ns, '0' after 10 ns, '0' after 20 ns, '0' after 30 ns, '1' after 40 ns, '1' after 50 ns, '1' after 60 ns, '1' after 70 ns, '0' after 80 ns, '0' after 90 ns, '0' after 100 ns, '0' after 110 ns, '1' after 120 ns, '1' after 130 ns, '1' after 140 ns, '1' after 150 ns;

    x3 <= '0' after 0 ns, '0' after 10 ns, '0' after 20 ns, '0' after 30 ns, '0' after 40 ns, '0' after 50 ns, '0' after 60 ns, '0' after 70 ns, '1' after 80 ns, '1' after 90 ns, '1' after 100 ns, '1' after 110 ns, '1' after 120 ns, '1' after 130 ns, '1' after 140 ns, '1' after 150 ns;
end;

Code: Alles auswählen

Zustand		Folge-Zustand fuer	Ausgang
			x=0	x=1				
1			3	6				0
2			7	5				1
3			6	1				0
4			2	8				1
5			3	2				1
6			1	3				0
7			2	8				0
8			3	3				0


Zustand		Folge-Zustand fuer	Ausgang
			x=0	x=1
1			3	6				0
3			6	1				0
6			1	3				0
7			2	8				0
8			3	3				0

(1,3)				(3,6)			(6,1)
(1,6)				(3,1)			(6,3)
(1,7)				(3,2)			(6,8)
(1,8)				(3,3)			(6,3)
(3,6)				(6,1)			(1,3)
(3,7)				(6,2)			(1,8)
(3,8)				(6,3)			(1,3)
(6,7)				(1,2)			(3,8)
(6,8)				(1,3)			(3,3)
(7,8)				(3,3)			(3,3)

Zustand		Folge-Zustand fuer	Ausgang
			x=0	x=1
2			7	5				1
4			2	8				1
5			3	2				1

(2,4)				(7,2)			(5,8)
(2,5)				(7,3)			(5,2)
(4,5)				(2,3)			(8,2)


(1,3)				(3,6)			(6,1)
(1,6)				(3,1)			(6,3)
(1,7)				(3,2)			(6,8)
(1,8)				(3,3)			(6,3)
(2,4)				(7,2)			(5,8)
(2,5)				(7,3)			(5,2)
(3,6)				(6,1)			(1,3)
(3,7)				(6,2)			(1,8)
(3,8)				(6,3)			(1,3)
(4,5)				(2,3)			(8,2)
(6,7)				(1,2)			(3,8)
(6,8)				(1,3)			(3,3)
(7,8)				(3,3)			(3,3)


(1,3)				(3,6)			(1,6)
(1,6)				(1,3)			(3,6)
(1,7)				(2,3)			(6,8)
(1,8)				(3,3)			(3,6)
(2,4)				(2,7)			(5,8)
(2,5)				(3,7)			(2,5)
(3,6)				(1,6)			(1,3)
(3,7)				(2,6)			(1,8)
(3,8)				(3,6)			(1,3)
(4,5)				(2,3)			(2,8)
(6,7)				(1,2)			(3,8)
(6,8)				(1,3)			(3,3)
(7,8)				(3,3)			(3,3)


(1,3)				(3,6)			(1,6)
(1,6)				(1,3)			(3,6)
--(1,7)				--(2,3)			(6,8)
(1,8)				(3,6)
--(2,4)				--(2,7)			(5,8)
(2,5)				(3,7)
(3,6)				(1,6)			(1,3)
--(3,7)				--(2,6)			(1,8)
(3,8)				(3,6)			(1,3)
--(4,5)				--(2,3)			(2,8)
--(6,7)				--(1,2)			(3,8)
(6,8)				(1,3)


(1,3)				(3,6)			(1,6)
(1,6)				(1,3)			(3,6)
(1,8)				(3,6)
(2,5)				(3,7)
(3,6)				(1,6)			(1,3)
(3,8)				(3,6)			(1,3)
(6,8)				(1,3)



(1,3)				(3,6)			(1,6)
(1,6)				(1,3)			(3,6)
(1,8)				(3,6)
--(2,5)				--(3,7)
(3,6)				(1,6)			(1,3)
(3,8)				(3,6)			(1,3)
(6,8)				(1,3)



(1,3)				(3,6)			(1,6)
(1,6)				(1,3)			(3,6)
(1,8)				(3,6)
(3,6)				(1,6)			(1,3)
(3,8)				(3,6)			(1,3)
(6,8)				(1,3)

Bild

https://www.ituenix.de/nextcloud/data/d ... 240410.tex
https://www.ituenix.de/nextcloud/data/d ... 240410.pdf
https://www.ituenix.de/nextcloud/data/d ... 240410.csv

Bild

Code: Alles auswählen

Zustand,Eingabe,Ausgabe,Folgezustand
1,0,1,4
1,1,0,4
2,0,0,2
2,1,1,3
3,0,1,3
3,1,1,1
4,0,0,1
4,1,0,2


z1+ := z3 and x or z4 and not x
z2+ := z2 and not x or z4 and x
z3+ := z2 and x or z3 and not x
z4+ := z1
y := z1 and not x or z2 and x or z3
Bild

https://www.ituenix.de/nextcloud/data/d ... 240410.tex
https://www.ituenix.de/nextcloud/data/d ... 240410.pdf

Bild

Bild


Bild
Antworten