Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Monday, April 09, 2007

ActionScript 3.0 with Flex is cool. Tested with Monte Carlo algorithm.

I have not posted anything for along time because I am so busy.

By the way, after heard about new technology from Adobe and I have enough time to test. And I have tested it now. I write actionscript 3.0 in flex application to calculate pi value by Monte Carlo Method. I didn't use Flex Builder, but I used Flex SDK with FlashDevelop.

The result of testing is very cool. The calculation performed by actionscript 3.0 is very fast (let try it yourself with N around 1000000)


This is it. Let try => http://physica.thai.googlepages.com/MonteCarloAS3.swf
This is a source code => http://physica.thai.googlepages.com/MonteCarloAS3.mxml

Have Fun. :)

Physica

Saturday, November 04, 2006

Wolfram Tones

I have found this thing from the guy who view and leave comment at this blog. This cool thing name is Wolfram Tones. This is a tool that used to generate the unique style musics. You can generate your own musics at Wolfram Tones' site. This is my own musics ->

Click at the image to play the music.

The wolfram Tones are generated from the Mathematica algorithms. (Follow this link to see how it work) And Mathematica is also my favorite computational tool.

You can generate your own musics and save it to your computer. Is it cool ?
Don't forget to generate your own musics.


Friday, October 20, 2006

Flag waving 3D Improved and Source Code

I have improve the equations, and add some features. This is it - >

Click at the image to view. (or click here)

I use some calculus and linear interpolation knowledge in this applet. This is source code

wavingflag.as



This is the source file (230.7 kB)

Feel free to use it.

All comments are welcomed.

Monday, October 16, 2006

Free Materials on Computational Physics using C++

Today I plan to start reading computational physics. Before I start, I have looked around for the materials. Surely, internet still be my best book store (Free book store). In a short time, I found a lot of cool materails. (I use google search.) And the best that I found is this free book
http://www.physics.ohio-state.edu/~ntg/780/readings/hjorth-jensen_notes2005.pdf
This is a computational physics book (using Fortran and C++). The author is M. Hjorth-Jensen.

If you interest in this field, these link may be (I can say "will be" not "may be") helpful.
http://www.fys.uio.no/~mhjensen/
http://dmoz.org/Science/Physics/Computational/
http://www.physics.ohio-state.edu/~ntg/780/
http://www.physics.utah.edu/~detar/lessons/c++/
My favorite picture from M. Hjorth-Jensen's book

But if you are a newbie, and don't have any programming experience. I would like to introduce you to start with Python, because "Python is a modern object oriented programming language which is freely available. Python has a short learning curve and with the specified modules has powerful facilities for numerical calculation and visualisation." (from http://www.phy.uct.ac.za/courses/phy321f/compphy.htm)
All of these links will be helpful.

http://www-teaching.physics.ox.ac.uk/computing/ProgrammingResources/programming.html
http://www.phy.uct.ac.za/courses/phy321f/compphy.htm

And I have one more nice material which I forget it for now. I promise, I will find it and tell you soon.

Saturday, October 07, 2006

Hello World!

This is my first post. Just test