All of Physics is this “Inherent ability = difficulty * accomplishment”. Thats just intuitive but can easily be seen to correspond mathematically with the Principle of least action.
First the edifice: whats the problem? The problem is given you move in straight line when every direction is same around you, which direction will you chose? While you are waiting for a good answer from astrologers intelligent people already give a good hint. Think you have some inherent ability which is fixed.
fixed: which changes only if estimated wrong.
That inherent ability is actually action. Accomplishments are adjusted for difficulties, you waded through a swamp 5 meters you would have accomplished in sand 8 meters with that given inherent ability called action. Because action is abstract we have been sticking to time and path-length, but they are not as fundamental, they are merely specifics. More…
Finally I am successful in calculating pi value — less than 0.3% error, by using random number generation. Although my computer needs some fixation on its compiler or path definition etc, there are very good online compilers which helps in testing and running c++ codes: try the given link.
Computing the value of pi using std::rand()
Enter number of trials: 10000
Enter number of random (x,y) points per trial: 10
pi = 3.14376 +- 0.00519107
average – exact = 0.00216735
CPU time = 0.004027 secs
Here is the code I found by searching a good deal on the web. Yes I did tinker around but only because my own compiler (Turbo C++ on windows 10, 64 bits) was throwing some exceptions on the included headers.
using namespace std;
double pi_estimate(const unsigned long points) More…
A long and technical discourse on Quantum Wave Function.
A 64 slide presentation styled discourse on the Quantum Wave Function. It consists of detailed solution of 5 important and interesting problems, apart from a threadbare discussion of the concepts.
An aquarium 2 m long, 1 m wide, and 1 m deep is full of water. Find
(a) The hydrostatic pressure on the bottom of the aquarium,
(b) The hydrostatic force on the bottom, and the hydrostatic force on one end of the aquarium. More…
Calculate CurlF and then use Stokes’ theorem to compute the flux of CurlF through the given surface as a line integral. F = y, x, x2 + y2 , the upper hemisphere; x2 + y2 + z2 = 1, z ≥ 0. More…