代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
dangle.m
function phi = dAngle(a,b)
d = a-b;
phi = mod(d,2*pi);
if phi > pi
phi = 2*pi-phi;
end
e0319.asv
a=0;b=2*pi;n=1000;h=(b-a)/n;
x=a:h:b;
f=cos(x-pi/6).*sin(x+pi/6);
for i=1:n
s(i)=(f(i)+f(i+1)).*h/2;
end
s=sum(s)
e0319.asv
a=0;b=2*pi;n=1000;h=(b-a)/n;
x=a:h:b;
f=cos(x-pi/6).*sin(x+pi/6);
for i=1:n
s(i)=(f(i)+f(i+1)).*h/2;
end
s=sum(s)
invkin.m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%
e0319.asv
a=0;b=2*pi;n=1000;h=(b-a)/n;
x=a:h:b;
f=cos(x-pi/6).*sin(x+pi/6);
for i=1:n
s(i)=(f(i)+f(i+1)).*h/2;
end
s=sum(s)
zonghemoxing.m
clear all;
clc;
close all;
format long;
a=pi/6;
h=0.001;
t=5;
w=2*pi*60;
bt=rem(t,h);
bbt=t-bt;
n1=bbt/h;
k=0;
for i=1:n1
t(:,i)=(i-1)*h;
oo=w*t(:,i)/60;
if oo
output.txt
Results of special functions test.
(C) Copyright Hubert Holin 2003-2005.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.
zonghemoxing1.asv
%function ff=zonghemoxing1(t)
clear all;
clc;
close all;
format long;
a=pi/2;
h=0.01;
t=1;
w=pi/3;
%T=2*pi/w;
bt=rem(t,h);
bbt=t-bt;
n1=bbt/h;
k=0;
for i=1:n1
t(:,i)=(i-1)*h;
zonghemoxing1.m
%function ff=zonghemoxing1(t)
clear all;
clc;
close all;
format long;
a=pi/4;
h=1.000000000000000e-004;
t=1;
w=2*pi*1000/60;
%T=2*pi/w;
bt=rem(t,h);
bbt=t-bt;
n1=bbt/h;
k=0;
for i=1:
zonghemoxing.m
clear all;
clc;
close all;
format long;
a=pi/2;
h=0.001;
t=5;
w=2*pi*100;
bt=rem(t,h);
bbt=t-bt;
n1=bbt/h;
k=0;
for i=1:n1
t(:,i)=(i-1)*h;
oo=w*t(:,i)/60;
if oo