Sym                  package:Ryacas                  R Documentation

_S_y_m

_D_e_s_c_r_i_p_t_i_o_n:

     The Symbol interface to yacas.

_U_s_a_g_e:

     Sym(...)
     Expr(x)

_A_r_g_u_m_e_n_t_s:

       x: An R expression.

     ...: An R character string or object that can be coerced to a
          character string.

_D_e_t_a_i_l_s:

     An object of class  '"Sym"' is internally a yacas character
     string. An object of class '"Expr"' is internally an R expression.
     One can combine such objects using the Math and Ops R operators
     (see help(Math) and help(Ops) for a list).  Also there are methods
     for a number of R generics:  'as.character.Sym',
     'as.expression.Sym', 'determinant.Sym', 'deriv.Sym' and
     'print.Sym' and yacas-oriented functions: Clear, Conjugate, 
     Expand,  Factor,  Factorial,  I,  Identity, Infinity, Integrate, 
     Inverse, InverseTaylor,  Limit,  List,  N,  Newton,  Pi, 
     Precision,  PrettyForm,  PrettyPrinter,  Set,  Simplify,  Solve, 
     Subst, Taylor,  TeXForm, Ver and " all of which have the same
     meaning as the corresponding yacas commands. Try
     'vignette("Rycas-Sym")' for many examples.

_V_a_l_u_e:

     'Sym' returns a '"Sym"' object and 'Expr' returns an '"Expr"'
     object.

_N_o_t_e:

     Currently the only 'Expr' methods implemented are
     as.character.Expr, deriv.Expr, Math.Expr, Ops.Expr and print.Expr.

_E_x_a_m_p_l_e_s:

     ## Not run: 
     x <- Sym("x")
     x*x
     Integrate(x*x, x)
     Sym("

     acos(Sym("1/2"))

     y <- Exprq(x)
     y*y
     deriv(y*y, y)
     Exprq(acos(1/2))
     ## End(Not run)

