Qual è il più grande quadrato che si può tracciare dentro un cubo? Individua la strada più semplice per cercare la risposta. |
a = b sqrt(2*(1-x)^2) = sqrt(x^2+x^2+1) 2*x^2+2-4*x = 2*x^2+1 1 = 4*x 4*x = 1 x = 1/4 |
# Come è stata tracciata la figura con R: x = c(0,1); y = c(0,1) ; w = c(0,1) z = array(c(w[1],w[1],w[1],w[1]), dim=c(2,2)) th = 120; ph = 15 F = persp(x,y,z, theta=th,phi=ph, scale=FALSE, xlim=x,ylim=y,zlim=w, ticktype="detailed",nticks=1,d=3) d=0.25 lines(trans3d(c(d,0),c(0,d),c(0,1),pmat=F),col="blue") lines(trans3d(c(0,1-d),c(d,1),c(1,1),pmat=F),col="blue") lines(trans3d(c(1-d,1),c(1,1-d),c(1,0),pmat=F),col="blue") lines(trans3d(c(1,d),c(1-d,0),c(0,0),pmat=F),col="blue")