Showing posts with label Tutorial. Show all posts
Showing posts with label Tutorial. Show all posts

Saturday, 18 April 2015

JEE MAINS PHYSICS UNIT 1 TUTORIAL 4 FUNDAMENTAL AND DERIVED UNITS

Tutorial 4 Fundamental and Derived Units
We have discussed about units in the last tutorial. By now we know that units are further divided into fundamental units and derived units.
Fundamental and derived units
Fundamental and derived units

Fundamental Units:
Fundamental units are a group or a set of units of the given physical quantities from which other units can be generated. Or otherwise they can defined as that these units can neither be derived from one another nor can be resolved into any other units. They are independent. Fundamental units are also called as base units. There are 7 units of physical quantities which are defined as fundamental units by the international system of units. As I have stated earlier that all my tutorial will be in SI units unless otherwise stated. So the Fundamental units in SI units are as follows: (It should be noted that the definitions in the given table are new definitions according to the international standards. There is no need for remembering all the values in the given table or definitions but I would suggest to remember everything except definitions.)
Name
Symbol & Full Form
Measure
Current Definition
Dimensional Symbol
Length
m(Meter)
Length
The meter is the length of the path travelled by light in vacuum during a time interval of 1  299792458 of a second
L
Kilogram
kg(Kilo Gram)
Mass
The kilogram is the unit of mass; it is equal to the mass of the international prototype of the kilogram
M
Second
s(Second)
Time
The second is the duration of 9192631770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the cesium 133 atom.
T
Ampere
A(Ampere)
Electric Current
The ampere is that constant current which, if maintained in two straight parallel conductors of infinite length, of negligible circular cross-section, and placed 1 meter apart in vacuum, would produce between these conductors a force equal to 2 × 10−7 newton per meter of length.
I
Kelvin
K(Kelvin)
Thermodynamic temperature
The kelvin, unit of thermodynamic temperature, is the fraction 1  273.16 of the thermodynamic temperature of the triple point of water.
Θ
Mole
mol(Mole)
Amount of substance
The mole is the amount of substance of a system which contains as many elementary entities as there are atoms in 0.012 kilogram of carbon 12; its symbol is 'mol.
N
Candela
cd(Candela)
Luminous Intensity
The candela is the luminous intensity, in a given direction, of a source that emits monochromatic radiation of frequency 540×1012hertz and that has a radiant intensity in that direction of 1/683 watt per steradian.
J
Derived units:
The units which are derived from the fundamental units are called as derived units. For example we know that Force is the product of “Mass” and “Acceleration”. We know that that acceleration is equal to the ratio of the distance travelled to the square of the time (Precise definition will be given in the upcoming tutorials. For now just consider this.), so the units of force in SI units can be written as
F = Mass(kg).Acceleration(meter/ second2)
Thus the units of force are the  
It can be seen that the units of force are product of one or more base units. Thus it can be said that force is a derived quantity.
Some examples of other derived units in the real life can be given as, voltage, Resistance, Magnetic induction, Velocity, Acceleration, Volume, Area and many others come under derived quantity.
Some of the derived units which have specific names for their derived unit are, plane angle(radian), solid angle(steradian), frequency(hertz), force(newton), pressure,stress(pascal), energy, work, quantity of electricity(coulomb) and others.
I think there is no need to remember these units except the base units for now because you will get used to these units and automatically remember them while you will complete learning all the tutorials.
Finally it should be remembered that this topic is very important not only in real life but also for your exam as this is the basics for the upcoming tutorials.
References:

You can also download the pdf version of this document from here:


Thursday, 16 April 2015

UNIT 1 JEE MAINS PHYSICS SI UNITS

You can download the pdf version of this document and read it.

What is a unit?
Let us say you were to measure the height of the person. The answer wouldn’t be that the person is tall or short but the answer would be that the person is 160 centimeters tall or 200 centimeters tall or some other value depending on the height of the person.
Now we have compared the height of the person to centimeter and have counted how many times the person is to that of the centimeter. But what if the person height is to be given in Feet and Inches? You would simply compare the person’s height with that of Feet and Inches.
So measurement of any physical quantity with respect to the universally accepted reference is called as unit. Let us simplify this definition with the above given example. Here the physical quantity to be measured is the height. The universally accepted reference is the centimeter. Thus the reference centimeter is called as the unit.
We will return the result of the measurement of a physical quantity with a number followed by the unit.
Why should we use units?

