⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gadrotor.m

📁 这是几何代数的matlab工具包
💻 M
字号:
%	ROTATION BY ROTORSGAfigure; clc; %/%	ROTATION BY ROTORSglobal plane angle i phi Raxis; %/clf; %/%% 	Making a rotor:%%% plane = e1^(e2+e3/4);plane = e1^e2;angle = pi/4;i = plane; %/phi = angle; %/R = gexp(-plane*angle/2) %w %%% 	Applying the rotor:x = e1 + e3;draw(x,'r'); %/axis([-1 1 -1 1 -1 1]); %/axis off; %/GAtext(0.7*x+0.1*unit(grade(inner(x,plane)/plane,1)),'x'); %/draw(plane*angle); %/GAview([15 30]); %/axis([-1 1 -1 1 -1 1]); %/GAtext(0.1*plane/I3-0.3*unit(grade(inner(x,plane)/plane,1)),'i \phi'); %/%% GAprompt; %/%% GAorbiter(-330,5); %/r = R*x/R %wdraw(r,'m'); %/axis([-1 1 -1 1 -1 1]); %/title(['rotor R = e^{-i \phi /2}'],'Color','b'); %/GAtext(0.9*r+0.1*unit(grade(inner(r,plane)/plane,1)),'R x R^{-1}'); %/GAprompt; %/title(''); %/GAorbiter(-360,5); %/% In 3-space, you could characterize the rotation by an axis:Raxis = plane/I3 %wdraw(Raxis,'k'); %/axis([-1 1 -1 1 -1 1]); %/GAtext(1.1*Raxis,'i \phi / I_3'); %/GAprompt; %/%% =======>   To many rotations?     GAorbiter(-360,5); %/% Now rotate a bivector.B = 0.7*x^(e1+e2);draw(B,'w'); %/axis([-1 1 -1 1 -1 1]); %/Blabel = -0.75*unit(meet(B,i)); %/GAtext(Blabel,'B'); %/%% GAprompt; %/RB = R*B/R %wdraw(RB,'y'); %/axis([-1 1 -1 1 -1 1]); %/GAtext(R*Blabel/R,'R B R^{-1}'); %/GAprompt; %/GAorbiter(-400,10); %/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -