登录
首页 » matlab » gravity

gravity

于 2013-03-20 发布 文件大小:284KB
0 219
下载积分: 1 下载次数: 11

代码说明:

  function dg=gplus(x,y,z,x1,x2,y1,y2,z1,z2,p) G=6.67e-11 t222=myfun(x,y,z,x2,y2,z2) t122=myfun(x,y,z,x1,y2,z2) t212=myfun(x,y,z,x2,y1,z2) t221=myfun(x,y,z,x2,y2,z1) t211=myfun(x,y,z,x2,y1,z1) t121=myfun(x,y,z,x1,y2,z1) t112=myfun(x,y,z,x1,y1,z2) t111=myfun(x,y,z,x1,y1,z1) dg=-G*p*1e6*(t222-t122-t212-t221+t211+t121+t112-t111) 转化为g.u. function y=myfun(x,y,z,xi,eta,zeta) R=sqrt((xi-x).^2+(eta-y).^2+(zeta-z).^2) temp1=(xi-x).*log((eta-y)+R) temp2=(eta-y).*log((xi-x)+R) temp3=(zeta-z).*atan((zeta-z).*R/((xi-x).*(eta-y))) 书中所给公式 temp3=-(zeta-z).*atan((xi-x).*(eta-y)./(zeta-z)./R) 上式变换 y=temp1+temp2+temp3 (function dg = gplus (x, y, z, x1, x2, y1, y2, z1, z2, p) G = 6.67e-11 t222 = myfun (x, y, z, x2, y2, z2) t122 = myfun (x, y, z, x1, y2, z2) t212 = myfun (x, y, z, x2, y1, z2) t221 = myfun (x, y, z, x2, y2, z1) t211 = myfun (x, y, z, x2, y1, z1) t121 = myfun (x, y, z, x1, y2, z1) t112 = myfun (x, y, z, x1, y1, z2) t111 = myfun (x, y, z, x1, y1, z1) dg =-G* p* 1e6* (t222-t122-t212-t221+t211+t121+t112-t111) converted the Gu function y = myfun, (x y, z, xi, eta, zeta) R = sqrt ((xi-x). ^ 2+ (eta-y). ^ 2+ (zeta-z). ^ 2) temp1 = (xi-x).* log ((eta-y)+R) temp2 = (eta-y).* log ((xi-x)+R) temp3 = (zeta-z).* atan ((zeta-z).* R/( (xi-x).* (eta-y))) book given formula Temp3 =- (Zeta-z)* ATAN ((Xi-X)* (ETA-y)/(Zeta- Z)/R) the above formula transform Y = temp1+temp2+temp3 )

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • jacobi-matlab
    jacobi算法,看看能用不,我测试是能用的,希望大家也能用上!(jacobi algorithm, can not see, I can test, and I hope we all can be on!)
    2009-06-11 17:05:04下载
    积分:1
  • pnet_remote
    实现数字编码的matlab小实验。在matlab上调试通过(Matlab digital encoding small experiments. Debugging through the matlab)
    2010-03-15 17:20:32下载
    积分:1
  • Matlab
    matlab图像处理常用函数,详细列表及格式,举例(matlab image processing function)
    2010-06-01 12:12:55下载
    积分:1
  • Electromagnetic-Metamaterials-Transmission-Line-T
    Electromagnetic Metamaterials Transmission Line Theory and Microwave Applications
    2012-06-02 21:15:53下载
    积分:1
  • double
    一个用matlab编写的用公式算法解决微波网络中的双支节匹配的问题(An equation using matlab algorithm to solve microwave network using the double-stub matching problem)
    2013-10-28 12:52:14下载
    积分:1
  • low_pass_all
    各种窗函数的matlab仿真,包括三角窗,矩形窗,海明窗,汉宁窗等(matlab simulation of all kinds of window function)
    2013-04-25 09:37:01下载
    积分:1
  • yang
    自适应波束形成MATLAB算法编程,采用最小均方差优化准则(beam forming matlab codes)
    2013-04-27 17:31:33下载
    积分:1
  • BP-YYSB
    使用BP算法实现语音识别及预测的功能,调试可用(BP algorithm to achieve the function of speech recognition and forecast)
    2012-05-18 22:16:12下载
    积分:1
  • indoorlagrange
    This code uses lagrange interation to calculte user s position in indoor case.
    2011-07-21 00:06:13下载
    积分:1
  • MatLab.7.Programming
    MATLAB 7电子教程,英文。不可多得的学习资料,学习自控的必备工具书(MATLAB 7 e-tutorials and English. The rare learning materials, learning self-control essential tool for the book)
    2009-10-16 15:18:24下载
    积分:1
  • 696518资源总数
  • 106222会员总数
  • 14今日下载