In the above example if you say that the person is tall, then in your point of view the height of the person may be more than 160 centimeters but according to my point of view it may be above 150 centimeters. So if you say tall then I would consider 150 centimeters but according to your point of view it is 160 centimeters and there will be a sort of confusion between the two. But if you specify that the height of the person as 160 centimeters exactly then there will not be any confusion between both of us instead of using the word tall.

Units are further divided into Fundamental and Derived Units which we will be covering in the next tutorial.
There are many universally accepted units among different countries. Some of the well known unit systems are:
FPS: In FPS the measurement of length is done with Foot, mass with Pound, Time with Seconds.
CGS: In CGS systems length is measured in Centimeters, Weight in Grams, Time in Seconds.
MKS: In MKS length is measured in meters, mass in kilograms, time in seconds.

The system which is presently used and accepted is the SI unit. Full form of SI unit is Système InternationaleThis is accepted universally and are used in industries and other places worldwide. They have adapted SI units as standard because it is easy to use and also it is easy to convert from this unit to others. It is to be remembered that we shall use SI units in all our tutorials.

UNIT 1 TUTORIAL 2 PHYSICS IN TECHNOLOGY AND SOCIETY

You can download the pdf version of this tutorial and read it offline. Click on the download button to get the pdf version.

We can say that technology and thus the society is always interconnected with physics. The present technology may not be directly connected with the physics but in some or the other way the basic principles used in the other way are directly related to physics. For example let us consider the computer you are using now. It has a chip which is made up of silicon and the study of the properties of this materials comes under the branch of physics called as material physics. Or for the sake of easy understanding let us consider the internet which you are using to study this document. In the earlier days there was not internet but telephone was introduced based on the basic laws of electricity and magnetism. That wired telecommunication gradually changed to wireless and finally we are not only communicating with other but also we are exchanging our data based on the laws of electricity and magnetism. Similarly the automobiles which are running on the roads are based on the laws of motion and energy from combustion of the fossil fuels. In similar way there are many examples which can be stated here but I think they are not very necessary as you know most of them. But I will give some data regarding some physicists from different countries of the world who have their major contributions to the subject of physics. Note that this data is not my original work but I have collected this from the NECERT textbook of INDIAN government of page number 5, 6 from Table 1.1. Picture quality is low as it is just for information.



Thursday, 8 January 2015

Output for Declination angle problem


The program can be found here: Declination angle

