登录
首页 » matlab » gravity

gravity

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

  • stft_cf
    A matlab function that calculates the short term Fourier transform with adjustable parameters.
    2009-09-26 04:18:48下载
    积分:1
  • RSA-Encode-and-Decode
    说明:  本软件利用matlab开发的一个具有交互界面的软件,主要功能为RSA的加密、解密功能,简单易懂,富有详细代码(This software is developed using a matlab interface software, the main function for the RSA encryption and decryption functions, easy to understand, full of detailed code)
    2011-03-25 10:56:19下载
    积分:1
  • gecp
    calculate Gauss elimination with complete pivoting
    2012-02-14 06:38:42下载
    积分:1
  • uvw
    UVW caluculation of wind vector In RADAR
    2014-01-03 02:02:56下载
    积分:1
  • simulink
    2017年数学建模美赛B题模型,关于处理交通流的元胞自动机问题( 2017 mathematical modeling contest B problem model,Cellular automata for traffic flow )
    2017-01-21 20:10:32下载
    积分:1
  • radar-imaging
    关于雷达成像的一个经典参考资料,很有价值(On radar imaging of a classic reference)
    2010-07-12 16:29:07下载
    积分:1
  • fantao_v70
    GSM中GMSK调制信号的产生,对信号进行频谱分析及滤波,匹配追踪和正交匹配追踪。( GSM is GMSK modulation signal generation, The signal spectral analysis and filtering, Matching Pursuit and orthogonal matching pursuit.)
    2020-11-28 19:39:29下载
    积分:1
  • aber3_data_opt_sys
    上传个东西太费劲了 用MATLAB写的一段相差程序(about optical abrration )
    2010-07-05 23:17:43下载
    积分:1
  • MIMOwithZeroForcing
    MIMO with Zero Forcing Successive Interference Cancellation equalizer
    2010-08-24 20:25:37下载
    积分:1
  • ga_tsp530
    matlab 解决免疫问题这个很好用很清楚很明白(matlab)
    2010-12-29 22:27:52下载
    积分:1
  • 696516资源总数
  • 106611会员总数
  • 19今日下载