obliczenia_naukowe/l2/2.jl
2024-11-08 17:06:50 +01:00

15 lines
259 B
Julia
Executable file

#!/usr/bin/env julia
# Jacek Poziemski 272389
import Pkg
Pkg.add("Plots")
using Plots
f(x::Float64)::Float64 = exp(x) * log(one(Float64) + exp(-x))
x = range(-10, 40, length=1000)
y = map(x -> f(x), x)
plot(x, y, label = "f(x)")
png("2-julia-plots.png")