Declination angle(δ) on 1 of January is  0.000000
Declination angle(δ) on 2 of January is 19.732495
Declination angle(δ) on 3 of January is 21.323025
Declination angle(δ) on 4 of January is  3.309264
Declination angle(δ) on 5 of January is -17.747019
Declination angle(δ) on 6 of January is -22.486774
Declination angle(δ) on 7 of January is -6.552293
Declination angle(δ) on 8 of January is 15.406336
Declination angle(δ) on 9 of January is 23.200451
Declination angle(δ) on 10 of January is  9.664178
Declination angle(δ) on 11 of January is -12.757295
Declination angle(δ) on 12 of January is -23.449770
Declination angle(δ) on 13 of January is -12.582635
Declination angle(δ) on 14 of January is  9.852917
Declination angle(δ) on 15 of January is 23.229742
Declination angle(δ) on 16 of January is 15.249250
Declination angle(δ) on 17 of January is -6.751333
Declination angle(δ) on 18 of January is -22.544771
Declination angle(δ) on 19 of January is -17.610651
Declination angle(δ) on 20 of January is  3.514621
Declination angle(δ) on 21 of January is 21.408566
Declination angle(δ) on 22 of January is 19.619575
Declination angle(δ) on 23 of January is -0.207563
Declination angle(δ) on 24 of January is -19.843868
Declination angle(δ) on 25 of January is -21.235813
Declination angle(δ) on 26 of January is -3.103649
Declination angle(δ) on 27 of January is 17.881996
Declination angle(δ) on 28 of January is 22.427016
Declination angle(δ) on 29 of January is  6.352741
Declination angle(δ) on 30 of January is -15.562215
Declination angle(δ) on 31 of January is -23.169342
Declination angle(δ) on 1 of February is -9.474683
Declination angle(δ) on 2 of February is 12.930956
Declination angle(δ) on 3 of February is 23.447933
Declination angle(δ) on 4 of February is 12.406989
Declination angle(δ) on 5 of February is -10.040884
Declination angle(δ) on 6 of February is -23.257214
Declination angle(δ) on 7 of February is -15.090969
Declination angle(δ) on 8 of February is  6.949843
Declination angle(δ) on 9 of February is 22.601002
Declination angle(δ) on 10 of February is 17.472904
Declination angle(δ) on 11 of February is -3.719702
Declination angle(δ) on 12 of February is -21.492430
Declination angle(δ) on 13 of February is -19.505118
Declination angle(δ) on 14 of February is  0.415110
Declination angle(δ) on 15 of February is 19.953688
Declination angle(δ) on 16 of February is 21.146937
Declination angle(δ) on 17 of February is  2.897790
Declination angle(δ) on 18 of February is -18.015572
Declination angle(δ) on 19 of February is -22.365500
Declination angle(δ) on 20 of February is -6.152690
Declination angle(δ) on 21 of February is 15.716874
Declination angle(δ) on 22 of February is 23.136417
Declination angle(δ) on 23 of February is  9.284445
Declination angle(δ) on 24 of February is -13.103603
Declination angle(δ) on 25 of February is -23.444259
Declination angle(δ) on 26 of February is -12.230371
Declination angle(δ) on 27 of February is 10.228064
Declination angle(δ) on 28 of February is 23.282864
Declination angle(δ) on 1 of March is 14.931506
Declination angle(δ) on 2 of March is -7.147809
Declination angle(δ) on 3 of March is -22.655462
Declination angle(δ) on 4 of March is -17.333787
Declination angle(δ) on 5 of March is  3.924491
Declination angle(δ) on 6 of March is 21.574611
Declination angle(δ) on 7 of March is 19.389133
Declination angle(δ) on 8 of March is -0.622625
Declination angle(δ) on 9 of March is -20.061944
Declination angle(δ) on 10 of March is -21.056404
Declination angle(δ) on 11 of March is -2.691704
Declination angle(δ) on 12 of March is 18.147736
Declination angle(δ) on 13 of March is 22.302232
Declination angle(δ) on 14 of March is  5.952158
Declination angle(δ) on 15 of March is  5.952158
Declination angle(δ) on 16 of March is -15.870302
Declination angle(δ) on 17 of March is -23.101680
Declination angle(δ) on 18 of March is -9.093479
Declination angle(δ) on 19 of March is 13.275224
Declination angle(δ) on 20 of March is 23.438748
Declination angle(δ) on 21 of March is 12.052795
Declination angle(δ) on 22 of March is -10.414442
Declination angle(δ) on 23 of March is -23.306689
Declination angle(δ) on 24 of March is -14.770873
Declination angle(δ) on 25 of March is  7.345215
Declination angle(δ) on 26 of March is 22.708147
Declination angle(δ) on 27 of March is 17.193313
Declination angle(δ) on 28 of March is -4.128973
Declination angle(δ) on 29 of March is -21.655101
Declination angle(δ) on 30 of March is -19.271628
Declination angle(δ) on 31 of March is  0.830090
Declination angle(δ) on 1 of April is 20.168628
Declination angle(δ) on 2 of April is 20.964222
Declination angle(δ) on 3 of April is  2.485407
Declination angle(δ) on 4 of April is -18.278479
Declination angle(δ) on 5 of April is -22.237216
Declination angle(δ) on 6 of April is -5.751159
Declination angle(δ) on 7 of April is 16.022487
Declination angle(δ) on 8 of April is 23.065133
Declination angle(δ) on 9 of April is  8.901801
Declination angle(δ) on 10 of April is -13.445805
Declination angle(δ) on 11 of April is -23.431400
Declination angle(δ) on 12 of April is -11.874274
Declination angle(δ) on 13 of April is 10.600005
Declination angle(δ) on 14 of April is 23.328688
Declination angle(δ) on 15 of April is 14.609083
Declination angle(δ) on 16 of April is -7.542045
Declination angle(δ) on 17 of April is -22.759052
Declination angle(δ) on 18 of April is -17.051492
Declination angle(δ) on 19 of April is  4.333132
Declination angle(δ) on 20 of April is 21.733894
Declination angle(δ) on 21 of April is 19.152614
Declination angle(δ) on 22 of April is -1.037491
Declination angle(δ) on 23 of April is -20.273731
Declination angle(δ) on 24 of April is -20.870397
Declination angle(δ) on 25 of April is -2.278916
Declination angle(δ) on 26 of April is 18.407790
Declination angle(δ) on 27 of April is 22.170459
Declination angle(δ) on 28 of April is  5.549710
Declination angle(δ) on 29 of April is -16.173417
Declination angle(δ) on 30 of April is -23.026778
Declination angle(δ) on 1 of May is -8.709426
Declination angle(δ) on 2 of May is 13.615332
Declination angle(δ) on 3 of May is 23.422217
Declination angle(δ) on 4 of May is 11.694823
Declination angle(δ) on 5 of May is -10.784737
Declination angle(δ) on 6 of May is -23.348860
Declination angle(δ) on 7 of May is -14.446149
Declination angle(δ) on 8 of May is  7.738285
Declination angle(δ) on 9 of May is 22.808175
Declination angle(δ) on 10 of May is 16.908334
Declination angle(δ) on 11 of May is -4.536951
Declination angle(δ) on 12 of May is -21.810985
Declination angle(δ) on 13 of May is -19.032099
Declination angle(δ) on 14 of May is  1.244810
Declination angle(δ) on 15 of May is 20.377247
Declination angle(δ) on 16 of May is 20.774937
Declination angle(δ) on 17 of May is  2.072246
Declination angle(δ) on 18 of May is -18.535659
Declination angle(δ) on 19 of May is -22.101964
Declination angle(δ) on 20 of May is -5.347825
Declination angle(δ) on 21 of May is 16.323079
Declination angle(δ) on 22 of May is 22.986620
Declination angle(δ) on 23 of May is  8.516369
Declination angle(δ) on 24 of May is -13.783793
Declination angle(δ) on 25 of May is -23.411199
Declination angle(δ) on 26 of May is -11.514456
Declination angle(δ) on 27 of May is -11.514456
Declination angle(δ) on 28 of May is 10.968624
Declination angle(δ) on 29 of May is 23.367202
Declination angle(δ) on 30 of May is 14.282082
Declination angle(δ) on 31 of May is -7.933918
Declination angle(δ) on 1 of June is -22.855511
Declination angle(δ) on 2 of June is -16.763852
Declination angle(δ) on 3 of June is  4.740415
Declination angle(δ) on 4 of June is 21.886366
Declination angle(δ) on 5 of June is 18.910094
Declination angle(δ) on 6 of June is -1.452032
Declination angle(δ) on 7 of June is -20.479166
Declination angle(δ) on 8 of June is -20.677849
Declination angle(δ) on 9 of June is -1.865413
Declination angle(δ) on 10 of June is 18.662075
Declination angle(δ) on 11 of June is 22.031738
Declination angle(δ) on 12 of June is  5.145522
Declination angle(δ) on 13 of June is -16.471463
Declination angle(δ) on 14 of June is -22.944661
Declination angle(δ) on 15 of June is -8.322644
Declination angle(δ) on 16 of June is 13.951174
Declination angle(δ) on 17 of June is 23.398346
Declination angle(δ) on 18 of June is 11.333187
Declination angle(δ) on 19 of June is -11.151652
Declination angle(δ) on 20 of June is -23.383714
Declination angle(δ) on 21 of June is -14.116897
Declination angle(δ) on 22 of June is  8.128930
Declination angle(δ) on 23 of June is 22.901056
Declination angle(δ) on 24 of June is 16.618057
Declination angle(δ) on 25 of June is -4.943507
Declination angle(δ) on 26 of June is -21.960033
Declination angle(δ) on 27 of June is -18.786606
Declination angle(δ) on 28 of June is  1.659140
Declination angle(δ) on 29 of June is 20.579481
Declination angle(δ) on 30 of June is 20.579142
Declination angle(δ) on 1 of July is  1.658435
Declination angle(δ) on 2 of July is -18.787029
Declination angle(δ) on 3 of July is -21.959785
Declination angle(δ) on 4 of July is -4.942816
Declination angle(δ) on 5 of July is 16.618556
Declination angle(δ) on 6 of July is 22.900904
Declination angle(δ) on 7 of July is  8.128267
Declination angle(δ) on 8 of July is -14.117461
Declination angle(δ) on 9 of July is -23.383660
Declination angle(δ) on 10 of July is -11.151030
Declination angle(δ) on 11 of July is 11.333806
Declination angle(δ) on 12 of July is 23.398393
Declination angle(δ) on 13 of July is 13.950605
Declination angle(δ) on 14 of July is -8.323304
Declination angle(δ) on 15 of July is -22.944807
Declination angle(δ) on 16 of July is -16.470959
Declination angle(δ) on 17 of July is  5.146212
Declination angle(δ) on 18 of July is 22.031980
Declination angle(δ) on 19 of July is 18.661647
Declination angle(δ) on 20 of July is -1.866118
Declination angle(δ) on 21 of July is -20.678183
Declination angle(δ) on 22 of July is -20.478822
Declination angle(δ) on 23 of July is -1.451326
Declination angle(δ) on 24 of July is 18.910512
Declination angle(δ) on 25 of July is 21.886112
Declination angle(δ) on 26 of July is  4.739722
Declination angle(δ) on 27 of July is -16.764347
Declination angle(δ) on 28 of July is -22.855353
Declination angle(δ) on 29 of July is -7.933253
Declination angle(δ) on 30 of July is 14.282643
Declination angle(δ) on 31 of July is 23.367143
Declination angle(δ) on 1 of August is 10.967999
Declination angle(δ) on 2 of August is -11.515072
Declination angle(δ) on 3 of August is -23.411239
Declination angle(δ) on 4 of August is -13.783221
Declination angle(δ) on 5 of August is  8.517027
Declination angle(δ) on 6 of August is 22.986760
Declination angle(δ) on 7 of August is 16.322572
Declination angle(δ) on 8 of August is 16.322572
Declination angle(δ) on 9 of August is -5.348514
Declination angle(δ) on 10 of August is -22.102200
Declination angle(δ) on 11 of August is -18.535226
Declination angle(δ) on 12 of August is  2.072950
Declination angle(δ) on 13 of August is 20.775265
Declination angle(δ) on 14 of August is 20.376897
Declination angle(δ) on 15 of August is  1.244104
Declination angle(δ) on 16 of August is -19.032512
Declination angle(δ) on 17 of August is -21.810725
Declination angle(δ) on 18 of August is -4.536258
Declination angle(δ) on 19 of August is 16.908824
Declination angle(δ) on 20 of August is 22.808011
Declination angle(δ) on 21 of August is  7.737618
Declination angle(δ) on 22 of August is -14.446706
Declination angle(δ) on 23 of August is -23.348794
Declination angle(δ) on 24 of August is -10.784109
Declination angle(δ) on 25 of August is 11.695436
Declination angle(δ) on 26 of August is 23.422251
Declination angle(δ) on 27 of August is 13.614757
Declination angle(δ) on 28 of August is -8.710082
Declination angle(δ) on 29 of August is -23.026912
Declination angle(δ) on 30 of August is -16.172905
Declination angle(δ) on 31 of August is  5.550396
Declination angle(δ) on 1 of September is 22.170689
Declination angle(δ) on 2 of September is 18.407352
Declination angle(δ) on 3 of September is -2.279619
Declination angle(δ) on 4 of September is -20.870719
Declination angle(δ) on 5 of September is -20.273376
Declination angle(δ) on 6 of September is -1.036785
Declination angle(δ) on 7 of September is 19.153022
Declination angle(δ) on 8 of September is 21.733629
Declination angle(δ) on 9 of September is  4.332437
Declination angle(δ) on 10 of September is -17.051977
Declination angle(δ) on 11 of September is -22.758882
Declination angle(δ) on 12 of September is -7.541376
Declination angle(δ) on 13 of September is 14.609636
Declination angle(δ) on 14 of September is 23.328616
Declination angle(δ) on 15 of September is 10.599374
Declination angle(δ) on 16 of September is -11.874884
Declination angle(δ) on 17 of September is -23.431428
Declination angle(δ) on 18 of September is -13.445226
Declination angle(δ) on 19 of September is  8.902455
Declination angle(δ) on 20 of September is 23.065260
Declination angle(δ) on 21 of September is 16.021971
Declination angle(δ) on 22 of September is -5.751844
Declination angle(δ) on 23 of September is -22.237441
Declination angle(δ) on 24 of September is -18.278036
Declination angle(δ) on 25 of September is  2.486110
Declination angle(δ) on 26 of September is 20.964538
Declination angle(δ) on 27 of September is 20.168267
Declination angle(δ) on 28 of September is  0.829384
Declination angle(δ) on 29 of September is -19.272031
Declination angle(δ) on 30 of September is -21.654829
Declination angle(δ) on 1 of October is -4.128277
Declination angle(δ) on 2 of October is 17.193794
Declination angle(δ) on 3 of October is 22.707970
Declination angle(δ) on 4 of October is  7.344544
Declination angle(δ) on 5 of October is -14.771422
Declination angle(δ) on 6 of October is -23.306611
Declination angle(δ) on 7 of October is -10.413809
Declination angle(δ) on 8 of October is 12.053401
Declination angle(δ) on 9 of October is 23.438770
Declination angle(δ) on 10 of October is 13.274641
Declination angle(δ) on 11 of October is -9.094131
Declination angle(δ) on 12 of October is -23.101801
Declination angle(δ) on 13 of October is -15.869782
Declination angle(δ) on 14 of October is  5.952842
Declination angle(δ) on 15 of October is 22.302450
Declination angle(δ) on 16 of October is 18.147289
Declination angle(δ) on 17 of October is -2.692406
Declination angle(δ) on 18 of October is -21.056715
Declination angle(δ) on 19 of October is -20.061577
Declination angle(δ) on 20 of October is -20.061577
Declination angle(δ) on 21 of October is -0.621918
Declination angle(δ) on 22 of October is 19.389530
Declination angle(δ) on 23 of October is 21.574334
Declination angle(δ) on 24 of October is  3.923794
Declination angle(δ) on 25 of October is -17.334263
Declination angle(δ) on 26 of October is -22.655279
Declination angle(δ) on 27 of October is -7.147136
Declination angle(δ) on 28 of October is 14.932051
Declination angle(δ) on 29 of October is 23.282779
Declination angle(δ) on 30 of October is 10.227427
Declination angle(δ) on 31 of October is -12.230974
Declination angle(δ) on 1 of November is -23.444274
Declination angle(δ) on 2 of November is -13.103017
Declination angle(δ) on 3 of November is  9.285094
Declination angle(δ) on 4 of November is 23.136532
Declination angle(δ) on 5 of November is 15.716350
Declination angle(δ) on 6 of November is -6.153372
Declination angle(δ) on 7 of November is -22.365712
Declination angle(δ) on 8 of November is -18.015119
Declination angle(δ) on 9 of November is  2.898491
Declination angle(δ) on 10 of November is 21.147242
Declination angle(δ) on 11 of November is 19.953316
Declination angle(δ) on 12 of November is  0.414403
Declination angle(δ) on 13 of November is -19.505510
Declination angle(δ) on 14 of November is -21.492148
Declination angle(δ) on 15 of November is -3.719004
Declination angle(δ) on 16 of November is 17.473375
Declination angle(δ) on 17 of November is 22.600813
Declination angle(δ) on 18 of November is  6.949168
Declination angle(δ) on 19 of November is -15.091510
Declination angle(δ) on 20 of November is -23.257124
Declination angle(δ) on 21 of November is -10.040245
Declination angle(δ) on 22 of November is 12.407589
Declination angle(δ) on 23 of November is 23.447942
Declination angle(δ) on 24 of November is 12.930366
Declination angle(δ) on 25 of November is -9.475329
Declination angle(δ) on 26 of November is -23.169451
Declination angle(δ) on 27 of November is -15.561686
Declination angle(δ) on 28 of November is  6.353421
Declination angle(δ) on 29 of November is 22.427222
Declination angle(δ) on 30 of November is 17.881538
Declination angle(δ) on 1 of December is -3.104349
Declination angle(δ) on 2 of December is -21.236112
Declination angle(δ) on 3 of December is -19.843492
Declination angle(δ) on 4 of December is -0.206856
Declination angle(δ) on 5 of December is 19.619962
Declination angle(δ) on 6 of December is 21.408278
Declination angle(δ) on 7 of December is  3.513922
Declination angle(δ) on 8 of December is -17.611118
Declination angle(δ) on 9 of December is -22.544577
Declination angle(δ) on 10 of December is -6.750656
Declination angle(δ) on 11 of December is 15.249787
Declination angle(δ) on 12 of December is 23.229646
Declination angle(δ) on 13 of December is  9.852276
Declination angle(δ) on 14 of December is -12.583231
Declination angle(δ) on 15 of December is -23.449773
Declination angle(δ) on 16 of December is -12.756702
Declination angle(δ) on 17 of December is  9.664823
Declination angle(δ) on 18 of December is 23.200554
Declination angle(δ) on 19 of December is 15.405803
Declination angle(δ) on 20 of December is -6.552972
Declination angle(δ) on 21 of December is -22.486975
Declination angle(δ) on 22 of December is -17.746556
Declination angle(δ) on 23 of December is  3.309964
Declination angle(δ) on 24 of December is 21.323319
Declination angle(δ) on 25 of December is 19.732113
Declination angle(δ) on 26 of December is -0.000707
Declination angle(δ) on 27 of December is -19.732877
Declination angle(δ) on 28 of December is -21.322730
Declination angle(δ) on 29 of December is -3.308564
Declination angle(δ) on 30 of December is 17.747481
Declination angle(δ) on 31 of December is 22.486574

