当前位置:网站首页>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.
边栏推荐
- Glidefast consulting was selected as the elite partner of servicenow in 2022
- Domestic spot silver should be understood
- [beauty detection artifact] come on, please show your unique skill (is this beauty worthy of the audience?)
- Happy new year | 202112 monthly summary
- This is the latest opportunity of the London bank trend
- 2022 Heilongjiang latest fire protection facility operator simulation test question bank and answers
- Report on research and investment prospects of China's silicon nitride ceramic substrate industry (2022 Edition)
- Is online stock account opening safe? Is it reliable?
- ISO 27001 Information Security Management System Certification
- Setting up a time server requires the client to automatically synchronize the time of the server at 9 a.m. every day
猜你喜欢

Yolov5 practice: teach object detection by hand

Samba basic usage

Penetration practice vulnhub range Nemesis
![[splishsplash] about how to receive / display user parameters, MVC mode and genparam on GUI and JSON](/img/83/9bd9ce7608ebfe7207ac008b9e8ab1.png)
[splishsplash] about how to receive / display user parameters, MVC mode and genparam on GUI and JSON

Data warehouse (3) star model and dimension modeling of data warehouse modeling

People help ant help task platform repair source code

Cassette helicopter and alternating electric field magnetic manometer DPC

The method of real-time tracking the current price of London Silver

Cloud picture says | distributed transaction management DTM: the little helper behind "buy buy buy"

New 95 community system whole station source code
随机推荐
網上股票開戶安全嗎?是否可靠?
Technical secrets of ByteDance data platform: implementation and optimization of complex query based on Clickhouse
Detailed explanation of ArrayList expansion
In depth evaluation and development trend prediction report of China's ice cream market (2022 Edition)
Yolov5 practice: teach object detection by hand
The new server is packaged with the source code of H5 mall with an operation level value of several thousand
Rotation order and universal lock of unity panel
[C supplement] [string] display the schedule of a month by date
股票万1免5证券开户是合理安全的吗,怎么讲
Thinkphp6 - CMS multi wechat management system source code
(16) ADC conversion experiment
Easycvr accesses the equipment through the national standard gb28181 protocol. What is the reason for the automatic streaming of the equipment?
At present, where is the most formal and safe account opening for futures speculation? How to open a futures account?
Nearly 60% of the employees strongly support Ctrip's "3+2" working mode, and work at home for two days a week
How to write good code - Defensive Programming Guide
Countdownlatch blocking wait for multithreading concurrency
What are the six steps of the software development process? How to draw software development flow chart?
Smart factory digital management system software platform
Is Huishang futures a regular futures platform? Is it safe to open an account in Huishang futures?
SPIE Western optoelectronics exhibition returned offline and successfully held a science and engineering event