图形几何——三角形:三角函数小角度近似的成立条件

小角度近似成立边界(误差小于1%)

c o s θ ≈ 1 cos\theta \approx 1 cosθ1 θ < = 8.07 ° \theta <= 8.07 ° θ<=8.07°时成立

  • 对比结果图

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-ocIrArLE-1691896890813)(https://note.youdao.com/yws/res/62410/WEBRESOURCE52ce5dcf92c7e0e2799926284d0ebe4d)]

  • matlab代码
clc;clear;close all
x = 0:0.01:15;
y_real = cosd(x);
y_hat = ones(1,size(x,2));
err = (y_hat - y_real)./y_real.*100;
index = find(err > 0.997 & err< 1.002);
figure;plot(x,err);hold on;plot(x(index),err(index),'ro');
hold on; plot(x,y_hat);title('1 - cos x');
ylabel('Relat error, %');xlabel('Angle,°');
figure;plot(x,y_real,'b-');hold on;
plot(x,y_hat,'r-');legend('y = cos x','y = 1','Location','best')
xlabel('Angle,°');ylabel('y');title('y = cosx')

t a n θ ≈ θ tan \theta \approx \theta tanθθ θ < = 9.91 ° \theta <= 9.91 ° θ<=9.91°时成立

  • 对比结果图

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-yEgUuKDc-1691896890814)(https://note.youdao.com/yws/res/62420/WEBRESOURCE4a96f1016f2d116a870ead8399cabf48)]

  • matlab代码
clc;clear;close all
x = 0:0.01:45;
y_real = tand(x);
y_hat = deg2rad(x);
figure;plot(x,y_real,'b-');hold on;
plot(x,y_hat,'r-');legend('y = tan x','y = x(rad)','Location','best')
xlabel('Angle,°');ylabel('y');title('y = tanx')
err = (y_real - y_hat)./y_real.*100;
index = find(err > 0.998 & err< 1.002);
figure;plot(x,err);hold on;plot(x(index),err(index),'ro');
hold on; plot(x,ones(1,size(x,2)));title('tan x - x');
ylabel('Relat error, %');xlabel('Angle,°');

s i n θ ≈ θ sin \theta \approx \theta sinθθ θ < = 13.99 ° \theta <= 13.99 ° θ<=13.99°时成立

  • 对比结果图

在这里插入图片描述

  • matlab代码
clc;clear;close all
x = 0:0.01:90;
y_real = sind(x);
y_hat = deg2rad(x);
figure;plot(x,y_real,'b-');hold on;
plot(x,y_hat,'r-');legend('y = tan x','y = x(rad)','Location','best')
xlabel('Angle,°');ylabel('y');title('y = sinx')
err = (y_hat - y_real)./y_real.*100;
index = find(err > 0.998 & err< 1.002);
figure;plot(x,err);hold on;plot(x(index),err(index),'ro');
hold on; plot(x,ones(1,size(x,2)));title('x - sinx');
ylabel('Relat error, %');xlabel('Angle,°');

c o s θ ≈ 1 − θ 2 / 2 cos \theta \approx 1 - \theta^2/2 cosθ1θ2/2,` θ < = 37.93 ° \theta <= 37.93 ° θ<=37.93°时成立

  • 对比结果图

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-LFIwoQaJ-1691896890815)(https://note.youdao.com/yws/res/62433/WEBRESOURCE485bdefcaa25b97524f273620789e96d)]

  • matlab代码
clc;clear;close all
x = 0:0.01:90;
y_real = cosd(x);
y_hat = 1 - deg2rad(x).^2./2;
figure;plot(x,y_real,'b-');hold on;
plot(x,y_hat,'r-');
legend('y = cos x','y = 1-x^2/2(rad)','Location','best')
xlabel('Angle,°');ylabel('y');title('y = cosx')
err = abs((y_hat - y_real)./y_real.*100);
index = find(err > 0.999 & err< 1.002);
figure;plot(x,err);hold on;plot(x(index),err(index),'ro');
hold on; plot(x,ones(1,size(x,2)));title('cosx(°) - (1-x^2/2(rad))');
ylabel('Relat error, %');xlabel('Angle,°');
ylim([0,3])
  • 3
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值