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


"cool math site of the week" !

by Administrator 21. May 2009 07:24

DreamsTube.com has been selected by the "Knot a Braid of Links" project at Camel.
KaBoL is a "cool math site of the week" service to the mathematics
community offered by the Canadian Mathematical Society. It is
available at http://www.camel.math.ca/Kabol/ .

Be the first to rate this post

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

Tags:

Mathematics

Bezier Curves In PHP!

by Administrator 24. March 2009 06:58

If you've worked with graphic softwares like Freehand, you should be familar with the Bezier Curve. 

According to WiKipedia, In the mathematical field of numerical analysis, a Bézier curve is a parametric curve important in computer graphics and related fields. Generalizations of Bézier curves to higher dimensions are called Bézier surfaces, of which the Bézier triangle is a special case.

I used GD graphic library and eval() fucntion is PHP to develop the Bezier class. This class takes the coordinates of 4 points needed for a bezier curve and draws it in an image. This image can be saved like any other web image. You can draw your own Curve by clicking on the following sample image.

The class code can be downloaded from my page in phpclasses.org.

Currently rated 3.0 by 3 people

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

Tags: , , ,

Algorithms and Data Structures | Mathematics | PHP

Koch Fractal, This time in PHP

by Administrator 23. March 2009 14:22

Try it here! 

According to Wikipedia, A fractal is generally "a rough or fragmented geometric shape that can be split into parts, each of which is (at least approximately) a reduced-size copy of the whole,"[1] a property called self-similarity.  

Recently I added a post about a Silverlight application to draw Koch Curves. I re-programmed it in PHP using the PHP GD image library. The output is a Jpeg and can be saved like a normal image. You can try the application by clicking on the sample image. The only input you need to provide is the number of iterations (levels) which can be selected from the given dropdown.

You can also download the PHP code from phpclasses.org. Click on the sample image to try it yourself.

Currently rated 5.0 by 4 people

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

Tags: , , , , ,

Algorithms and Data Structures | Mathematics | PHP

Fractal (Koch Curves) in SilverLight 2.0

by Administrator 9. March 2009 14:06

As a Flash and C# developer, I was always curious to try SilverLight so I read a book on SilverLight 2.0 and really enjoyed it. I tested my SilverLight knowledge by doing a "cool" application on fractals.

According to Wikipedia, A fractal is generally "a rough or fragmented geometric shape that can be split into parts, each of which is (at least approximately) a reduced-size copy of the whole,"[1] a property called self-similarity.

You can try it here. In the first textbox, you need to enter the number of recursion levels. I don't recommand anything over 7. In the second textbox, you need to enter the size of the recursion in pixels. After setting these values, press the button.

IE should be used to try this demo and SilverLight 2.0 plugin must be installed.

Click to try it yourself

Currently rated 2.5 by 2 people

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

Tags: , ,

.NET | Algorithms and Data Structures | Mathematics | SilverLight 2.0

PHP Root finder!

by Administrator 6. March 2009 10:34

This cool PHP script takes an expression, f(x) and calculates all the roots between a start and end point. It also provides a nice graphical output which can be saved.

Here is  a sample output:

 

Click to try

You can try it yourself here. The code is 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

2D parametric diagram in PHP

by Administrator 6. March 2009 10:30

This class takes x(t) and y(t) as a parametric equation and draws its diagram in jpeg format.

Here is a sample output:

Click to try

Try it yourself. You can download the code here.

Be the first to rate this post

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

Tags: , , , ,

Algorithms and Data Structures | Mathematics | PHP

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

Draw parametric 3D diagrams using PHP

by Administrator 6. March 2009 09:54

When I was a student at universoty, I used to do lots of scientific PHP programs just for fun. Here is the one I really like. After 7 years I still can spend time playing with it and graw really cool graphs.

This PHP application takes 3 parametric expressions for x, y and z dimentions and draws the 3D graph representing the expressions. You can also save the result as an ordinary image. This program is really useful for students who like mathematics and algebra. 

t, is the variable which changes within the range you provide so foreach specific t, we will get a x, y and z values which will form our cool 3D graph

Here is a sample output:

You can try it here. Just make sure you type the expressions in C++ (PHP) format. This code can be downloaded here.

Currently rated 5.0 by 2 people

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

Tags: , , , , ,

Algorithms and Data Structures | Mathematics | PHP

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