1 / 6

Тема: Вычисление площади криволинейной трапеции способом левых прямоугольников

Тема: Вычисление площади криволинейной трапеции способом левых прямоугольников. Выполнила: ученица 11 «А»класса Штанько Ирина Учитель: Золотарёва В.В. y. y=f (x). a. b. x. 0. y. 2. x. 5. Program trap; var a,b,h,y,x,f: real; n,i: integer; Begin writeln('vvedite a,b,n');

Download Presentation

Тема: Вычисление площади криволинейной трапеции способом левых прямоугольников

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Тема:Вычисление площади криволинейной трапеции способом левых прямоугольников Выполнила: ученица 11 «А»класса Штанько Ирина Учитель: Золотарёва В.В

  2. y y=f (x) a b x 0

  3. y 2 x 5

  4. Program trap; var a,b,h,y,x,f: real; n,i: integer; Begin writeln('vvedite a,b,n'); readln(a,b,n); h:=(b-a)/n; x:=a; For i:=1 to n do begin f:=-x*x+7*x-10; s:=s+f; x:=x+h; end; s:=s*h; writeln(‘n=',n:5,’ s=‘,s:6); readln end. Программа на Паскале.

  5. Вычислительный эксперимент • N=5 S= 3,128 • N=25 S=3,256 • N=100 S=3,798 • N=500 S=3,811 • N=1000 S=3,821

  6. Вывод: • Чем больше n, тем точнее площадь. • Погрешность равна 0,012

More Related