Posts

Showing posts with the label mathematics for computer science

Introduction to mathematics for computer science - learn by practice and share

Image
number base photo - day three Welcome to day three! I hope you all doing fine and Right. me also. In previous tutorial we have learned that, what is number base, what is decimal and binary number, I we have learned how to convert between binary to decimal number. Today, I will post some question, and yeah answer too, okay let's start with that. ❓ 1. Describe one way of converting decimal numbers to binary numbers. Answer:  Repeatedly divide the decimal number by 2, carefully noting the remainder each time. The binary number is formed by writing the remainders in reverse order. ❓ 2. What number is the binary system based upon? Answer: Based on 2. 0 & 1. ❓ 3. How many different digits occur in the binary system? Answer: 2 different digits occur. they are 0 & 1. ❓  1. Convert the following decimal numbers to binary numbers:  (a) 19 (b) 36 (c) 100 (d) 796 (e) 5000. Answer of (a):                                                       To convert to binary, the decimal number 19

Introduction to mathematics for computer science - learn by practice and share part two

Image
Base 16 - See a good example Going back with my new tutorial on introduction to mathematics for computer science today! Today you will learn: what is binary number.   convert beetween binary & decimal. Let's start! What is binary?? A binary system uses base 2. A binary system has only two digits: 0 and 1. Numbers in base 2 are called binary digits or simply bits for short. Binary numbers are based on powers of 2. Binary numbers have important applications in computer science and electronic engineering. Note:  The binary system is based upon powers of 2. Now, I am going to show how to convert from binary to decimal. ⍰  Consider the binary number 110101 2 . As the base is 2 this means that powers of 2 essentially replace powers of 10: So,                              110101 2  =  1(2 5 ) + 1(2 4 ) + 0(2 3 )+ 1(2 2 )+ 0(2 1 )+ 1(2 0 )                                                             =  1(32)+ 1(16)+ 0(8)+ 1(4)+ 0(2)+ 1(1)                                          

Introduction to mathematics for computer science - learn by practice and share

Image
Assalamu Alakum / Greetings...  I hope you all fine my marcy by Allah. Me also.  Assuming that, you come here to learn Introduction to mathematics for computer science - learn by practice and share , then you're in right place.  Firstly, let me introduce with you. I am Nurujjaman Pollob from bangladesh, I am BSc in CSE (AI & Machine Learning Pathway) candidiate in University of London, Beside I make Android App, and Website.  However, I love programming. it's my way to live.  without programming in a day, my whole day become spoil :D.  Okay, in this introductory post, I will going to share why we should learn mathematics for computer science, and share my insight with you for next steps. Why you should learn mathematics? You love programming, am I right? if yes then you may be probably know that, to become a good programmer, you must need to have mathematical knowledge in order to understand and solve complex problem, make better algori