Is math essential for programming?

Discuss Computer Science and Programming related problems

Moderators:Labib, bristy1588

User avatar
Mohaimin
Posts:38
Joined:Thu Dec 09, 2010 7:38 pm
Location:Dhaka
Contact:
Re: Is math essential for programming?

Unread post by Mohaimin » Tue Dec 14, 2010 12:09 pm

I did not read all the posts so may be I am repeating someone else.
There are two types, one is Software developer, the other is programmer.

For the first type, you do not NEED mathematical skill that much. But if you are have a better skill, you will find some advantages over others. I can't tell how you get advantages, but I feel there is some.

For programmers, who are interested in contest problems, mathematics is must. Actually programming is more mathematics than computers. If you are good in problem solving, you will do good in programming. There is a living example, Abir.

Shifat
Posts:53
Joined:Sun Jul 31, 2011 12:21 pm
Location:Dhaka, Bangladesh

Re: Is math essential for programming?

Unread post by Shifat » Mon Aug 22, 2011 9:25 pm

I am sure u will understand this program to find the GCD. It is written in Qbasic so the easiest to get I suppose/
INPUT a, b
DO
x= a mod b
let a=b
let b=x
LOOP UNTIL x=0
print a
end
Here "Loop until" means until the expression fill its demand(here as long as x=0) the process will be continued....
Example- suppose a=6 and b=4, so at first find 6mod4=2, so x=2
now a=b=4 and b=x=2, since x<>o so we have to do it again. Now a=4 and b=2
find 4 mod 2 = x, now a=b=2 and b=x=0, since x=0 now so the process is end.
now print a=2.
so the GCD is 2..
Hope this helps..

Post Reply