当前位置:网站首页>Step size of ode45 and reltol abstol
Step size of ode45 and reltol abstol
2022-07-01 18:04:00 【Feisy】
The stepsize of ode45 is not constant, but chosen such that the error tolerances you prescribe are met. Thus mean step size can only be controlled indirectly by strengthening (-> smaller stepsize) or weakening (-> larger stepsize) the error tolerances RelTol and AbsTol.
RelTol Is the relative accuracy tolerance , Used to control the correct number of digits in the calculated answer .AbsTol Is the absolute error tolerance , Used to control the difference between the calculated answer and the actual solution . In each step , Solution component i The error in e Will satisfy
|e(i)| ≤ max(RelTol*abs(y(i)),AbsTol(i))
Roughly speaking , This means that you want RelTol Correct the number of digits in all solution components ( But less than the threshold AbsTol(i) Except for the solution component of ). When the weight y(i) Very hour , Even if you are not interested in this weight , You must still specify a small enough AbsTol(i) value , In order to obtain y(i) Some correct digits in , So as to accurately calculate the components you are more interested in .
At each step, the solver estimates the local error e in the ith component of the solution. This error must be less than or equal to the acceptable error, which is a function of the specified relative tolerance, RelTol, and the specified absolute tolerance, AbsTol.
|e(i)| ≤ max(RelTol*abs(y(i)),AbsTol(i))
For relative accuracy, adjust RelTol. For the absolute error tolerance, the scaling of the solution components is important: if |y| is somewhat smaller than AbsTol, the solver is not constrained to obtain any correct digits in y. You might have to solve a problem more than once to discover the scale of solution components.
Roughly speaking, this means that you want RelTol correct digits in all solution components except those smaller than thresholds AbsTol(i). Even if you are not interested in a component y(i) when it is small, you may have to specify AbsTol(i) small enough to get some correct digits in y(i) so that you can accurately compute more interesting components.
边栏推荐
- Petrv2: a unified framework for 3D perception of multi camera images
- JDBC: deep understanding of Preparedstatement and statement[easy to understand]
- About selenium element positioning being overwritten
- This is the latest opportunity of the London bank trend
- Penetration practice vulnhub range Tornado
- Why should you consider using prism
- The new server is packaged with the source code of H5 mall with an operation level value of several thousand
- 股票万1免5证券开户是合理安全的吗,怎么讲
- Development cost of smart factory management system software platform
- Domestic spot silver should be understood
猜你喜欢
New 95 community system whole station source code
Oracle TRUNC function processing date format
ISO 27001 Information Security Management System Certification
Replace UUID, nanoid is faster and safer!
Debiasing word embeddings | talking about word embedding and deviation removal # yyds dry goods inventory #
Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)
Happy new year | 202112 monthly summary
(十六)ADC转换实验
(十七)DAC转换实验
Length of learning and changing
随机推荐
L'ouverture d'un compte d'actions en ligne est - elle sécurisée? Fiable?
线上开通ETF基金账户安全吗?有哪些步骤?
Penetration practice vulnhub range Keyring
Session layer of csframework, server and client (1)
PIP version problems: PIP problems still occur when installing akshare and using Tsinghua source and Douban source
Penetration practice vulnhub range Nemesis
Sword finger offer II 105 Maximum area of the island
EasyCVR设备录像出现无法播放现象的问题修复
Enter wechat applet
Key points on February 15, 2022
Gold, silver and four job hopping, interview questions are prepared, and Ali becomes the champion
Function, condition, regular expression
[PHP foundation] realize the connection between PHP and SQL database
February 16, 2022 Daily: graph neural network self training method under distribution and migration
China acetonitrile market forecast and strategic consulting research report (2022 Edition)
Intel's open source deep learning tool library openvino will increase cooperation with local software and hardware parties and continue to open
The latest software scheme of the intelligent information management system of the armed police force
Zabbix报警执行远程命令
New 95 community system whole station source code
transform. Forward and vector3 Differences in the use of forward