[Tugindia] formula and calculations

H.S.Rai hardeep.rai at gmail.com
Sat Dec 20 12:04:49 CET 2008


On Sat, Dec 6, 2008 at 8:27 PM, H. S. Rai <hsrai at gmx.net> wrote:
>
> Now it may be OT.
>
> Although I have never used Maxima, but Internet search suggest that
> Maxima with TeXmacs may help me.

I found "sage" http://www.sagemath.org/ very promising. What I could
found by now may be seen at:

http://gndec.ac.in/~hsrai/tmp/sageLaTeX.pdf

Please note formula after "Using formula" in pdf file has not been
entered manually in .tex file, rather has been provided by SAGE from
formula used for calculation.

Source is below signature.

This is my first interaction with Math software (CAS). You any one
know better way to achieve what I requested in original most, is
requested to share his / her wisdom.

-- 
H.S.Rai

============================================

\documentclass{article}
\title{Analysis and Design by SAGE in \LaTeX}
\author{Hardeep Singh Rai}

\usepackage{sagetex}

\begin{document}
\maketitle

\begin{sageblock}
 A(D) = pi/4*D^2
 dia = 2.5
 area = A(dia)
\end{sageblock}

Using formula
\[
A = \sage{latex(A(D))}
\]
for $D = \sage{dia.n(digits=4)}$, area $A = \sage{area.n(digits=4)}$

\end{document}


More information about the tugindia mailing list