当前位置:网站首页>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.
边栏推荐
- Openlayers customize bubble boxes and navigate to bubble boxes
- Relationship between sensor size, pixel, dpi resolution, inch and millimeter
- Blackwich: the roadmap of decarbonization is the first step to realize the equitable energy transformation in Asia
- Penetration practice vulnhub range Tornado
- SPIE Western optoelectronics exhibition returned offline and successfully held a science and engineering event
- Code example of libcurl download file
- In depth evaluation and development trend prediction report of China's ice cream market (2022 Edition)
- Heavy disclosure! Hundreds of important information systems have been invaded, and the host has become a key attack target
- Pyqt5, draw a histogram on the control
- Petrv2: a unified framework for 3D perception of multi camera images
猜你喜欢
![[PHP foundation] realize the connection between PHP and SQL database](/img/eb/c8953eddfe3b19b0adb5529957d275.jpg)
[PHP foundation] realize the connection between PHP and SQL database

From comedians to NBA Zhan Huang, check the encrypted advertisements during this super bowl

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

June issue | antdb database participated in the preparation of the "Database Development Research Report" and appeared on the list of information technology and entrepreneurship industries

Source code of new campus errand / campus task platform on mutual station

Check log4j problems using stain analysis
Roewe rx5's "a little more" product strategy

Domestic spot silver should be understood

How to use JMeter function and mockjs function in metersphere interface test

What are the legal risks of NFT brought by stars such as curry and O'Neill?
随机推荐
Is it safe to open a stock account by mobile phone? What do you need to bring with you to open an account?
Countdownlatch blocking wait for multithreading concurrency
Product service, operation characteristics
[Verilog quick start of Niuke network question brushing series] ~ priority encoder circuit ①
[C supplement] [string] display the schedule of a month by date
Relationship between sensor size, pixel, dpi resolution, inch and millimeter
How to use JMeter function and mockjs function in metersphere interface test
Kia recalls some K3 new energy with potential safety hazards
DRF --- response rewrite
【Try to Hack】vulnhub DC4
Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)
Is it safe to open an ETF account online? What are the steps?
Is online stock account opening safe? Is it reliable?
Work and leisure suggestions of old programmers
How to write good code - Defensive Programming Guide
手机开户股票开户安全吗?那么开户需要带些什么?
Alibaba cloud Li Feifei: China's cloud database has taken the lead in many mainstream technological innovations abroad
Easycvr accesses the equipment through the national standard gb28181 protocol. What is the reason for the automatic streaming of the equipment?
What are the legal risks of NFT brought by stars such as curry and O'Neill?
From comedians to NBA Zhan Huang, check the encrypted advertisements during this super bowl