快速求离散点刀具坐标程序
本帖最后由 shouce 于 2015-11-26 21:34 编辑% examlpe7.m
a=0; b=2;
eps1=1e-12;eps2=1e-12;
N=300;
A=[-0.104020146 35.0002164 -0.004160847];
=size(A);
for i=1:m
a1=A(i,1);b1=A(i,2);m1=A(i,3);
end
f=@ (x) ((285+60*tan(45*pi/180)-b1*sin(x)-a1*cos(x))*(a1+b1*m1)+(60)^2*x*(sin(x)-m1*cos(x))-60*285*tan(45*pi/180)*(m1*sin(x)+cos(x)));
Hfun=@Bisection;
= feval(Hfun, f,a,b,eps1,eps2,N);
% A 为离散点坐标及导数中心距285左旋螺旋角45度 在二分法中增加一部些程序,方便了很多
部分运行结果:
35, 1.303240794, 1.303240794, 1.303240794,0.000000896,
36, 1.303240794, 1.303240794, 1.303240794,0.000000279,
37, 1.303240794, 1.303240794, 1.303240794,-0.000000030,
38, 1.303240794, 1.303240794, 1.303240794,0.000000124,
39, 1.303240794, 1.303240794, 1.303240794,0.000000047,
40, 1.303240794, 1.303240794, 1.303240794,0.000000009,
41, 1.303240794, 1.303240794, 1.303240794,-0.000000011,
页:
[1]