Skip to content
Tcl Source Code View Ticket
Login

View Ticket

More math functions

Deleted641143ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 19 years ago
Descriptionplain2002-11-20 10:38:35
Reading the Parrot bytecode docs
http://www.parrotcode.org/docs/parrot_assembly.pod.html
has inspired me to produce a list of the "missing"
transcendental functions which it would be nice if Tcl
provided implementations of (even if just in terms of
completeness!)

sec  - Secant (reciprocal of cosine)
asec - Inv.Secant
csc  - Cosecant (reciprocal of sine)
acsc - Inv.Cosecant
cot  - Cotangent (reciprocal of tangent)
acot - Inv.Cotangent
sech - Hyperbolic Secant (reciprocal of cosh)
csch - Hyperbolic Cosecant (reciprocal of sinh)
coth - Hyperbolic Cotangent (reciprocal of tanh)
log2 - Log to base 2
hobbsplain2002-11-23 06:31:21
Logged In: YES 
user_id=72656

my vote would be to put all these in tclx, unless they are 
guaranteed in the math lib (which I doubt).
dkfplain2006-03-16 16:27:34
Logged In: YES 
user_id=79902

Try the attached...
dkfplain2006-03-16 16:27:35
File Added - 171096: extrafuncs.tcl
msofer Ticket [641143ffff]: 1 change [History diff]2007-09-13 08:32:49
Log in (anonymous is fine) to add a comment.

Attachments: