Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.547.551 Times

Simpson's 1/3 and 3/8 rules 1.0

  Date Added: July 13, 2013  |  Visits: 216

Simpson's 1/3 and 3/8 rules

Report Broken Link
Printer Friendly Version

Product Homepage
Download (18 downloads)

SIMPSON: Simpson's rule for quadratic and cubic numerical integrationRES = SIMPSON(Y) computes an approximation of the integral of Y via Simpson's 1/3 rule (with unit spacing). Simpson's 1/3 rule uses quadratic interpolants for numerical integration. To compute the integral for spacing different from one, multiply RES by the spacing increment. For vectors, SIMPSON(Y) is the integral of Y. For matrices, SIMPSON(Y) is a row vector with the integral over each column. For N-D arrays, SIMPSON(Y) works across the first non-singleton dimension. RES = SIMPSON(X,Y) computes the integral of Y with respect to X using Simpson's 1/3 rule. X and Y must be vectors of the same length, or X must be a column vector and Y an array whose first non-singleton dimension is length(X). SIMPSON operates along this dimension. Note that X must be equally spaced for proper execution of the 1/3 and 3/8 rules. If X is not equally spaced, the trapezoid rule (MATLAB's TRAPZ) is recommended. RES = SIMPSON(X,Y,DIM) or SIMPSON(Y,DIM) integrates across dimension DIM of Y. The length of X must be the same as size(Y,DIM)). RES = SIMPSON(X,Y,DIM,RULE) can be used to toggle between Simpson's 1/3 rule and Simpson's 3/8 rule. Simpson's 3/8 rule uses cubic interpolants to accomplish the numerical integration. If the default value for DIM is desired, assign an empty matrix. - RULE options [DEFAULT] '1/3' Simpson's rule for quadratic interpolants '3/8' Simpson's rule for cubic interpolants Examples: % Integrate Y = SIN(X) x = 0:0.2:pi; y = sin(x); a = sum(y)*0.2; % Rectangle rule b = trapz(x,y); % Trapezoid rule c = simpson(x,y,[],'1/3'); % Simpson's 1/3 rule d = simpson(x,y,[],'3/8'); % Simpson's 3/8 rule e = cos(x(1))-cos(x(end)); % Actual integral fprintf('Rectangle Rule: %.15fn', a) fprintf('Trapezoid Rule: %.15fn', b) fprintf('Simpson''s 1/3 Rule: %.15fn', c) fprintf('Simpson''s 3/8 Rule: %.15fn', d) fprintf('Actual Integral: %.15fn', e) % x1 = linspace(0,2,4); x2 = linspace(0,2,7); x4 = linspace(0,2,13); y = @(x) 2+cos(2*sqrt(x)); format long y1 = y(x1); res1 = simpson(x1,y1,[],'3/8'); disp(res1) y2 = y(x2); res2 = simpson(x2,y2,[],'3/8'); disp(res2) y4 = y(x4); res4 = simpson(x4,y4,[],'3/8'); disp(res4) Class support for inputs X, Y: float: double, single See also sum, cumsum, trapz, cumtrapz.

Requirements: No special requirements
Platforms: Matlab
Keyword: 002pi Actual Cosx Cosxend Fprintfrectangle Integrate Rectangle Simpsonxy Sumy Trapezoid Trapzxy
Users rating: 0/10

License: Shareware Size: 10 KB
More Reviews or Write Review

Education  -  PocketGeometryAD
Simple and easy to use geometry app that you can carry in your pocket! Calculate the perimeter, area, surface or volume of various geometric shapes. Shapes includes 2D (square, rectangle, circle, triangle, trapezoid, parallelogram) and...
1024 KB  
Graphics Editors  -  JFDraw 1. 8. 2000
JFDraw is a pure Java based graphics application and library package. JFDraw used a little features of Java2D, and expanded a lot of graph routines for more complex vector graph processing. You can run JFDraw under any operating systems that...
516 KB  
Education  -  HexagonApp 1.0
HexagonApp A game to teach children colors and shapes. It has taught my 4 year old niece, who's is the voice in the game, her shapes. She already knew her colors. To use you set if you want to do colors, shapes or colors and shapes....
5.9 MB  
Networking  -  ClickTale Customer Experience Analytics Integration 1.0
Integrate ClickTale Customer Experience Analytics into your blog. Get free ClickTale account. Watch actual browsing behavior. Optimize website usabillity. Boost conversion rates. More...Integrate ClickTale Customer Experience Analytics into your...
10 KB  
Advanced HTML Editors  -  Actual Drawing 7.3
Actual Drawing is a visual publishing tool that helps you make Web pages without having to know HTML, allowing you to drag and drop page content. The program has its own image manipulation tools so you don't need to use a third-party image editor...
6.48 MB  
Personal Information Managers  -  Actual Planner 2.0.1
Actual Planner is a powerful electronic organizer. Actual Planner allows you to schedule tasks, generate your personal schedule, maintain your address book, keep your blog and a whole lot more. Actual Planner is a program for active,...
5.7 MB  
Libraries  -  Gtk2::Ex::MindMapView::Border::Rectangle 0.000001
Gtk2::Ex::MindMapView::Border::Rectangle si a Perl module to create a rectangular border. HEIRARCHY Gtk2::Ex::MindMapView::Border +----Gtk2::Ex::MindMapView::Border::Rectangle SYNOPSIS use Gtk2::Ex::MindMapView::Border::Rectangle; This...
50.18 KB  
Libraries  -  Math::Zap::Rectangle 1.07
Math::Zap::Rectangle is a Perl module that generates rectangles in 3d space. Synopsis Example t/rectangle.t #_ Rectangle __________________________________________________________ # Test 3d rectangles #, 2004, Perl...
63.49 KB  
Finance  -  EFM: plan / actual analysis 2.4
EFM: plan / actual analysis is a simple tool designed for financial planning and business management of an enterprise on the basis of approved budgets which will help user not only to perform comparison of obtained results with planned values but...
5.81 MB  
Modules  -  Actual Attribute Price 1.0
Actual Attribute Price is designed for those of us who would rather use a product attributes actual price rather than use a calculator to figure out the option priceExample:--------Tire APrice: $84.99Options: Size 1Size 2 ($89.99)Size 3...
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]...
768 KB  
Development Tools  -  IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the Model-View-Controller (MVC) pattern. It provides the basic functionality developers need, without...
51.2 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB  
Development Tools  -  Barnardextest 1.0
This file, as the Fisher's exact test, performs the exact probability test for a table of frequency data cross-classified according to two categorical variables, each of which has two levels or subcategories (2x2). It is a non-parametric...
10 KB