Declination angle for all 365 days

Question:To find the declination angle using python. The formula for the declination angle is given by:
δ = 23.45*sin[360*n/365]
δ(Declination angle) is the angle made by the line joining the centers of the sun and the earth with the projection of this line on equatorial plane(equator of earth). To make it simple a simple diagram can be given as follows:

One thing to be remembered about the earth is that it is not vertical when compared to sun. So there will always be an angle with the sun. If you don't understand anything just ignore the theory and generate the result using the formula. You can find more here.
Here the question is: considering n = 1 as January 1st and December 31 as n = 365 and ignoring the leap years generate the values of Declination angle using python.

Answer 

# -*- coding: utf-8 -*-
#Firstly indicated that we are going to use UTF-8 format
import math #Imported the math module
def declination_angle(n): #Defined a function for declination angle
    angle = 23.45*math.sin(360*n/365) #Defined the formula
    return angle

def month(n):#Defined a function to seperate the month on the basis of day number
    if n>=1 and n<=31:
        return "January"#31 days
    elif n>31 and n<=59:
        return "February"#28 days
    elif n>59 and n<=90:
        return "March"#31 days
    elif n>90 and n<=120:
        return "April"#30 days
    elif n>120 and n<=151:
        return "May"#31 days
    elif n>151 and n<=181:
        return "June"#30 days
    elif n>181 and n<=212:
        return "July"#31 days
    elif n>212 and n<=243:
        return "August"#31 days
    elif n>243 and n<=273:
        return "September"#30 days
    elif n>273 and n<=304:
        return "October"#31 days
    elif n>304 and n<=334:
        return "November"#30 days
    elif n>334 and n<=365:
        return "December"#31 days
    
