abs | abs(x) | abs(x) | ${\\lvert{x}\\rvert}$ |
\n",
"acos | acos(x) | acos(x) | ${\\arccos\\left(x\\right)}$ |
\n",
"acosh | acosh(x) | acosh(x) | ${\\cosh^{-1}\\left(x\\right)}$ |
\n",
"asin | asin(x) | asin(x) | ${\\arcsin\\left(x\\right)}$ |
\n",
"asinh | asinh(x) | asinh(x) | ${\\sinh^{-1}\\left(x\\right)}$ |
\n",
"atan | atan(x) | atan(x) | ${\\arctan\\left(x\\right)}$ |
\n",
"atan2 | atan2(x) | atan2(x) | ${\\atan2\\left(x\\right)}$ |
\n",
"atanh | atanh(x) | atanh(x) | ${\\tanh^{-1}\\left(x\\right)}$ |
\n",
"ceil | ceil(x) | ceil(x) | ${\\left\\lceil{x}\\right\\rceil}$ |
\n",
"copysign | copysign(x) | copysign(x) | ${\\copysign\\left(x\\right)}$ |
\n",
"cos | cos(x) | cos(x) | ${\\cos\\left(x\\right)}$ |
\n",
"cosh | cosh(x) | cosh(x) | ${\\cosh\\left(x\\right)}$ |
\n",
"degrees | degrees(x) | degrees(x) | ${x\\cdot\\frac{360}{2\\pi}}$ |
\n",
"erf | erf(x) | erf(x) | ${\\erf\\left(x\\right)}$ |
\n",
"erfc | erfc(x) | erfc(x) | ${\\erfc\\left(x\\right)}$ |
\n",
"exp | exp(x) | exp(x) | ${e^{x}}$ |
\n",
"expm1 | expm1(x) | expm1(x) | ${e^{x}-1}$ |
\n",
"fabs | fabs(x) | fabs(x) | ${\\lvert{x}\\rvert}$ |
\n",
"factorial | fact(x) | x! | ${x!}$ |
\n",
"factorial2 | 'factorialk' |
\n",
"floor | floor(x) | floor(x) | ${\\left\\lfloor{x}\\right\\rfloor}$ |
\n",
"fmod | fmod(x) | fmod(x) | ${\\fmod\\left(x\\right)}$ |
\n",
"frexp | frexp(x) | frexp(x) | ${\\frexp\\left(x\\right)}$ |
\n",
"fsum | fsum(x) | fsum(x) | ${\\fsum\\left(x\\right)}$ |
\n",
"gamma | gamma(x) | gamma(x) | ${\\Gamma\\left(x\\right)}$ |
\n",
"gcd | gcd(x) | gcd(x) | ${\\gcd\\left(x\\right)}$ |
\n",
"hypot | hypot(x) | hypot(x) | ${\\hypot\\left(x\\right)}$ |
\n",
"isclose | isclose(x) | isclose(x) | ${\\isclose\\left(x\\right)}$ |
\n",
"isfinite | isfinite(x) | isfinite(x) | ${\\isfinite\\left(x\\right)}$ |
\n",
"isinf | isinf(x) | isinf(x) | ${\\isinf\\left(x\\right)}$ |
\n",
"isnan | isnan(x) | isnan(x) | ${\\isnan\\left(x\\right)}$ |
\n",
"ldexp | ldexp(x) | ldexp(x) | ${\\ldexp\\left(x\\right)}$ |
\n",
"lgamma | log(abs(gamma(x))) | log(abs(gamma(x))) | ${\\ln\\lvert\\Gamma\\left({x}\\rvert)\\right)}$ |
\n",
"log | log(x) | log(x) | ${\\ln\\left(x\\right)}$ |
\n",
"log10 | log10(x) | log10(x) | ${\\log_{10}\\left(x\\right)}$ |
\n",
"log1p | log1p(x) | log1p(x) | ${\\ln\\left(1-{x}\\rvert)}$ |
\n",
"log2 | log2(x) | log2(x) | ${\\log_2\\left(x\\right)}$ |
\n",
"modf | modf(x) | modf(x) | ${\\modf\\left(x\\right)}$ |
\n",
"pow | pow(x) | pow(x) | ${\\pow\\left(x\\right)}$ |
\n",
"radians | radians(x) | radians(x) | ${x\\cdot\\frac{2\\pi}{360}}$ |
\n",
"remainder | remainder(x) | remainder(x) | ${\\remainder\\left(x\\right)}$ |
\n",
"sin | sin(x) | sin(x) | ${\\sin\\left(x\\right)}$ |
\n",
"sinh | sinh(x) | sinh(x) | ${\\sinh\\left(x\\right)}$ |
\n",
"sqrt | sqrt(x) | sqrt(x) | ${\\sqrt{x}}$ |
\n",
"tan | tan(x) | tan(x) | ${\\tan\\left(x\\right)}$ |
\n",
"tanh | tanh(x) | tanh(x) | ${\\tanh\\left(x\\right)}$ |
\n",
"trunc | trunc(x) | trunc(x) | ${\\left\\lfloor{x}\\right\\rfloor}$ |
\n",
"
\n"
],
"text/plain": [
"Table(len=47,titles=[],data=[['abs', 'abs(x)', 'abs(x)', abs(x)], ['acos', 'acos(x)', 'acos(x)', acos(x)], ['acosh', 'acosh(x)', 'acosh(x)', acosh(x)], ['asin', 'asin(x)', 'asin(x)', asin(x)], ['asinh', 'asinh(x)', 'asinh(x)', asinh(x)]])"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"functions=default_context.functions # functions known by default to Expr\n",
"t=Table()\n",
"for n in functions:\n",
" f=functions[n][0] # get the function itself\n",
" try:\n",
" e=Expr(f)\n",
" t.append([n,repr(e),str(e),e])\n",
" except Exception as e:\n",
" t.append([n,e])\n",
"t"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"as LaTeX (default) : ${\\sqrt{x}}$"
],
"text/plain": [
"