登录
首页 » matlab » gravity

gravity

于 2013-03-20 发布 文件大小:284KB
0 196
下载积分: 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 个回复

  • Mr-Ghasemi
    this file is for restructure
    2012-10-28 19:50:00下载
    积分:1
  • LINESEARCH
    Line Search using different type of functions. This is useful for Nonlinear programming.
    2010-07-19 13:12:56下载
    积分:1
  • partA
    number of symbols to be generated
    2009-04-11 12:16:50下载
    积分:1
  • PCA
    说明:  基于主成分分析(PCA)的人脸识别系统。(Based on principal component analysis (PCA) of face recognition systems.)
    2010-03-27 22:13:10下载
    积分:1
  • 91331913daqwaterfall
    一个关于瀑布图的matlab源程序,该程序尽供学习与研究使用(A waterfall chart matlab source code, the program do for learning and research use.)
    2012-08-27 22:14:42下载
    积分:1
  • spxy
    说明:  spxy,用于校正集验证集划分,基于X、Y矩阵的校正集及验证的划分(Correction set verification set partition)
    2019-05-25 20:11:17下载
    积分:1
  • Matlab_toobox
    matlab的工具箱,对于学习matlab有很大的帮助,很多很全~(matlab toolbox, matlab for learning a great help, a lot of very full ~)
    2010-11-18 20:47:31下载
    积分:1
  • ThreeWJ
    三次样条曲线,可以根据不同条件进行选择,包括边界条件等(Cubic spline curve can be selected according to different conditions)
    2012-06-14 20:12:54下载
    积分:1
  • SVM-KMtoolbox
    svm-km支持向量机工具箱,特点是他们能够同时最小化经验误差与最大化几何边缘区.因此支持向量机也被称为最大边缘区分类器.(svm-km SVM Toolbox, is characterized by experience that they can while minimizing errors and maximizing geometric border zone. therefore support vector machine is also known as the maximum marginal zone classification.)
    2013-09-04 19:37:13下载
    积分:1
  • MATLAB
    学习用MATLAB进行数字信号处理的源码(The source of learning to use MATLAB for digital signal processing )
    2009-10-10 11:07:59下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载