• Remix
  • Share
  • New Entry

on 22 Nov 2023
  • 17
  • 222
  • 11
  • 0
  • 699
drawframe(1);
a = 0
b = 70
c = 0
m = -20.0000
g = 51.9615
k = -20.0000
p = -51.9615
x = 1×100
70.0000 69.0909 68.1818 67.2727 66.3636 65.4545 64.5455 63.6364 62.7273 61.8182 60.9091 60.0000 59.0909 58.1818 57.2727 56.3636 55.4545 54.5455 53.6364 52.7273 51.8182 50.9091 50.0000 49.0909 48.1818 47.2727 46.3636 45.4545 44.5455 43.6364
y = 1×100
0 0.5249 1.0497 1.5746 2.0995 2.6243 3.1492 3.6740 4.1989 4.7238 5.2486 5.7735 6.2984 6.8232 7.3481 7.8730 8.3978 8.9227 9.4475 9.9724 10.4973 11.0221 11.5470 12.0719 12.5967 13.1216 13.6465 14.1713 14.6962 15.2211
x1 = 1×100
-20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000 -20.0000
y1 = 1×100
51.9615 50.9118 49.8621 48.8123 47.7626 46.7129 45.6632 44.6134 43.5637 42.5140 41.4642 40.4145 39.3648 38.3151 37.2653 36.2156 35.1659 34.1162 33.0664 32.0167 30.9670 29.9172 28.8675 27.8178 26.7681 25.7183 24.6686 23.6189 22.5691 21.5194
x2 = 1×100
70.0000 69.0909 68.1818 67.2727 66.3636 65.4545 64.5455 63.6364 62.7273 61.8182 60.9091 60.0000 59.0909 58.1818 57.2727 56.3636 55.4545 54.5455 53.6364 52.7273 51.8182 50.9091 50.0000 49.0909 48.1818 47.2727 46.3636 45.4545 44.5455 43.6364
y2 = 1×100
0 -0.5249 -1.0497 -1.5746 -2.0995 -2.6243 -3.1492 -3.6740 -4.1989 -4.7238 -5.2486 -5.7735 -6.2984 -6.8232 -7.3481 -7.8730 -8.3978 -8.9227 -9.4475 -9.9724 -10.4973 -11.0221 -11.5470 -12.0719 -12.5967 -13.1216 -13.6465 -14.1713 -14.6962 -15.2211
x3 = 1×100
70.0000 69.6969 68.7946 67.3142 65.2899 62.7681 59.8056 56.4678 52.8264 48.9570 44.9369 40.8421 36.7449 32.7118 28.8015 25.0626 21.5327 18.2373 15.1892 12.3886 9.8234 7.4701 5.2954 3.2576 1.3086 -0.6037 -2.5330 -4.5323 -6.6514 -8.9346
y3 = 1×100
0 5.7131 11.3418 16.8044 22.0239 26.9309 31.4655 35.5785 39.2335 42.4072 45.0897 47.2852 49.0105 50.2947 51.1774 51.7070 51.9387 51.9320 51.7487 51.4496 51.0929 50.7316 50.4112 50.1681 50.0283 50.0061 50.1037 50.3112 50.6069 50.9580
x4 = 1×100
20.0000 19.9597 19.8391 19.6386 19.3590 19.0014 18.5674 18.0585 17.4770 16.8251 16.1054 15.3209 14.4747 13.5702 12.6111 11.6011 10.5445 9.4454 8.3083 7.1377 5.9384 4.7152 3.4730 2.2168 0.9516 -0.3173 -1.5850 -2.8463 -4.0961 -5.3295
y4 = 1×100
0 1.2685 2.5318 3.7850 5.0230 6.2407 7.4332 8.5959 9.7239 10.8128 11.8582 12.8558 13.8016 14.6918 15.5229 16.2915 16.9945 17.6291 18.1926 18.6830 19.0980 19.4362 19.6962 19.8768 19.9773 19.9975 19.9371 19.7964 19.5760 19.2768
x5 = 1×100
40.0000 39.9396 39.7586 39.4579 39.0385 38.5021 37.8510 37.0878 36.2155 35.2376 34.1581 32.9813 31.7120 30.3553 28.9166 27.4017 25.8168 24.1681 22.4625 20.7066 18.9076 17.0728 15.2094 13.3251 11.4275 9.5240 7.6225 5.7306 3.8558 2.0058
y5 = 1×100
0.0000 1.9027 3.7978 5.6775 7.5344 9.3610 11.1499 12.8938 14.5859 16.2192 17.7872 19.2836 20.7024 22.0378 23.2844 24.4373 25.4918 26.4436 27.2890 28.0244 28.6471 29.1543 29.5442 29.8152 29.9660 29.9962 29.9056 29.6946 29.3641 28.9153
x6 = 1×100
15.0000 14.9899 14.9598 14.9096 14.8397 14.7504 14.6418 14.5146 14.3692 14.2063 14.0264 13.8302 13.6187 13.3925 13.1528 12.9003 12.6361 12.3614 12.0771 11.7844 11.4846 11.1788 10.8682 10.5542 10.2379 9.9207 9.6038 9.2884 8.9760 8.6676
y6 = 1×100
0.0000 0.3171 0.6330 0.9463 1.2557 1.5602 1.8583 2.1490 2.4310 2.7032 2.9645 3.2139 3.4504 3.6730 3.8807 4.0729 4.2486 4.4073 4.5482 4.6707 4.7745 4.8591 4.9240 4.9692 4.9943 4.9994 4.9843 4.9491 4.8940 4.8192
MeshDensity = 5555
Write your drawframe function below
% Graph Equation of "Wankel Engine" using Parametric Equation on Cartesian Plane
% Dhimas Mahardika S.Si., M.Mat
% Sanggung Utara, Jatingaleh, Candisari, Semarang, Indonesia
% Universitas Diponegoro, Tembalang
function drawframe(f)
t = linspace(0,1);
t1 = linspace(0,6.3);
h = linspace(0,10,720);
a=h(f)
b=60*cos(2*pi*a)+10*cos(6*pi*a)
c=60*sin(2*pi*a)+10*sin(6*pi*a)
m=60*cos(2*pi*a+(2*pi)/3)+10*cos(6*pi*a+2*pi)
g=60*sin(2*pi*a+(2*pi)/3)+10*sin(6*pi*a+2*pi)
k=60*cos(2*pi*a+(4*pi)/3)+10*cos(6*pi*a+4*pi)
p=60*sin(2*pi*a+(4*pi)/3)+10*sin(6*pi*a+4*pi)
x=m*t-b*t+b
y=g*t-c*t+c
x1=k*t-m*t+m
y1=p*t-g*t+g
x2=k*t-b*t+b
y2=p*t-c*t+c
x3=60*cos(t1)+10*cos(3*t1)
y3=60*sin(t1)+10*sin(3*t1)
x4=20*cos(2*pi*t)
y4=20*sin(2*pi*t)
x5=((b+m+k)/3)+30*cos(2*pi*t)
y5=((c+g+p)/3)+30*sin(2*pi*t)
x6=((b+m+k)/3)+5*cos(2*pi*t)
y6=((c+g+p)/3)+5*sin(2*pi*t)
plot(x,y,x1,y1,x2,y2,x3,y3,x4,y4,x5,y5,x6,y6,'LineWidth',3,'Color',[1 0 0])
MeshDensity=5555
axis equal
axis([-80 80 -60 60])
end
Animation
Remix Tree