How do I code normalized global errors in Matlab?
1 view (last 30 days)
Show older comments
If I is defined to be a discrete approximation to the global integral then
I(h)=\frac{1}{4\pi} \int_{0}^{2\pi}\int_{-\frac{\pi}{2}}^{\frac{\pi}{2}}h(\lambda,\theta)\cos{\theta} {d\theta} d\lambda
I need help on how to write a Matlab code for the following normalized global errors:
l_{1}(h)=\frac{I[|h(\lambda, \theta)-h_{T}(\lambda, \theta)|]}{I[|h_{T}(\lambda, \theta)|]}
l_{2}(h)=\frac{\{I[(h(\lambda, \theta)-h_{T}(\lambda, \theta))^2]\}^{1/2}}{\{I[h_{T}(\lambda, \theta)^2]\}^{1/2}}
l_{\infin}(h)=\frac{\max_{all\lambda,\theta}|h(\lambda, \theta)-h_{T}(\lambda, \theta)|}{\max_{all\lambda,\theta}|h_{T}(\lambda, \theta)|}
where h_{T} is the true solution.
0 Comments
Answers (0)
See Also
Categories
Find more on Multidimensional Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!