with(plots):with(LinearAlgebra): EFG:=proc(X) > local Xu,Xv,E,F,G; > Xu:=; > Xv:=; > E:=DotProduct(Xu,Xu,conjugate=false); > F:=DotProduct(Xu,Xv,conjugate=false); > G:=DotProduct(Xv,Xv,conjugate=false); > simplify([E,F,G]); > end: UN:=proc(X) > local Xu,Xv,Z,s; > Xu:=; > Xv:=; > Z:=CrossProduct(Xu,Xv); > s:=VectorNorm(Z,Euclidean,conjugate=false); > simplify(,sqrt,trig,symbolic); > end: lmn:=proc(X) > local Xu,Xv,Xuu,Xuv,Xvv,U,l,m,n; > Xu:=; > Xv:=; > Xuu:=; > Xuv:=; > Xvv:=; > U:=UN(X); > l:=DotProduct(U,Xuu,conjugate=false); > m:=DotProduct(U,Xuv,conjugate=false); > n:=DotProduct(U,Xvv,conjugate=false); > simplify([l,m,n],sqrt,trig,symbolic); > end: MK:=proc(X) > local E,F,G,l,m,n,S,T; > S:=EFG(X);T:=lmn(X); > E:=S[1];F:=S[2];G:=S[3]; > l:=T[1];m:=T[2];n:=T[3]; > simplify((G*l+E*n-2*F*m)/(2*E*G-2*F^2),sqrt,trig,symbolic); > end: scherk1:=; MK(scherk1); plot3d(scherk1,u=-1.57..1.57,v=-1.57..1.57,shading=xy, > lightmodel=light4,orientation=[51,66],grid=[20,20]);