ReCom.org
Programming and Web Development Web monks and programmers welcomed

Guide to learn programming

Reply
 
Thread Tools
Leen
Peacemaker
Administrator
 
Leen's Avatar
 
Join Date: Feb 2006
Posts: 651
  #21 Old 06-08-2009 Default Re: Guide to learn programming

I myself started out with a functional programming languages, Scheme.
And now, I'm doing C++ and then probably, I'll move on to python.

But since I'm more interested in web development, I might just end up learning php, PERL and other web-related stuff more than C++.
Leen is offline   Reply With Quote
kaiyi Female
Member
 
kaiyi's Avatar
 
Join Date: May 2009
Posts: 335
  #22 Old 10-08-2010 Default Re: Guide to learn programming

I have taken programming of scientists as 1 of my subjects(im a science student). I have never learn programming before(we are using Python) and the lecturer only talked about the benefits and how elegant the Python is though our class has started for 3 weeks....

Here comes my first assignment, I just want to know what it wants me to do (i cant understand it...) Am i suppose to prove the formula in the first part or i can use the formula straight away? 2nd part i totally dont have idea...maybe just give up it...


The mathematical proposition

Consider a sequence formed by members of the geometrical progression with the base2, 2^n , n=0,1,2,....If to retain only 1st(left-most) digit in sequence member, we shall instead get the following:

1,2,4,8,1,3,6,1,2,5,1,2,4,8,1,3,6,1,2,5,1,2,4,8,1, ...

It turns out that the distribution of digits(1,2,...0) in this sequence follows a certain law, which can be de-duced from a more general theorem proved in the beginning of the XXcentuary by the German mathematician HermannWeyl. One manifestation of this distribution law (quite evident already in the above sequence),that 1 occurs more often then anyother digit,and the overall frequency of 1s occurrence is about30%. The precise
formula for all the digits is known:

pi = lg(i1)lg(i), i=1..9(lg is the base 10logarithm)

Which means that p=lg20.301, while p1=lg90.046, ie, there are roughly 6 times more 1s than 9s. The very same formula for digit occurrences holds if to use any other number (except10 where p,q are mutually prime numbers) as the base for the geometrical progression, eg 3 ,5 and soon.
Can you prove this distribution property?Even if
__________________
The real voyage of discovery consists not in seeking new landscapes, but in having NEW EYES.
kaiyi is offline   Reply With Quote
markwongsk Male
Developer
 
markwongsk's Avatar
 
Join Date: Nov 2008
Posts: 717
  #23 Old 10-08-2010 Default Re: Guide to learn programming

[quote=kaiyi;341241]I have taken programming of scientists as 1 of my subjects(im a science student). I have never learn programming before(we are using Python) and the lecturer only talked about the benefits and how elegant the Python is though our class has started for 3 weeks....

Here comes my first assignment, I just want to know what it wants me to do (i cant understand it...) Am i suppose to prove the formula in the first part or i can use the formula straight away? 2nd part i totally dont have idea...maybe just give up it...


The mathematical proposition

Consider a sequence formed by members of the geometrical progression with the base2, 2^n , n=0,1,2,....If to retain only 1st(left-most) digit in sequence member, we shall instead get the following:

1,2,4,8,1,3,6,1,2,5,1,2,4,8,1,3,6,1,2,5,1,2,4,8,1, ...

It turns out that the distribution of digits(1,2,...0) in this sequence follows a certain law, which can be de-duced from a more general theorem proved in the beginning of the XXcentuary by the German mathematician HermannWeyl. One manifestation of this distribution law (quite evident already in the above sequence),that 1 occurs more often then anyother digit,and the overall frequency of 1s occurrence is about30%. The precise
formula for all the digits is known:

pi = lg(i1)lg(i), i=1..9(lg is the base 10logarithm)

Which means that p=lg20.301, while p1=lg90.046, ie, there are roughly 6 times more 1s than 9s. The very same formula for digit occurrences holds if to use any other number (except10 where p,q are mutually prime numbers) as the base for the geometrical progression, eg 3 ,5 and soon.
Can you prove this distribution property?Even if
__________________
Per Aspera Ad Astra
markwongsk is offline   Reply With Quote
Silverlight Male
Super Junior Member
 
Join Date: Sep 2011
Posts: 5
  #24 Old 17-09-2011 Default Re: Guide to learn programming

Reading books and all may be effective.. but it can only do so much.
Go ahead and think of a simple project or application that you wanna accomplish.
Treat the language like a tool, experiment, and keep trying. No idea? look it up and understand it... along the way you will gain satisfaction of solving a problem and also hey i have app done!
Silverlight is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SPM] Sejarah day_dreamer SPM & STPM 63 29-08-2008 07:00 PM
MCA JPA Guide WiNd90 Jabatan Perkhidmatan Awam (JPA) Scholarships 19 17-05-2007 01:43 PM
The Good Universities Guide - Does anyone knows the ranking? wiced Education 10 11-09-2005 02:13 PM


All times are GMT +8. The time now is 11:12 PM.


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

ReCom stands for Reborn Community. It has no affiliation with other organizations that may share the same name. The views expressed in this website solely represent the authors point of view and do not necessarily reflect the views of ReCom Anchors and other ReCom users.


 

Page generated in 0.12893 seconds with 16 queries