3. Intro :
Relation between Mathematics & Programming - Where's the math
in C?
Computers can do amazing things with huge numbers and complex
calculations. Thankfully, we won't be trying to calculate the number of
possible planets in the Andromeda galaxy, but we will be doing math
in C. Computer programming and math go hand in hand.
In any program, you may be calculating a pay rate, increasing a value
by 1, or doing long division. In order to use many of the math features
in C, we will need to make use of a library. You can think of a C library
as a virtual library for your code. It is a set of pre-built functions that
your program can use. These include input / output methods or math
functions. If you want to use the library, you need to include its header
file at the top of your code. The header file is the pointer to the library.
4. Problem number 1:
1. The population of a city increases at a rate proportional to the
present number. It has an initial population of 50000 that increases
by 15% in 10 years. What will be the population in 30 years?
8. Problem number 2 :
The rate at which a super computer body cools is
proportional to the difference between the
temperature of the body and that of the
surrounding air. If a body in air at will cool from to in
one minute, find its temperature at the end of three
minutes
12. Problem number 3 :
Under certain conditions, cane sugar is converted into
dextrose at a rate, which is proportional to the amount
unconverted at any time. If out of grams of sugar at ,
grams are converted during the first minutes, find the
amount converted in hours.
17. Analysis :
The use of math in programming sites is immense. Integration,
exponential, addition, subtraction, multiplication, division have
been used to solve the above 3 problems. We need to do many
kinds of projects using C program. We solve those problems like
the above 3 maths in those projects. By doing maths like this
we can do better in our programming sites. So we need to do
more of this kind of math