Functional Area Plot
val xs = (-2000..2000).map { it / 500.0f }
val function = { x: Float -> sin(x) * cos(x * 2 + 1) * sin(3 * x + 2) }
val ys = xs.map(function)
plot {
area {
x(xs)
y(ys)
}
}
Last modified: 23 November 2023