parameters: (functional, testfunc, do_simplifications=False)
return_statement: return rhs
docstring: This computes the RHS vector
  
      Keyword arguments:
      functional -- The functional to derivate
      testfunc -- The test functions
      do_simplifications -- If apply simplifications
docstring_summary: This computes the RHS vector
docstring_tokens: This computes the RHS vector
function: def Compute_RHS(functional, testfunc, do_simplifications=False):
      """ This computes the RHS vector
  
      Keyword arguments:
      functional -- The functional to derivate
      testfunc -- The test functions
      do_simplifications -- If apply simplifications
      """
      rhs = Matrix( zeros(testfunc.shape[0],1) )
      for i in range(0,testfunc.shape[0]):
          rhs[i] = diff(functional[0,0], testfunc[i])
  
          if(do_simplifications):
              rhs[i] = simplify(rhs[i])
  
      return rhs
function_tokens: def Compute_RHS ( functional , testfunc , do_simplifications = False ) : rhs = Matrix ( zeros ( testfunc . shape [ 0 ] , 1 ) ) for i in range ( 0 , testfunc . shape [ 0 ] ) : rhs [ i ] = diff ( functional [ 0 , 0 ] , testfunc [ i ] ) if ( do_simplifications ) : rhs [ i ] = simplify ( rhs [ i ] ) return rhs