Optimize calculations by creating a temporary variable temp. Also simplify the second expression based on input from @smichr
Optimize calculations by creating a temporary variable temp. Also simplify the second expression based on input from @smichr

skidzo/sympy,chaffra/sympy,jaimahajan1997/sympy,yashsharan/sympy,chaffra/sympy,kaushik94/sympy,yashsharan/sympy,kaushik94/sympy,kaushik94/sympy,jaimahajan1997/sympy,chaffra/sympy,skidzo/sympy,madan96/sympy,jaimahajan1997/sympy,madan96/sympy,yashsharan/sympy,madan96/sympy,skidzo/sympy