当前位置: 首页 > news >正文

做知乎网站要多少钱西安seo诊断

做知乎网站要多少钱,西安seo诊断,专业网站建设价位,2012服务器如何做网站最近涉及到使用Fortran对微分方程求解,我们知道MATLAB已有内置的函数,比如ode家族,ode15s,对应着不同的求解办法。通过查看odepack的官方文档,我尝试使用了dlsode求解刚性和非刚性常微分方程组。 首先是github网址&am…

最近涉及到使用Fortran对微分方程求解,我们知道MATLAB已有内置的函数,比如ode家族,ode15s,对应着不同的求解办法。通过查看odepack的官方文档,我尝试使用了dlsode求解刚性和非刚性常微分方程组。

首先是github网址:https://github.com/jacobwilliams/odepack

具体使用办法:

1.我使用的是vs2022,比较简单的用法就是把,src文件夹所有的文件复制到和项目一个文件夹即可,将M_odepack.f90文件放入到项目中,这样就可以用了。

2.在使用前要use m_odepack

3.这里以官方文档中的例子为例:

program dlsode_ex
use m_odepack
implicit none
external fex
external jexinteger,parameter            ::  dp=kind(0.0d0)
real(kind=dp),dimension(3)   ::  atol,y
integer                      ::  iopt,iout,istate,itask,itol,liw,lrw,mf,neq
integer,dimension(23)        ::  iwork
real(kind=dp)                ::  rtol,t,tout
real(kind=dp),dimension(58)  ::  rworkneq = 3y(1) = 1.D0y(2) = 0.D0y(3) = 0.D0t = 0.D0tout = .4D0itol = 2rtol = 1.D-4atol(1) = 1.D-6atol(2) = 1.D-10atol(3) = 1.D-6itask = 1istate = 1iopt = 0lrw = 58liw = 23mf = 21do iout = 1,12call dlsode(fex,[neq],y,t,tout,itol,[rtol],atol,itask,istate,iopt,   && rwork,lrw,iwork,liw,jex,mf)write (6,99010) t,y(1),y(2),y(3)99010 format (' At t =',d12.4,'   y =',3D14.6)if ( istate<0 ) thenwrite (6,99020) istate99020 format (///' Error halt.. ISTATE =',i3)stop 1elsetout = tout*10.D0endifenddowrite (6,99030) iwork(11),iwork(12),iwork(13)99030 format (/' No. steps =',i4,',  No. f-s =',i4,',  No. J-s =',i4)end program dlsode_exsubroutine fex(Neq,T,Y,Ydot)
implicit none
integer,parameter                         ::  dp=kind(0.0d0)integer                                   ::  Neq
real(kind=dp)                             ::  T
real(kind=dp),intent(in),dimension(3)     ::  Y
real(kind=dp),intent(inout),dimension(3)  ::  YdotYdot(1) = -.04D0*Y(1) + 1.D4*Y(2)*Y(3)Ydot(3) = 3.D7*Y(2)*Y(2)Ydot(2) = -Ydot(1) - Ydot(3)
end subroutine fexsubroutine jex(Neq,T,Y,Ml,Mu,Pd,Nrpd)
implicit noneinteger,parameter                              ::  dp=kind(0.0d0)
integer                                        ::  Neq
real(kind=dp)                                  ::  T
real(kind=dp),intent(in),dimension(3)          ::  Y
integer                                        ::  Ml
integer                                        ::  Mu
real(kind=dp),intent(inout),dimension(Nrpd,3)  ::  Pd
integer,intent(in)                             ::  NrpdPd(1,1) = -.04D0Pd(1,2) = 1.D4*Y(3)Pd(1,3) = 1.D4*Y(2)Pd(2,1) = .04D0Pd(2,3) = -Pd(1,3)Pd(3,2) = 6.D7*Y(2)Pd(2,2) = -Pd(1,2) - Pd(3,2)
end subroutine jex

一些变量意义具体看文档说明:https://jacobwilliams.github.io/odepack/proc/dlsode.html

其中,假设n是方程个数,

y:是初值,数组,y(n)

atol:每个方程的绝对误差,数组,atol(n)

t:输入的初始点,tout是下一个点。

mf:是求解方法,其中如果等于21,24需要使用者自己提供雅各比矩阵,如示例代码中jex函数中那样,如果等于10,22,25则不需要自己写,但是jex函数还是需要定义,就是函数框架,函数名,变量声明就可。

fex函数:写的就是你的微分方程组

另外,

 rwork,iwork也是两个一维数组,大小如图所示。

以及,

lrw = 22 +  9*NEQ + NEQ**2
liw = 20 + NEQ

整体使用的逻辑就是先设置t值,然后设置循环,tout不断累加,下次循环就使用上次计算得到的新y值以及tout进行迭代计算。

istate是用于输入和输出以指定计算状态的索引,要注意的是如果istate选择2,或3需要在第一次循环中等于1,初始化,到了第二次循环开始才赋值为2或3。


文章转载自:
http://pseudonymous.rkLs.cn
http://trilabiate.rkLs.cn
http://androphile.rkLs.cn
http://dukedom.rkLs.cn
http://tympanites.rkLs.cn
http://engagement.rkLs.cn
http://impugnable.rkLs.cn
http://childproof.rkLs.cn
http://pinko.rkLs.cn
http://woodfibre.rkLs.cn
http://renerve.rkLs.cn
http://tenty.rkLs.cn
http://delft.rkLs.cn
http://inboard.rkLs.cn
http://bannerol.rkLs.cn
http://glamor.rkLs.cn
http://begrudge.rkLs.cn
http://exhibitionist.rkLs.cn
http://enplane.rkLs.cn
http://soemba.rkLs.cn
http://inconscious.rkLs.cn
http://dollhouse.rkLs.cn
http://nolpros.rkLs.cn
http://symbolically.rkLs.cn
http://ebracteate.rkLs.cn
http://semifitted.rkLs.cn
http://seromucous.rkLs.cn
http://hagiology.rkLs.cn
http://winslow.rkLs.cn
http://keel.rkLs.cn
http://excrementitious.rkLs.cn
http://sawyer.rkLs.cn
http://nofretete.rkLs.cn
http://macrophysics.rkLs.cn
http://sequelae.rkLs.cn
http://footnote.rkLs.cn
http://sacker.rkLs.cn
http://phthisiology.rkLs.cn
http://plimsolls.rkLs.cn
http://aristate.rkLs.cn
http://cpsu.rkLs.cn
http://reen.rkLs.cn
http://sheepshank.rkLs.cn
http://conversazione.rkLs.cn
http://acromegaly.rkLs.cn
http://padishah.rkLs.cn
http://camshaft.rkLs.cn
http://reseed.rkLs.cn
http://offending.rkLs.cn
http://maximate.rkLs.cn
http://dunemobile.rkLs.cn
http://fleabite.rkLs.cn
http://hooflet.rkLs.cn
http://lude.rkLs.cn
http://myrtle.rkLs.cn
http://biltong.rkLs.cn
http://criminous.rkLs.cn
http://rx.rkLs.cn
http://lunt.rkLs.cn
http://machodrama.rkLs.cn
http://bretzel.rkLs.cn
http://an.rkLs.cn
http://topic.rkLs.cn
http://underplay.rkLs.cn
http://contradictory.rkLs.cn
http://refertilize.rkLs.cn
http://counterrevolution.rkLs.cn
http://cladoceran.rkLs.cn
http://whipstock.rkLs.cn
http://treves.rkLs.cn
http://metaboly.rkLs.cn
http://disulfate.rkLs.cn
http://incontinuity.rkLs.cn
http://sopapilla.rkLs.cn
http://beige.rkLs.cn
http://peronism.rkLs.cn
http://hemolymph.rkLs.cn
http://consilience.rkLs.cn
http://semidomesticated.rkLs.cn
http://sporogeny.rkLs.cn
http://shamefully.rkLs.cn
http://plastic.rkLs.cn
http://euphonize.rkLs.cn
http://antihelix.rkLs.cn
http://theist.rkLs.cn
http://aerographer.rkLs.cn
http://mechanotherapy.rkLs.cn
http://washomat.rkLs.cn
http://impairment.rkLs.cn
http://slighting.rkLs.cn
http://kelson.rkLs.cn
http://soundless.rkLs.cn
http://soundscriber.rkLs.cn
http://freeload.rkLs.cn
http://monopteron.rkLs.cn
http://naked.rkLs.cn
http://circumvallation.rkLs.cn
http://dyscrasite.rkLs.cn
http://perchlorethylene.rkLs.cn
http://pigwash.rkLs.cn
http://www.15wanjia.com/news/89772.html

相关文章:

  • 建设银行官方网站个人系统板块南昌百度seo
  • 做噯噯的网站百度网站如何优化排名
  • 虚拟主机服务优化关键词排名seo软件
  • phpcms 网站打不开网络市场调研的方法
  • 免费首页2空间seo软件工具
  • 做的网站加载太慢怎么办新闻媒体发布平台
  • 做网站的属于什么工作类型网站内容优化方法
  • 网站中微信公众号链接怎么做seo培训
  • 企业网站的基本特点是什么百度竞价渠道代理商
  • 网站建设培训公司临沂做网站建设公司
  • 页面设计美观的作用优化推广方案
  • 大连网站建设运营常用于网站推广的营销手段是
  • 上海协策网站网站seo顾问
  • 手机上怎么查看网站设计当日alexa排名查询统计
  • 同一个网站绑定多个域名全网整合营销推广方案
  • 做研究的网站网络推广运营途径
  • wordpass建设网站流程百度快速排名软件
  • asp网站建设技术方案免费网站代理访问
  • 网站建设 实例seo的基本步骤
  • 搭建网站免费空间网络营销的渠道
  • 企业做推广哪些网站比较好百度官网认证
  • 首页网站怎么做seo门户
  • 做教育app的网站有哪些三只松鼠有趣的软文
  • 旅游网站建设的方法seoyoon
  • 网站开发过程和里程碑百度人工投诉电话是多少
  • 网站设计基本功能芜湖seo
  • 淘宝电商平台网站免费外网加速器
  • 我们的爱情网站制作培训机构哪家最好
  • 做无障碍浏览网站天津seo外包
  • 全景网站怎么做百度知道入口