├── LICENCE └── README.md /LICENCE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Hazrat Ali 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ✈ Hazrat Ali 2 | 3 | # 🚢 Programmer || Software Engineering 4 | 5 | # Matlab 6 | 7 | # Eular Method : Number 1 8 | 9 | # a=0; 10 | # b=0.1; 11 | # n=5; 12 | # h=(b-a)/n; 13 | # f = @(y,x) x + y; 14 | # xi = @(i) a+i*h; 15 | 16 | # x_not=a; 17 | # y_not=1; 18 | # while xi(x_not) <=b 19 | # y_not+=h*f(xi(x_not),y_not); 20 | # x_not++; 21 | # end; 22 | # printf("%f", y_not); 23 | 24 | # Simpson 3/8 : Number 2 25 | 26 | # clc; 27 | # clear all; 28 | # a=0; 29 | # b=1; 30 | # n=6; %must be an even 31 | # delX=(b-a)/n; 32 | # f=@(x) 1/(1+x^2); 33 | # xi=@(i) a+i*delX; 34 | # sum = f(xi(0))+f(xi(n)); 35 | # i=1; 36 | # while i