   class _ImplicitMultiplication
     onNumeric: (expression)->
       last = expression.last()
-      if last && last.isNumber()
+      if last && (last.isNumber() || last instanceof RightParenthesis || last instanceof Pi)
         expression.cloneAndAppend(Multiplication.build())
       else
         expression

      subexpr = expression.subExpression()
      evaluated = subexpr.eval()
      subexpr.removeFromExpression()
      evaluated

  class_mixer(LeftParenthesis)

    subExpression: ->
      new SubExpression(@expression, @expression_index + 1)

  # TODO rewrite this in a functional style
  class SubExpression
    constructor: (@expression, @at)->
      @subexpression = @findSubexpression()
