You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
417 B
31 lines
417 B
x = 1//3 |
|
y = 2//5 |
|
|
|
x + y |
|
|
|
x * y |
|
|
|
function foo() |
|
println("This string is printed to stdout.") |
|
return [1, 2, 3, 4] |
|
end |
|
|
|
foo() |
|
|
|
1 + 1; |
|
|
|
using Plots |
|
x = range(0, stop=6π, length=1000) |
|
y1 = sin.(x) |
|
y2 = cos.(x) |
|
plot(x, [y1, y2]) |
|
|
|
x = 123 |
|
|
|
function pre(s::String) |
|
s = replace(s, "x = 123" => "y = 321") |
|
return s |
|
end |
|
|
|
# This file was generated using Literate.jl, https://github.com/fredrikekre/Literate.jl |
|
|
|
|