update expectation algorithm for more efficiency; not kwargs instead of len(kwargs) == 0
update expectation algorithm for more efficiency; not kwargs instead of len(kwargs) == 0

kaushik94/sympy,kaushik94/sympy,kaushik94/sympy