In what ways maths is important in computer programming? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

In what ways maths is important in computer programming?

give some example

6th Oct 2017, 3:23 AM
subham sahu
subham sahu - avatar
1 Resposta
+ 10
Essentially Maths is just a way or tool to help us to solve the problem. Let's say we going to sum from 1 to 100 (Gauss anyone? šŸ˜‰), we got 2 options: ā˜‘ Write a loop begins at 1 and accumulate the sum until 100 ā˜‘ Compute with formula: (100 Ɨ 101) Ć· 2 We still get the same output for both options but we can see that the latter is more efficient.
6th Oct 2017, 3:43 AM
Zephyr Koo
Zephyr Koo - avatar