当前位置: 首页 > news >正文

大连电子商务网站建设搜狗站长工具

大连电子商务网站建设,搜狗站长工具,怎么做家具定制网站,免费自己做网站软件小木虫的各位童鞋们,我现在调试matlab程序遇到一个问题。一个很复杂的关于角度theta的数值积分,我调用自带的quadl函数,结果出现虚数。我后来又根据变步长的simpson算法编了一个数值积分程序,结果还是有虚数,而且我的积…

小木虫的各位童鞋们,我现在调试matlab程序遇到一个问题。一个很复杂的关于角度theta的数值积分,我调用自带的quadl函数,结果出现虚数。我后来又根据变步长的simpson算法编了一个数值积分程序,结果还是有虚数,而且我的积分程序和quadl算出的结果还有一些误差。积分函数包含了很多三角函数,还有e的指数函数在里面,但是积分过程中并无傅里叶变换等可以带来虚数的过程,不知道虚数是怎么来的。我把积分函数曲线都画出来了,波动比较大,但是作为一个面积,怎么会出现虚数呢?我把我的八个积分函数表达式以及各自的函数曲线贴出来,希望大神们帮我看看,给点意见。论文卡在这里,一直得不到解决。

%========function group of theta=====================

function F1=Ff1(theta)

%======== basic formula=============================

% TO identify whether the rotating axis is inside the circle

if rrat<=0

rm=0.5*(exp((theta-theta0)*tan(phi))-rrat*exp((theta-theta0)*tan(phi)));

R=0.5*(exp((theta-theta0)*tan(phi))+rrat*exp((theta-theta0)*tan(phi)));

else

rm=0.5*(exp((theta-theta0)*tan(phi))+rrat*exp(-(theta-theta0)*tan(phi)));

R=0.5*(exp((theta-theta0)*tan(phi))-rrat*exp(-(theta-theta0)*tan(phi)));

end

a=sin(theta0)/sin(theta)-rm;

F1=2*cos(theta)*(((R^2-a^2)^(1/2))*(0.125*R^2*a-0.25*a^3-0.5*a*rm^2+(R^2-a^2)*rm)...

+(0.5*pi-asin(a/R))*(0.125*R^4+0.5*rm^2*R^2));

end

function F2=Ff2(theta)

%========basic formula=============================

% TO identify whether the rotating axis is inside the circle

if rrat<=0

rm=0.5*(exp((theta-theta0)*tan(phi))-rrat*exp((theta-theta0)*tan(phi)));

R=0.5*(exp((theta-theta0)*tan(phi))+rrat*exp((theta-theta0)*tan(phi)));

else

rm=0.5*(exp((theta-theta0)*tan(phi))+rrat*exp(-(theta-theta0)*tan(phi)));

R=0.5*(exp((theta-theta0)*tan(phi))-rrat*exp(-(theta-theta0)*tan(phi)));

end

d=sin(betaS+thetah)/sin(betaS+theta)*exp((thetah-theta0)*tan(phi))-rm;

F2=2*cos(theta)*(((R^2-d^2)^(1/2))*(0.125*R^2*d-0.25*d^3-0.5*d*rm^2+(R^2-d^2)*rm)...

+(0.5*pi-asin(d/R))*(0.125*R^4+0.5*rm^2*R^2));

end

function G1=Gf1(theta)

%========= basic formula=============================

% TO identify whether the rotating axis is inside the circle

if rrat<=0

rm=0.5*(exp((theta-theta0)*tan(phi))-rrat*exp((theta-theta0)*tan(phi)));

R=0.5*(exp((theta-theta0)*tan(phi))+rrat*exp((theta-theta0)*tan(phi)));

else

rm=0.5*(exp((theta-theta0)*tan(phi))+rrat*exp(-(theta-theta0)*tan(phi)));

R=0.5*(exp((theta-theta0)*tan(phi))-rrat*exp(-(theta-theta0)*tan(phi)));

end

a=sin(theta0)/sin(theta)-rm;

G1=(rm^2*(R-a)+rm*(R^2-a^2)+(1/3)*(R^3-a^3))*cos(theta);

end

function G2=Gf2(theta)

%=========basic formula=============================

% TO identify whether the rotating axis is inside the circle

if rrat<=0

rm=0.5*(exp((theta-theta0)*tan(phi))-rrat*exp((theta-theta0)*tan(phi)));

R=0.5*(exp((theta-theta0)*tan(phi))+rrat*exp((theta-theta0)*tan(phi)));

else

rm=0.5*(exp((theta-theta0)*tan(phi))+rrat*exp(-(theta-theta0)*tan(phi)));

R=0.5*(exp((theta-theta0)*tan(phi))-rrat*exp(-(theta-theta0)*tan(phi)));

end

d=sin(betaS+thetah)/sin(betaS+theta)*exp((thetah-theta0)*tan(phi))-rm;

G2=(rm^2*(R-d)+rm*(R^2-d^2)+(1/3)*(R^3-d^3))*cos(theta);

end

function E1=Ef1(theta)

%=========basic formula=============================

% TO identify whether the rotating axis is inside the circle

if rrat<=0

rm=0.5*(exp((theta-theta0)*tan(phi))-rrat*exp((theta-theta0)*tan(phi)));

