New course! Every coder should learn Generative AI!
Try a free lesson+ 1
In what ways maths is important in computer programming?
give some example
1 Answer
+ 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.