def day(n):#Function to make the day number to month number
    #For example n = 53 will become 22(53-31)
    if n>=1 and n<=31:#Number of days before the month are indicated
        return n#0 days before January
    elif n>31 and n<=59:
        return n-31#31 days before February
    elif n>59 and n<=90:
        return n-59#59 days days before March
    elif n>90 and n<=120:
        return n-90#90 days before April
    elif n>120 and n<=151:
        return n-120#120 days before May
    elif n>151 and n<=181:
        return n-151#151 days before June
    elif n>181 and n<=212:
        return n-181#181 days before July
    elif n>212 and n<=243:
        return n-212#212 days before August
    elif n>243 and n<=273:
        return n-243#243 days before September
    elif n>273 and n<=304:
        return n-273#273 days before October
    elif n>304 and n<=334:
        return n-304#304 days before November
    elif n>334 and n<=365:
        return n-334#334 days before December

for i in range(1,366): #Looping for 365 days
    angle = declination_angle(i) #Storing the angle in a variable
    mon = month(i) #storing the month in mon variable
    print u"Declination angle(δ)", #indicated "u" before string to say that there is "δ" in string
    print "on", #comma at the end of string to make it come on same day
    print day(i),
    print "of",
    print mon,
    print "is",
    print "{}".format(angle)#Format method to indicate angle

