Links:
view my trainer profile on TrainerExchange.com Listed on: Dmegs Web Directory

PHP video tutorials

phpmath.com
phpclasses.org
Canadian Mathematical Society
camel.math.ca

Algebra.com
Blogs:
rationalcode.com
Silverlight Playground

Technology:
silverlight.net
XNA Creators Club Online
php
asp.net


Calculating the integral of a given function using PHP.

by Administrator 6. March 2009 10:20

Remember old high school days?

the integral

\int_a^b f(x)\,dx \, ,

is defined informally to be the net signed area of the region in the xy-plane bounded by the graph of ƒ, the x-axis, and the vertical lines x = a and x = b.

This cool PHP script, gets a diagram expression, start and end point for the variable x and calculates the integral of the given expression between start and end points. You'll also get a nice diagram with a graphical representation. You can increase the accuracy of the caclulation by choosing a smaller calculation step from the dropdown menu. Obviously the smaller the step is, the longer the calculation be.

Here is a sample output for f(x)=sqrt(x)*5

Click to try

Try it here. The code is also downloadable from phpclasses.org.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , ,

Algorithms and Data Structures | Mathematics | PHP

Comments are closed

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

Reza Salehi
Microsoft Certified Professional

Microsoft Certified Trainer

Microsoft Certified Professional Developer

Microsoft certiied Technology Specialist (ASP.NET 2.0)

About Me

I started this blog to share my ideas, programs and interesting programming notes. Visitors who are interested in mathematics, physics and astronomy may find my blog interesting.

I live in Toronto, Canada and work as a Senior Software Developer and Microsoft Certified Trainer.

My online Microsoft web page is available  here.  Online business card.

RecentComments

Comment RSS