[Tugindia] formula and calculations

E. Krishnan ekmath at asianetindia.com
Thu Dec 4 14:49:19 CET 2008


On Thu, 4 Dec 2008, Ajay Shah wrote:

> On Thu, Dec 04, 2008 at 05:39:19AM +0530, E. Krishnan wrote:

>> 2. In a Linux system, we can shell-escape (pdflatex -shell-escape) to the
>>     commandline calculator "bc" as in
>>
>>     Let $c=a^2+b^2$. For $a=2$ and $b=4$, we get
>>     $c=\immediate\write18{echo "2^2+4^2"|bc -l>answer.tex}\input{answer}$
>
> No, what Krishnan's fantasising about is mathematics software that
> uses TeX math notation. :-)

It so happens that in this case the fantasy works! Never claimed the 
translation from TeX to bc (or some other program) would be straight 
forward (for example \int).

-- 
Krishnan


More information about the tugindia mailing list