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

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

Serving Software Downloads in 956 Categories, Downloaded 50.220.146 Times

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

  Date Added: July 13, 2013  |  Visits: 428

Simpson's 1/3 and 3/8 rules

Report Broken Link
Printer Friendly Version


Product Homepage
Download (43 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) % http://math.fullerton.edu/mathews/n2003/simpson38rule/Simpson38RuleMod/Links/Simpson38RuleMod_lnk_2.html 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
USER REVIEWS
More Reviews or Write Review


SIMPSON'S 1/3 AND 3/8 RULES RELATED
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 # philiprbrenan@yahoo.com, 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...
 
Development Tools  -  rectangle drawing 1.0
Simple function for drawing a rectangle in a gray image. Good for beginners.
10 KB  
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  
Shell Enhancements  -  Actual Title Buttons 7.5
Actual Title Buttons is a suite of the most essential and popular tools for desktop windows control and manipulation: minimize them to tray, set up priority, apply transparency, make them stay always-on-top of other windows, align, resize, roll up...
7.23 MB  
HTML Utilities  -  Actual Web Album 1.0
Actual Web Album allows you to create a professional gallery without writing a single line of code. Actual Web Album automatically generates high quality thumbnail images, modifies images and generates HTML pages. You can fine tune images and HTML...
1.24 MB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
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  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
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