🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.text
Article #150

calculating sqrt in TeX? is it possible?

#150
From: Sunil Podar
Date: Sun, 29 Dec 1985 03:21
26 lines
1523 bytes
Is it possible to calculate sqrt of a dimension in TeX? E.g. for a
dimen=0.5pt, I would like 0.707pt to be the sqrt, and for
dimen=9.0pt, would like 3.0pt as the sqrt.
(I gave above examples for clarfying what I want. The results would
 be different if one worked in integers i.e. by converting dimen's to
 count's)

I looked in the TeXbook everywhere, and concluded that it has not
been provided. If indeed I am right, then how difficult would it be
to make it available in TeX as a primitive command. Is there any
other simple way to calculate sqrt (please, no power series, I think
it will be too much for TeX and would be too slow). 

I also wonder if there's a good reason for omitting sqrt and other
functions such as trignometric functions from TeX's repertoire.

I will appreciate any responses. thanks in advance.


-- 
Sunil Podar
SUNY at Stony Brook

	CSNET: podar@sbcs.csnet
	ARPA: podar%suny-sb.csnet@csnet-relay.arpa
	UUCP: {allegra, hocsd, philabs, ogcvax} !sbcs!podar
Technical Details
Message-ID: <36@sbcs.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!sbcs!podar

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site sbcs.UUCP
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!sbcs!podar
From: podar@sbcs.UUCP (Sunil Podar)
Newsgroups: net.text
Subject: calculating sqrt in TeX? is it possible?
Message-ID: <36@sbcs.UUCP>
Date: Sat, 28-Dec-85 22:21:40 EST
Article-I.D.: sbcs.36
Posted: Sat Dec 28 22:21:40 1985
Date-Received: Sun, 29-Dec-85 20:11:41 EST
Distribution: net
Organization: Computer Science Dept, SUNY@Stony Brook
Lines: 26