Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a)(10) Correct the given simple script code for Simonumerical integration of fx) given below. Segments must be changes from 1 to 10. Store absolute errors

image text in transcribed
a)(10) Correct the given simple script code for Simonumerical integration of fx) given below. Segments must be changes from 1 to 10. Store absolute errors for each loop in Error vector. OX15) Re-generate the same code which determines the segment number iteration) while absolute error lower than 100 sin(3x dx Corrected Code Answer 4a Original Code for 1-10 point - 2*pi; api b -5pi/2; h = (b-a)/(point) x a2htb; f = sin(3+x); I sims (h/3) + ((1) +4 sum (E (2:2 point- 1))+2sum (f (3:2:point-2)) + f (point)); fe = sin(3x); Q-integral(fe, a,b); Error-abs (Q-I sims) end Answer 4b

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Support For Data Mining Applications Discovering Knowledge With Inductive Queries Lnai 2682

Authors: Rosa Meo ,Pier L. Lanzi ,Mika Klemettinen

2004th Edition

3540224793, 978-3540224792

Students also viewed these Databases questions

Question

9 3 27 2 = 3 n , n =

Answered: 1 week ago