Object Oriented Programming: Assignment # 01
Object Oriented Programming: Assignment # 01
Object Oriented Programming: Assignment # 01
PROGRAMMING
ASSIGNMENT # 01
Submitted To :
Sir Shahzad Adil
Submitted By :
Maleeha Babar
150181-D
1. SPACETIME
Definition:
Spacetime is any mathematical model that combines space and time into a single continuum.
It refers to all points of space and time and their relation to each other. In the beginning
space and time were considered separate entities. Time was thought to pass at the same rate
for all observers, regardless of their position or speed. It was also thought the distance is same
for everyone. Albert Einstein developed the idea of spacetime and showed that measurements
of time and distance between the same events could differ for different observers. But he also
showed that these measurements could be combined in a systematic way. And considering
how spacetime could be warped or bent led to the development of general relativity.
Spacetime can be thought as a grid of fabric , the presence of mass distorts the spacetime.
Einstein’s and Minkowski’s space-time is made up of three dimensions x, y, and z, and one
time dimension t. Space-time is commonly thought to be the history of the entire universe,
containing every event that ever happens. This idea is explained thoroughly below.
MATHEMATICAL EXPLANATION :
Space describes the invariant distances between objects but spacetime describes the
invariant intervals between events. An event is anything that happens at a particular point of
space and instant of time. Events are described using coordinates (x,y,z,ct), where is c the
speed of light having units of length/time , so ct has units of length, just like x, y and z.
According to Newton ∆t itself was an invariant, even though ∆x, ∆y and ∆z were not. He
thought that irrespective of one’s position and speed the time between two events would
always be same. This implied that there were two invariants, ∆t and d2 = ∆x2 + ∆y2 +∆z2.
Einstein overthrew this idea by stating that both ∆t and d2 are quantities relative to
particular observers, and that the relevant invariant quantity formed from the combination of
the two. Special relativity holds that following expression is invariant :
Time is sometimes called "the fourth dimension." But If that was true then the invariant
quantity describing this alternate spacetime would be :
2
EXAMPLE :
2. COMPACT OBJECTS:
An object of a category is called compact if it is “finite” or “small” in some precise sense.
3
where G is Newton's constant of gravity], M is mass of the object and c is speed of light. One
of the reasons why black holes are so important in our understanding of general relativity is
because they are made of space and time alone.
Schwarzschild solution:
Where c is the speed of light, t is the time coordinate , r is the radial coordinate , θ is
the colatitude (angle from north), φ is the longitude and rS is the Schwarzschild radius of
the massive body, a scale factor which is related to its mass M by
rS= 2GM / c2
The Schwarzschild solution valid for all r > 0, is called a Schwarzschild black hole. It is a
perfectly valid solution of the Einstein field equations. For r < rs the Schwarzschild radial
coordinate r becomes timelike and the time coordinate t becomes spacelike. The
surface r = rs demarcate event horizon of the black hole. It represents the point past which
light can no longer escape the gravitational field. Any physical object whose
radius R becomes less than or equal to the Schwarzschild radius will undergo gravitational
collapse and become a black hole.