Aufagben mit aufgenommen
This commit is contained in:
+57
-2
@@ -210,6 +210,61 @@
|
||||
})
|
||||
|
||||
content("plot.F", text(0.85em)[$y=x^2$], anchor: "west", name: "pt")
|
||||
|
||||
|
||||
|
||||
})
|
||||
|
||||
#let b2_5 = cetz.canvas({
|
||||
|
||||
import cetz.draw: *
|
||||
set-style(
|
||||
axes: (
|
||||
// Basisstil beibehalten
|
||||
stroke: (thickness: 0.5pt),
|
||||
// x-Achse: stealth-Pfeil am Ende
|
||||
x: (mark: (end: "stealth", fill: black)),
|
||||
// y-Achse: stealth-Pfeil am Ende
|
||||
y: (mark: (end: "stealth", fill: black)),
|
||||
),
|
||||
)
|
||||
plot.plot(
|
||||
name: "plot",
|
||||
size: (5, 8),
|
||||
x-tick-step: none,
|
||||
y-tick-step: none,
|
||||
axis-style: "school-book",
|
||||
x-label: $x$,
|
||||
y-label: $y$,
|
||||
x-ticks: ((0.5, $1/2$),),
|
||||
y-ticks: ((1, $1$),(2, $2$)),
|
||||
|
||||
//definitionen
|
||||
{
|
||||
let f = x => if x != 0.5 { (calc.pow(x, 2) - 0.25) / (x - 0.5) } else { none }
|
||||
let x0 = 0.5
|
||||
let y0 = 1
|
||||
let y1 = 2
|
||||
let domain_end_x = 1.75
|
||||
let domain_end_y = f(1.75)
|
||||
plot.add(f, domain: (-0.6, domain_end_x), style: (stroke: blue))
|
||||
|
||||
plot.add(((x0, 0), (x0, y0)), style: (stroke: (dash: "dashed", paint: gray, thickness: 0.75pt)))
|
||||
|
||||
plot.add(((x0, y0), (x0, y1)), style: (stroke: (dash: "dashed", paint: gray, thickness: 0.75pt)))
|
||||
|
||||
plot.add(((0, y0), (x0, y0)), style: (stroke: (dash: "dashed", paint: gray, thickness: 0.75pt)))
|
||||
|
||||
plot.add(((0, y1), (x0, y1)), style: (stroke: (dash: "dashed", paint: gray, thickness: 0.75pt)))
|
||||
|
||||
plot.add(((x0, y0),), mark: "o")
|
||||
plot.add(((x0, y1),), mark: "o")
|
||||
|
||||
plot.add-anchor("F1", (domain_end_x,domain_end_y))
|
||||
|
||||
}
|
||||
)
|
||||
content("plot.F1",padding: (left: 2mm, bottom: 0mm), text(1em)[$ y = cases(
|
||||
(x^2 - 1/4)/(x- 1/2) &text("für")& x eq.not 1/2,
|
||||
2 &text("für")& x= 1/2,
|
||||
) $], anchor: "mid-west", name: "pt")
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user