R=0.5*(exp((theta-theta0)*tan(phi))+rrat*exp((theta-theta0)*tan(phi)));

else

rm=0.5*(exp((theta-theta0)*tan(phi))+rrat*exp(-(theta-theta0)*tan(phi)));

R=0.5*(exp((theta-theta0)*tan(phi))-rrat*exp(-(theta-theta0)*tan(phi)));

end

a=sin(theta0)/sin(theta)-rm;

E1=(cos(theta)/(sin(theta))^3)*(R^2-a^2)^(1/2);

end

function E2=Ef2(theta)

%========= basic formula=============================

% TO identify whether the rotating axis is inside the circle

if rrat<=0

rm=0.5*(exp((theta-theta0)*tan(phi))-rrat*exp((theta-theta0)*tan(phi)));

R=0.5*(exp((theta-theta0)*tan(phi))+rrat*exp((theta-theta0)*tan(phi)));

else

rm=0.5*(exp((theta-theta0)*tan(phi))+rrat*exp(-(theta-theta0)*tan(phi)));

R=0.5*(exp((theta-theta0)*tan(phi))-rrat*exp(-(theta-theta0)*tan(phi)));

end

d=sin(betaS+thetah)/sin(betaS+theta)*exp((thetah-theta0)*tan(phi))-rm;

E2=cos(theta+betaS)/((sin(theta+betaS))^3)*(R^2-d^2)^(1/2);

end

function H1=Hf1(theta)

%===========basic formula=============================

H1=cos(theta)/(sin(theta))^3;

end

function H2=Hf2(theta)

%========= basic formula=============================

H2=cos(theta+betaS)/(sin(theta+betaS))^3;

end

==========computational parameters==================

d2r=pi/180;

theta0=20*d2r;thetah=100*d2r;rrat=0.6;brat=0.5;

betaS=45*d2r; phi=30*d2r;

A1=sin(betaS+thetah)/sin(theta0)*exp((thetah-theta0)*tan(phi));

B1=cos(betaS);

C1=sin(betaS);

thetaB=acot((A1-B1)/C1);

%===========numerical integration for W and D==============

Wd1=quadl(@Ff1,theta0,thetaB);

Wd2=quadl(@Ff2,thetaB,thetah);

Wd=Wd1+Wd2;

Wp1=quadl(@Gf1,theta0,thetaB);

Wp2=quadl(@Gf2,thetaB,thetah);

Wp=Wp1+Wp2;

Kd1=quadl(@Ef1,theta0,thetaB);

Kd2=quadl(@Ef2,thetaB,thetah);

Dd=-2*cot(phi)*(sin(theta0))^2*Kd1...

-2*cot(phi)*exp(2*(thetah-theta0)*tan(phi))*(sin(thetah+betaS))^2*Kd2;

Kp1=quadl(@Hf1,theta0,thetaB);

Kp2=quadl(@Hf2,thetaB,thetah);

Dp=-cot(phi)*(sin(theta0))^2*Kp1...

-cot(phi)*exp(2*(thetah-theta0)*tan(phi))*(sin(thetah+betaS))^2*Kp2;

disp('[Wd1,Wd2,Wp1,Wp2,Kd1,Kd2,Kp1,Kp2]=');

disp([Wd1,Wd2,Wp1,Wp2,Kd1,Kd2,Kp1,Kp2]');

t-5642162-1-pid-2

八个被积函数曲线.jpg

http://www.dt0577.cn/news/15954.html

相关文章:

  • 大型网站建设兴田德润优惠在哪个平台做推广比较好
  • 做任务游戏能赚钱的网站长沙网站推广工具
  • 那个网站可以接做网页私活app网站
  • 公司注销后网站备案吗百度如何精准搜索
  • jsp可以做网站吗网站优化团队
  • 百度收录左侧带图片的网站市场调研的重要性
  • 大连微网站建设收录平台
  • 上海专业网站建设精英网站快速排名案例
  • 网站设计服务要不要交文化事业建设费百度关键词排名怎么查
  • 律师事务所 网站备案索引擎优化 seo
  • 网站开发技术考试题百度购物平台客服电话
  • 做静态网站的参考文献新闻头条国内大事
  • 网站检测器怎么制作自己的个人网站
  • 海淀高端网站建设品牌营销与推广
  • 网站建设期间工作总结网站推广策划思路的内容
  • 购物网站策划建设方案网络营销平台的主要功能
  • 建筑公司加盟分公司网站优化公司开始上班了
  • 网站运营与管理的含义全球搜效果怎么样
  • 黄冈网站建设怎样做电商 入手
  • 精美网站模板下载百度关键词排名工具
  • 怎么利用360域名做网站微商软文大全
  • 网站开源程序网站名查询网址
  • b2b网站建设成本seo软件
  • 英语做美食网站网站排名优化培训课程
  • 页面设计按钮seo培训班 有用吗
  • 客户管理系统哪找优化网站标题和描述的方法
  • 湛江房产网seo销售
  • 大型网站建设推广女孩子做运营是不是压力很大
  • 做业务员找数据的网站友情链接搜读
  • 外贸网站 测速在线智能识图