octave:110> y1=(1+cosd([-180:3:0]))/2; octave:111> y1=20*y1; octave:112> y1=(1+cosd([-180:3:0]))*10; octave:113> y2=20-[0:.2:sqrt(25)] .^ 2; octave:114> yy=[y1 20 y2]; octave:115> n=length(yy)-2; octave:116> n=length(yy)-1; octave:117> xx=20*[0:n]/n; octave:118> plot(xx,yy,'.');axis equal;grid on octave:119> y2=20-[0:.18:sqrt(25)] .^ 2; octave:120> yy=[y1 20 y2]; octave:121> n=length(yy)-1; octave:122> xx=20*[0:n]/n; octave:123> plot(xx,yy,'.');axis equal;grid on octave:124> yy=[y1 y2]; octave:125> n=length(yy)-1;xx=20*[0:n]/n; octave:126> plot(xx,yy,'.');axis equal;grid on octave:127> yy=[y1(1:end-2) 0 0 y2]; octave:128> n=length(yy)-1;xx=20*[0:n]/n; octave:129> plot(xx,yy,'.');axis equal;grid on octave:130> yy=[y1(1:end-2) 20 20 y2]; octave:131> n=length(yy)-1;xx=20*[0:n]/n; octave:132> plot(xx,yy,'.');axis equal;grid on octave:133> whos xx yy Variables in the current scope: Attr Name Size Bytes Class ==== ==== ==== ===== ===== xx 1x89 712 double yy 1x89 712 double Total is 178 elements using 1424 bytes octave:134> for k=1:length(xx);fprintf(1,' [%5.2f,%5.2f],\n',xx(k),yy(k));end [ 0.00, 0.00], [ 0.23, 0.01], [ 0.45, 0.05], [ 0.68, 0.12], [ 0.91, 0.22], [ 1.14, 0.34], [ 1.36, 0.49], [ 1.59, 0.66], [ 1.82, 0.86], [ 2.05, 1.09], [ 2.27, 1.34], [ 2.50, 1.61], [ 2.73, 1.91], [ 2.95, 2.23], [ 3.18, 2.57], [ 3.41, 2.93], [ 3.64, 3.31], [ 3.86, 3.71], [ 4.09, 4.12], [ 4.32, 4.55], [ 4.55, 5.00], [ 4.77, 5.46], [ 5.00, 5.93], [ 5.23, 6.42], [ 5.45, 6.91], [ 5.68, 7.41], [ 5.91, 7.92], [ 6.14, 8.44], [ 6.36, 8.95], [ 6.59, 9.48], [ 6.82,10.00], [ 7.05,10.52], [ 7.27,11.05], [ 7.50,11.56], [ 7.73,12.08], [ 7.95,12.59], [ 8.18,13.09], [ 8.41,13.58], [ 8.64,14.07], [ 8.86,14.54], [ 9.09,15.00], [ 9.32,15.45], [ 9.55,15.88], [ 9.77,16.29], [10.00,16.69], [10.23,17.07], [10.45,17.43], [10.68,17.77], [10.91,18.09], [11.14,18.39], [11.36,18.66], [11.59,18.91], [11.82,19.14], [12.05,19.34], [12.27,19.51], [12.50,19.66], [12.73,19.78], [12.95,19.88], [13.18,19.95], [13.41,20.00], [13.64,20.00], [13.86,20.00], [14.09,19.97], [14.32,19.87], [14.55,19.71], [14.77,19.48], [15.00,19.19], [15.23,18.83], [15.45,18.41], [15.68,17.93], [15.91,17.38], [16.14,16.76], [16.36,16.08], [16.59,15.33], [16.82,14.52], [17.05,13.65], [17.27,12.71], [17.50,11.71], [17.73,10.64], [17.95, 9.50], [18.18, 8.30], [18.41, 7.04], [18.64, 5.71], [18.86, 4.32], [19.09, 2.86], [19.32, 1.34], [19.55,-0.25], [19.77,-1.90], [20.00,-3.62], octave:135> reverse([1:3]) error: 'reverse' undefined near line 1 column 1 octave:135> flip([1:3]) ans = 3 2 1 octave:136> yp=25-[0:.2:5].^2; octave:137> plot(yp) octave:138> yy=[flip(yp) yp(2:end)]; whos yy Variables in the current scope: Attr Name Size Bytes Class ==== ==== ==== ===== ===== yy 1x51 408 double Total is 51 elements using 408 bytes octave:139> plot(yp,'.') octave:140> plot(yy,'.') octave:141> n=length(yy)-1;xx=20*[0:n]/n;plot(xx,yy,'.'); octave:142> n=length(yy)-1;xx=20*[0:n]/n;plot(xx,yy,'.');grid on;axid equal error: 'axid' undefined near line 1 column 54 octave:142> n=length(yy)-1;xx=20*[0:n]/n;plot(xx,yy,'.');grid on;axis equal octave:143> for k=1:length(xx);fprintf(1,' [%5.2f,%5.2f],\n',xx(k),yy(k));end [ 0.00, 0.00], [ 0.40, 1.96], [ 0.80, 3.84], [ 1.20, 5.64], [ 1.60, 7.36], [ 2.00, 9.00], [ 2.40,10.56], [ 2.80,12.04], [ 3.20,13.44], [ 3.60,14.76], [ 4.00,16.00], [ 4.40,17.16], [ 4.80,18.24], [ 5.20,19.24], [ 5.60,20.16], [ 6.00,21.00], [ 6.40,21.76], [ 6.80,22.44], [ 7.20,23.04], [ 7.60,23.56], [ 8.00,24.00], [ 8.40,24.36], [ 8.80,24.64], [ 9.20,24.84], [ 9.60,24.96], [10.00,25.00], [10.40,24.96], [10.80,24.84], [11.20,24.64], [11.60,24.36], [12.00,24.00], [12.40,23.56], [12.80,23.04], [13.20,22.44], [13.60,21.76], [14.00,21.00], [14.40,20.16], [14.80,19.24], [15.20,18.24], [15.60,17.16], [16.00,16.00], [16.40,14.76], [16.80,13.44], [17.20,12.04], [17.60,10.56], [18.00, 9.00], [18.40, 7.36], [18.80, 5.64], [19.20, 3.84], [19.60, 1.96], [20.00, 0.00], octave:144> ys=10*(sin([-90:3:90])+1); octave:145> plot(ys) octave:146> ys=10*(sind([-90:3:90])+1); octave:147> plot(ys) octave:148> whos ys Variables in the current scope: Attr Name Size Bytes Class ==== ==== ==== ===== ===== ys 1x61 488 double Total is 61 elements using 488 bytes octave:149> yy=ys; octave:150> n=length(yy)-1;xx=20*[0:n]/n;plot(xx,yy,'.');grid on;axis equal octave:151> for k=1:length(xx);fprintf(1,' [%5.2f,%5.2f],\n',xx(k),yy(k));end [ 0.00, 0.00], [ 0.33, 0.01], [ 0.67, 0.05], [ 1.00, 0.12], [ 1.33, 0.22], [ 1.67, 0.34], [ 2.00, 0.49], [ 2.33, 0.66], [ 2.67, 0.86], [ 3.00, 1.09], [ 3.33, 1.34], [ 3.67, 1.61], [ 4.00, 1.91], [ 4.33, 2.23], [ 4.67, 2.57], [ 5.00, 2.93], [ 5.33, 3.31], [ 5.67, 3.71], [ 6.00, 4.12], [ 6.33, 4.55], [ 6.67, 5.00], [ 7.00, 5.46], [ 7.33, 5.93], [ 7.67, 6.42], [ 8.00, 6.91], [ 8.33, 7.41], [ 8.67, 7.92], [ 9.00, 8.44], [ 9.33, 8.95], [ 9.67, 9.48], [10.00,10.00], [10.33,10.52], [10.67,11.05], [11.00,11.56], [11.33,12.08], [11.67,12.59], [12.00,13.09], [12.33,13.58], [12.67,14.07], [13.00,14.54], [13.33,15.00], [13.67,15.45], [14.00,15.88], [14.33,16.29], [14.67,16.69], [15.00,17.07], [15.33,17.43], [15.67,17.77], [16.00,18.09], [16.33,18.39], [16.67,18.66], [17.00,18.91], [17.33,19.14], [17.67,19.34], [18.00,19.51], [18.33,19.66], [18.67,19.78], [19.00,19.88], [19.33,19.95], [19.67,19.99], [20.00,20.00], octave:152> (3.62-1-.9)/.23 ans = 7.4783 octave:153> 3.62-1.9 ans = 1.7200 octave:154> (3.62-1.9)/.23 ans = 7.4783 octave:155> 2^14 ans = 16384 octave:156> 40*40 ans = 1600 octave:157> z=300000000; octave:158> sqrt(pe) error: 'pe' undefined near line 1 column 6 error: evaluating argument list element number 1 octave:158> sqrt(z) ans = 1.7321e+04 octave:159> 17000/z ans = 5.6667e-05 octave:160> z/17000 ans = 1.7647e+04 octave:161> pwd ans = /home/aaron/Documents/3Ddrawings/BirdBathBowl octave:162> system tcsh ans = 0 octave:163> diary stemCutProfile.txt