Output:

Declination angle(δ) on 1 of January is  0.000000
Declination angle(δ) on 2 of January is 19.732495
Declination angle(δ) on 3 of January is 21.323025
...........


Full output can be seen here:Output for declination angle problem
I have written the code and commented the code so that everyone will be able to understand the program easily. Each part of the program is as folllows:


# -*- coding: utf-8 -*-
This will tell the interpreter that the code is in UTF-8 format. And if we use other characters like delta, alpha then interpreter will show the symbols and otherwise it will not.



import math #Imported the math module

The above statement will import the Math module from where we can use the sine function. We can also use the "from" method where we will not use the "math.sin" in the code. But the above way is recommended so that there will not be any confusion



def declination_angle(n): #Defined a function for declination angle
    angle = 23.45*math.sin(360*n/365) #Defined the formula
    return angle

This will define a function named declination_angle which will take "n" as argument. This function has a variable name angle which contains the formula. This function will take the value of the "n" and return the declination angle which is stored in the angle variable



def month(n):#Defined a function to seperate the month on the basis of day number
    if n>=1 and n<=31:
        return "January"#31 days
    elif n>31 and n<=59:
        return "February"#28 days
    elif n>59 and n<=90:
        return "March"#31 days
    elif n>90 and n<=120:
        return "April"#30 days
    elif n>120 and n<=151:
        return "May"#31 days
    elif n>151 and n<=181:
        return "June"#30 days
    elif n>181 and n<=212:
        return "July"#31 days
    elif n>212 and n<=243:
        return "August"#31 days
    elif n>243 and n<=273:
        return "September"#30 days
    elif n>273 and n<=304:
        return "October"#31 days
    elif n>304 and n<=334:
        return "November"#30 days
    elif n>334 and n<=365:
        return "December"#31 days

