Skip to content

Instantly share code, notes, and snippets.

@C-Stevens
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save C-Stevens/1122e7a8fef749910a98 to your computer and use it in GitHub Desktop.
Save C-Stevens/1122e7a8fef749910a98 to your computer and use it in GitHub Desktop.
R Graph for 4*pi*x^2+(24/x)-(8/3)*pi*x^2
curve(
4*pi*x^2+(24/x)-(8/3)*pi*x^2,
col="blue",
lwd=1.5,
n=109,
axes=FALSE,
xlim=c(0,4),
ylim=c(0,300),
ylab="f(r)",
xlab="r",
panel.first=abline(h=0, v=0, lty="dotted", col="gray")
)
xval <- (3^(2/3))/(pi^(1/3))
yval <- (12*((3*pi)^(1/3)))
points(
xval,yval,
pch=21,
bg="red",
)
axis(1)
axis(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment