print("Hello World, from R")
[1] "Hello World, from R"
x <- seq(-10,10, by = 0.1) y <- x ^ 3 plot(x, y, type = "l")
print("Hello World, from Python")
Hello World, from Python
import matplotlib.pyplot as plt import numpy as np xpoints = np.arange(-10, 10, 0.1) ypoints = np.power(xpoints, 3) plt.plot(xpoints, ypoints) plt.show()
display "Hello World, from Stata"
Hello World, from Stata
graph twoway function x^3, range(-10 10)
println("Hello World, from Julia")
Hello World, from Julia
using Plots x = range(-10, 10, length=1000) y = x .^ 3 plot(x, y)
Precompiling Plots... 793.0 ms ✓ FixedPointNumbers 1038.0 ms ✓ StatsBase 730.1 ms ✓ ColorTypes 371.4 ms ✓ ColorTypes → StyledStringsExt 900.9 ms ✓ ColorVectorSpace 1821.3 ms ✓ Colors 1852.6 ms ✓ ColorSchemes 3627.6 ms ✓ PlotUtils 1238.6 ms ✓ PlotThemes 1683.6 ms ✓ RecipesPipeline 22890.4 ms ✓ Plots 1972.3 ms ✓ Plots → UnitfulExt 12 dependencies successfully precompiled in 35 seconds. 170 already precompiled. Precompiling QuartoNotebookWorkerPlotsExt... 1519.4 ms ✓ QuartoNotebookWorker → QuartoNotebookWorkerPlotsExt 1 dependency successfully precompiled in 2 seconds. 185 already precompiled.