Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucsd!swrinde!zaphod.mps.ohio-state.edu!uwm.edu!psuvax1!psuvm!barilvm!bimacs!ehrlich From: ehrlich@bimacs.BITNET (Gideon Ehrlich) Newsgroups: comp.lang.pascal Subject: Re: TP: Exponentiation? Message-ID: <2041@bimacs.BITNET> Date: 25 Jul 90 09:41:00 GMT References: <950036@hpclapd.HP.COM> Reply-To: ehrlich@bimacs.biu.ac.il.UUCP (Gideon Ehrlich) Organization: Bar-Ilan University, Israel. Lines: 9 In article <950036@hpclapd.HP.COM> defaria@hpclapd.HP.COM (Andy DeFaria) writes: >Perhaps I'm just brain-dead and unable to hear the doctor pronnounce me >comotose (sp?) but how to you do exponentiation in TP 4.0 (or 5.0 or 5.5). >I scanned the section about arithmetic operators in the TP book that I have >(5.5) and searched the index but I found no mention on exponentiation and >the usually "**" operator only produced a compile error. What gives? Very easy. Either use x**y = exp(y*ln(x)) or write your own function ,using Tailor sequence.