\documentclass{article}
\usepackage[mathics]{latexalpha2}
\usepackage{asymptote}

\title{Tests for the \textsf{latexalpha2} package}
\author{Yi Liu}

\setlength\parindent{0pt}

\begin{document}
\maketitle

\subsection*{Test 1}
Input:
\begin{verbatim}
    $$ (x+y)^3 = \wolfram{Expand[(x+y)^3]}. $$
\end{verbatim}

Output:
$$ (x+y)^3 = \wolfram{Expand[(x+y)^3]}. $$

\subsection*{Test 2}
Input:
\begin{verbatim}
    $$ \int\frac{1}{x^3+1}\,dx = \wolfram{Integrate[1/(x^3+1),x]}. $$
\end{verbatim}

Output:
$$ \int\frac{1}{x^3+1}\,dx = \wolfram{Integrate[1/(x^3+1),x]}. $$

\subsection*{Test 3}
Input:
\begin{verbatim}
    \wolframsolve{a x^2+b x+c==0}{x}
\end{verbatim}

Output:
\wolframsolve{a x^2+b x+c==0}{x}

\subsection*{Test 4}
Input:
\begin{verbatim}
    \wolframdsolve{y'[x]+y[x]==a Sin[x]}{y[x]}{x}
\end{verbatim}

Output:
\wolframdsolve{y'[x]+y[x]==a Sin[x]}{y[x]}{x}

\subsection*{Test 5}
Input:
\begin{verbatim}
    \begin{figure}
        \wolframgraphics{Plot[Sin[x]+x,{x,0,10}]}{example}
        \input{example.asy}
        \centering
        \caption{Plot of $f(x)=\sin(x)+x$}
    \end{figure}
\end{verbatim}

Output: Figure 1

\begin{figure}
    \wolframgraphics{Plot[Sin[x]+x,{x,0,10}]}{example}
    \input{example.asy}
    \centering
    \caption{Plot of $f(x)=\sin(x)+x$}
\end{figure}

\end{document}
