Jump to content

Talk:Exponentiation operator: Difference between revisions

m
(→‎AWK: a^b = e^{b \times \log a})
Line 25:
 
: For example, [[Real constants and functions#bc]] uses <code>e(l(2) * -3.4)</code> to calculate 2 to the power of -3.4. This formula requires a >= 0, unless you can use [[Arithmetic/Complex|complex numbers]]. --[[User:Kernigh|Kernigh]] 18:00, 7 September 2011 (UTC)
 
::The exponent operator is causing confusion. I am under the impression that some versions of awk do not have this. Looking at various documentation on the internet, the caret operator is not on the list of operators. However, some documents state that POSIX lists the caret, but that doesn't mean anything because that could be a retrofit. Did System 5 awk supported the caret as an exponent operator? I only have it listed as a regular expression anchor. I was hoping to come up with a formula that does not use the exponent operator altogether. [[User:Markhobley|Markhobley]] 22:34, 7 September 2011 (UTC)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.