Suppose i wanted to write a fun y = x^2+1
and wanted to plot in scatter. So how can i plot this in Julia?
i tried this method but didn’t work
y(x) = x^2+1
x = 1:10
scatter(x,y(x))
Suppose i wanted to write a fun y = x^2+1
and wanted to plot in scatter. So how can i plot this in Julia?
i tried this method but didn’t work
y(x) = x^2+1
x = 1:10
scatter(x,y(x))