[Tugindia] formula and calculations

S. venkataraman svenkat at ignou.ac.in
Fri Dec 5 05:48:21 CET 2008


On Thu, Dec 4, 2008 at 10:58 PM, H.S.Rai <hsrai at gmx.net> wrote:

> On Thu, Dec 4, 2008 at 5:39 AM, E. Krishnan <ekmath at asianetindia.com>
> wrote:
> > On Wed, 3 Dec 2008, H.S.Rai wrote:
> >
> >> Is there some trick / wayout or addon, by which formula written in
> >> LaTeX may be evaluated by substituting values
> <snip>
> >    Let $c=a^2+b^2$. For $a=2$ and $b=4$, we get
> >    $c=\sumsquare{2}{4}$
>
> But you have entered formula twice, once for calculation purpose, and
> second time for display. I wished to enter it once, then by some mean
> we should able display it and get the calculations done (if not
> comples like \int, may be simple like division, multiplication etc).
> So that chances of error are eliminated.
>
> For doing thing as you suggested, I prefer to generate .tex file from
> C++ or PHP, as I am not that good in LaTeX.
>
> > PS: Hai! long time no see
>
> I am working in an environment where no one uses LaTeX. So I am also
> not able to work much with LaTeX. But when ever I plan to do something
> serious work, I have to thing about LaTeX.
>
> --
> H.S.Rai
>  _______________________________________________
> Home:        http://www.tug.org.in/
> TeX FAQ:     http://www.tex.ac.uk/faq
> unsubscribe: http://tug.org/mailman/listinfo/tugindia
>

Apparently, with Luatex, which has lua language
interpreter embedded in it, many of these things will be possible.
There is also perltex, that allows use of PERL commands in
latex document.  The author( I have forgotten the name.)
says that the same package can be adapted to any scripting language
like Python.
S. Venkataraman


More information about the tugindia mailing list