Assignment in Gradient Descent Algorithm

Today i learn about Gradient Descent Algorithm. There is something interesting in that equation that very common use in Computer Science.

“=”

My lecturer in university never said that in programming language like Java, C, or Python this sign is for assignment not an equals.

But in Math the sign “=” is used to check that value from left side is equals to hand side. Just like :

a = b (this is means that value of variable a and value of variable b is equals)

5x^2 + 2x + 3 = 0 ( this is means that equation in the left is equals to zero)

But in programming we use this sccript :

a = a + 1 ( this is means, value of variable a is value variable a + 1) 

And in math we use this notation :

a := a+1 (ovveride new value of a with equation in the right hand side)
 
2
Kudos
 
2
Kudos

Now read this

Practicing Unit Test and TDD part 1

Today, i’m very curious about Unit Test especially Unit Test in android. So, first what is Unit Test, according to wikipedia (http://en.wikipedia.org/wiki/Unit_testing) : unit testing is a software testing method by which individual... Continue →