登录
首页 » matlab » gravity

gravity

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

  • iscircle
    basic matlab program
    2012-07-11 12:54:23下载
    积分:1
  • testface
    基于K-L展开的人脸检测matlab程序,采用K-L展开对图片主成分分析、多图训练,从而达到在复杂图片中检测人脸的功能。(KL expansion based on face detection matlab program, using KL expansion of the picture principal component analysis, multi-map training, so as to achieve a complex picture face detection function.)
    2013-11-16 20:55:25下载
    积分:1
  • osggeo_svn
    development package based OpenSceneGraphics libary for Geology.
    2015-06-24 11:46:23下载
    积分:1
  • DE
    说明:  Differential Evolution Algorithms
    2010-05-16 00:33:52下载
    积分:1
  • music2
    阵列信号处理_空间谱估计原理的一些基本算法——MusicEspritMp(Array signal processing _ the principle of spatial spectrum estimation of some of the basic algorithm- MusicEspritMp)
    2007-08-10 20:27:25下载
    积分:1
  • scale_free
    生成无标度序列,可以设定网络节点数及最小度数,画出了P(k)图,理解较容易。(Generate scale-free sequence, you can set the network nodes and the smallest degree, to draw the P (k) maps to understand more easily.)
    2011-08-03 09:16:16下载
    积分:1
  • LevelSet_CV
    一种改进的基于C-V模型的水平集分割算法,附有程序和图像源数据,分割方法较好(An improved model based on C-V level set segmentation algorithm, a program and image data source, segmentation method is good)
    2011-12-29 21:52:10下载
    积分:1
  • Untitled
    超短脉冲对光学元件的热分布研究,在第j个高斯脉冲打上去之后,元件表明的温度分布情况(The temperature distribution of the heat distribution of ultrashort pulses of optical components, after the j-th Gaussian pulse beat up, elements indicated)
    2015-04-22 23:30:36下载
    积分:1
  • dfe-lms
    This program allows the application of the Decision Feedback equalizer by lms adaptive algorithm
    2021-03-03 09:39:33下载
    积分:1
  • function2
    Defining the plot Function for the DocPolynom Class The MATLAB plot function creates line graphs. The overloaded plot function selects the domain of the independent variable to be slightly larger than an interval containing all real roots. Then the polyval method is used to evaluate the polynomial at a few hundred points in the domain:
    2011-02-12 00:08:24下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 42今日下载