0% found this document useful (0 votes)
29 views3 pages

Command Window Butcher

This document defines a function and performs numerical integration over 40 intervals from 0 to 2 using an initial value of 0.5. It outputs the time and value columns.

Uploaded by

Hasna Labibah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views3 pages

Command Window Butcher

This document defines a function and performs numerical integration over 40 intervals from 0 to 2 using an initial value of 0.5. It outputs the time and value columns.

Uploaded by

Hasna Labibah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

fungsi =

@(t,y)y-(t^2)+1

a=

b=

n=

40

y0 =

0.5000

t=

Columns 1 through 14
0 0.0500 0.1000 0.1500 0.2000 0.2500 0.3000 0.3500 0.4000 0.4500 0.5000
0.5500 0.6000 0.6500

Columns 15 through 28

0.7000 0.7500 0.8000 0.8500 0.9000 0.9500 1.0000 1.0500 1.1000 1.1500 1.2000
1.2500 1.3000 1.3500

Columns 29 through 40

1.4000 1.4500 1.5000 1.5500 1.6000 1.6500 1.7000 1.7500 1.8000 1.8500 1.9000
1.9500

y=

1.0e+029 *

Columns 1 through 14

0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
0.0000 0.0000 0.0000

Columns 15 through 28

0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
0.0000 0.0000 0.0000

Columns 29 through 41
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0003 0.0013 0.0071 0.0371
0.1952 1.0265

ans =

Columns 1 through 14

0 0.0500 0.1000 0.1500 0.2000 0.2500 0.3000 0.3500 0.4000 0.4500 0.5000
0.5500 0.6000 0.6500

Columns 15 through 28

0.7000 0.7500 0.8000 0.8500 0.9000 0.9500 1.0000 1.0500 1.1000 1.1500 1.2000
1.2500 1.3000 1.3500

Columns 29 through 40

1.4000 1.4500 1.5000 1.5500 1.6000 1.6500 1.7000 1.7500 1.8000 1.8500 1.9000
1.9500

You might also like