登录
首页 » matlab » gravity

gravity

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

  • guiyihua
    这是对一维时间序列进行归一化计算的matlab程序(This is the one-dimensional time series to a calculation procedure of Matlab)
    2006-10-27 10:56:31下载
    积分:1
  • JiLinUniversity-matlab
    吉林大学matlab教程,里面都是些常用的方法介绍,适合英语不好想学习matlab的初学者(Jilin University matlab tutorial, there are some commonly used methods of introduction, English is not good for the beginner want to learn matlab)
    2011-08-14 17:32:12下载
    积分:1
  • GMVC
    提供了广义最小方差控制的MATLAB程序,以及基于广义最小方差控制的自校正控制直接与间接算法的MATLAB程序。(Provides a generalized minimum variance control of MATLAB procedures, and direct and indirect algorithm of self-tuning control based on generalized minimum variance control.)
    2013-08-27 19:07:14下载
    积分:1
  • matlab-examples
    matlab 实例若干,初学者好好看看,非常不错哦。涉及了多个练习内容(matlab examples)
    2015-04-08 10:52:25下载
    积分:1
  • STO_E
    simulator of STO estimation in OFDM sysmtem
    2014-01-28 12:09:44下载
    积分:1
  • i_dp2xy
    Calculate chromaticity from dominating wavelength and spectral purity.
    2012-07-13 10:52:32下载
    积分:1
  • GA1
    基于遗传算算法的动态寻优算法,对于微小变化的环境很实用。(Based on the genetic algorithm is the dynamic optimum algorithm, for a small change environment is very practical.)
    2012-11-21 22:43:29下载
    积分:1
  • fem.2.1
    采用有限元法求解一维、二维抛物型方程,matlab编程(FEM for 1-D,2—D parabolic equation)
    2021-03-28 22:09:11下载
    积分:1
  • m_function
    产生了PN序列,并通过仿真检测了他的自相关特性。(generate the PN sequency an simulate the auto-correlation property.)
    2009-10-29 10:52:29下载
    积分:1
  • The-Mathematical-modeling-algorithm
    数学建模算法全收录,各种算法均有详细说明以及相应的代码(Mathematical modeling algorithm , various algorithms have described in detail and the corresponding code)
    2013-05-18 01:37:34下载
    积分:1
  • 696518资源总数
  • 106148会员总数
  • 10今日下载