This will define a function which will take the day number in the year as argument. We have used series of if elif which will divide the day numbers and will return the month. This is useful to give an output with the month name so that the user will understand the output easily.



def day(n):#Function to make the day number to month number
    #For example n = 53 will become 22(53-31)
    if n>=1 and n<=31:#Number of days before the month are indicated
        return n#0 days before January
    elif n>31 and n<=59:
        return n-31#31 days before February
    elif n>59 and n<=90:
        return n-59#59 days days before March
    elif n>90 and n<=120:
        return n-90#90 days before April
    elif n>120 and n<=151:
        return n-120#120 days before May
    elif n>151 and n<=181:
        return n-151#151 days before June
    elif n>181 and n<=212:
        return n-181#181 days before July
    elif n>212 and n<=243:
        return n-212#212 days before August
    elif n>243 and n<=273:
        return n-243#243 days before September
    elif n>273 and n<=304:
        return n-273#273 days before October
    elif n>304 and n<=334:
        return n-304#304 days before November
    elif n>334 and n<=365:
        return n-334#334 days before December

We know that every month has days 31 or 30 or 28 and the dates of the month are represented between these numbers depending on the month. But we use an input of numbers from 1 to 365 which will represent the day number in the year instead of month. The above function "day" is uses a series of if and elif to represent the day in the month instead of the year.



for i in range(1,366): #Looping for 365 days
    angle = declination_angle(i) #Storing the angle in a variable
    mon = month(i) #storing the month in mon variable
    print u"Declination angle(δ)", #indicated "u" before string to say that there is "δ" in string
    print "on", #comma at the end of string to make it come on same day
    print day(i),
    print "of",
    print mon,
    print "is",
    print "{}".format(angle)#Format method to indicate angle

Finally we will loop to generate the result of 365 days. For this we have used for loop. This loop will give our functions(declination_angle, month) each day in the year. Here we have used a series of print statements to show our output for our users.
It should be noted that we have used "u" in front of the string, this will tell the interpreter to print the characted δ in the same way. For more information you can see here: Unicode HOWTO &mdash; Python 2.7.9 documentation

Please do contact me if you have a better solution than this. Thanks!