I usually work with software called Wolfram Mathematica. With this software I perform mathematical calculations and get their results.
I usually do the following:
Button Right Click -> Copy As -> LaTeX
With that I get my TeX code.
I would like to know if there is any script (macro) or if it is possible to compile a TeX file so that it can import this data from an external file.
MWE
\documentclass{article}
\usepackage{amsmath, amssymb, graphics, setspace}
\begin{document}
\begin{doublespace}
\({\int_0^{10} \left(x^2 + 3x - \frac{1}{3}\right) \, dx}\)
\end{doublespace}
\begin{doublespace}
\(480\)
\end{doublespace}
\end{document}


.txtfile; from there you can copy them and paste into the LaTeX source file. Otherwise, how would you expect some (LaTeX editor/IDE?) script to know where to place what? – murray Oct 31 '17 at 15:07sagetexpackage. That gives you access to an open source computer algebra system version (similar to Mathematica). Search this site for various examples, such as my answer here. – DJP Oct 31 '17 at 15:13sagetex. Changing some entries in the matrix will result in the CAS Sage calculating a new transpose and calculating a new product. You don't have to update the result--it does it for you. See link I gave in earlier comment. The documentation for the package is here. – DJP Oct 31 '17 at 15:20