+ {latexSymb} | R Documentation |
Arithmetic
Description
There are natural interpretations for doing arithmetic operations on objects of class latexSymb
. Namely, their output is another object of that class, constructed using the repr
of the arguments and the corresponding symbol for the operation. These functions implement the elementary ones.
Usage
a + b
a - b
a / b
a * b
a ^ b
under(a,b)
Arguments
a |
An object that can be passed to |
b |
An object that can be passed to |
Value
An object of class latex_symb
whose repr
is:
For
+
and-
, the concatenation ofa
'srepr
, the corresponding arithmetic symbol, andb
'srepr
.For
*
, the concatenation of therepr
, with a space between.For
/
,a
andb
'srepr
inside\frac{}{}
.For
^
,a
'srepr
, a caret andb
'srepr
in braces.For
under
,a
'srepr
, an underscore andb
'srepr
in braces
Examples
a <- lsymb("\\alpha")
b <- lsymb("\\beta")
a+b
a-b
a*b
a/b
a^b
under(a,b)
[Package latexSymb version 1.0.0 Index]