add tag
Anonymous 14035
I tried this code with two examples:


```
\documentclass{article}
\usepackage{fourier-otf}
\usepackage{luacas}
\usepackage{amsthm}
\theoremstyle{definition}
\newtheorem{ex}{Example}
\usepackage[top=15mm,bottom=20mm,left=2cm,right=2cm]{geometry}

\begin{document}
\begin{ex}
\begin{CAS}
vars('x')
u = topoly(x^2 - 5*x + 6)
du = u:derivative() 
v = du/2
f = diff(sqrt(u),x)
\end{CAS}
Let be given the function
\[f(x) = \sqrt{\print{u}}\]
Using by hand 
\[y' = \dfrac{\print{du}}{2\sqrt{\print{u}}}.\]
Using luacas
\[ y' = \print*{f}.\]
How can I write the output of luacas in the form?
\[y' = \dfrac{x-2}{\sqrt{x^2 - 4x + 6}}.\]
\end{ex}

\begin{ex}
\begin{CAS}
vars('x')
u = topoly(x^2 - 4*x + 6)
du = u:derivative() 
v = du/2
f = diff(sqrt(u),x)
\end{CAS}
Let be given the function
\[f(x) = \sqrt{\print{u}}\]
Using by hand 
\[y' = \dfrac{\print{du}}{2\sqrt{\print{u}}} =  \dfrac{\print{v}}{\sqrt{\print{u}}}.\]
Using luacas
\[ y' = \print*{f}.\]
How can I write the output of luacas in the form?
\[y' = \dfrac{x-2}{\sqrt{x^2 - 4x + 6}}.\]
\end{ex}

\end{document} 
```
![image.png](/image?hash=b4d027835dd386e79a6fb56a082fe3e42dce3761efb8703eaea407a6850b9a0e)

This room is for discussion about this question.

Once logged in you can direct comments to any contributor here.

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.