Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AngewandteMathe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Glaser
AngewandteMathe
Commits
f50a378a
Commit
f50a378a
authored
1 year ago
by
tobiglaser
Browse files
Options
Downloads
Patches
Plain Diff
Blatt 3
parent
981af641
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Blatt3/23ss_MiM_Bonus_03.pdf
+0
-0
0 additions, 0 deletions
Blatt3/23ss_MiM_Bonus_03.pdf
Blatt3/Diagramm.png
+0
-0
0 additions, 0 deletions
Blatt3/Diagramm.png
Blatt3/README.md
+20
-0
20 additions, 0 deletions
Blatt3/README.md
Blatt3/verkehr.py
+69
-0
69 additions, 0 deletions
Blatt3/verkehr.py
with
89 additions
and
0 deletions
Blatt3/23ss_MiM_Bonus_03.pdf
0 → 100644
+
0
−
0
View file @
f50a378a
File added
This diff is collapsed.
Click to expand it.
Blatt3/Diagramm.png
0 → 100644
+
0
−
0
View file @
f50a378a
38.6 KiB
This diff is collapsed.
Click to expand it.
Blatt3/README.md
0 → 100644
+
20
−
0
View file @
f50a378a
Ergebnis:

Alle Straßen außer x2 können in Einbahnstraßen umgewandelt werden, da der Fluss immer positiv bzw. negativ bleibt.
Bei x2 wechselt der Fluss zweimal am Tag die Richtung (Vorzeichenwechsel).
L: [
[ 1. 0. 0. 0.]
[-1. 1. 0. 0.]
[ 0. -1. 1. 0.]
[ 0. 2. 0. 1.]]
U: [
[-1 0 0 0]
[ 0 -1 0 0]
[-1 1 -1 0]
[ 2 -2 0 1]]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Blatt3/verkehr.py
0 → 100644
+
69
−
0
View file @
f50a378a
import
numpy
as
np
from
numpy
import
pi
,
sin
import
scipy.linalg
import
matplotlib.pyplot
as
plt
A
=
np
.
array
([
[
-
1
,
0
,
0
,
0
],
[
1
,
-
1
,
0
,
0
],
[
0
,
1
,
-
1
,
0
],
[
0
,
-
2
,
0
,
1
]])
L
=
np
.
identity
(
4
)
U
=
A
param
=
np
.
array
([
1
,
1
,
-
2
])
for
i
in
range
(
len
(
A
)):
U
[
1
,
i
]
+=
U
[
0
,
i
]
*
param
[
0
]
U
[
2
,
i
]
+=
U
[
0
,
i
]
*
param
[
1
]
U
[
3
,
i
]
+=
U
[
0
,
i
]
*
param
[
2
]
L
[
1
,
0
]
=
-
1
*
param
[
0
]
L
[
2
,
1
]
=
-
1
*
param
[
1
]
L
[
3
,
1
]
=
-
1
*
param
[
2
]
print
(
"
L:
"
)
print
(
L
)
print
(
"
U:
"
)
print
(
U
)
x1
=
[]
x2
=
[]
x3
=
[]
x4
=
[]
time
=
[]
for
t
in
range
(
0
,
24
*
60
):
# 1440 Minuten
t
=
t
/
60
# zu 24 Stunden
zA
=
610
-
100
*
sin
((
pi
/
12
)
*
t
)
aA
=
450
-
25
*
sin
((
pi
/
3
)
*
t
+
5
)
zB
=
400
-
20
*
sin
((
pi
/
3
)
*
t
-
1
)
aB
=
640
+
50
*
sin
((
pi
/
12
)
*
t
-
7
)
zC
=
600
+
10
*
sin
((
pi
/
6
)
*
t
+
4
)
b
=
np
.
array
([
aA
-
zA
,
aB
-
zB
,
-
zC
,
0
])
y
=
scipy
.
linalg
.
solve
(
L
,
b
)
x
=
scipy
.
linalg
.
solve
(
U
,
y
)
x1
.
append
(
x
[
0
])
x2
.
append
(
x
[
1
])
x3
.
append
(
x
[
2
])
x4
.
append
(
x
[
3
])
time
.
append
(
t
)
fig
,
ax
=
plt
.
subplots
()
ax
.
plot
(
time
,
x1
,
label
=
'
x1
'
)
ax
.
plot
(
time
,
x2
,
label
=
'
x2
'
)
ax
.
plot
(
time
,
x3
,
label
=
'
x3
'
)
ax
.
plot
(
time
,
x4
,
label
=
'
x4
'
)
ax
.
plot
([
0
,
24
],
[
0
,
0
],
label
=
'
Nulllinie
'
,
color
=
'
black
'
,
linewidth
=
0.5
)
ax
.
set_xlabel
(
'
Zeit [h]
'
)
ax
.
set_ylabel
(
'
Flussmenge
'
)
ax
.
legend
()
plt
.
show
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment