l2/z2
This commit is contained in:
parent
8516a022e6
commit
b2174417c0
1 changed files with 8 additions and 0 deletions
8
l2/2.jl
8
l2/2.jl
|
@ -5,3 +5,11 @@
|
|||
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")
|
||||
|
|
Loading…
Reference in a new issue