Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #31958

Re: Why JavaScript has two zeros

From Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid>
Newsgroups comp.lang.javascript
Subject Re: Why JavaScript has two zeros
Date 2016-12-25 22:15 +0000
Organization Home
Message-ID <wY4VzV2sTEYYFw8W@invalid.uk.co.demon.merlyn.invalid> (permalink)
References <84234e86-ac01-4a9e-9d21-dc1cdc30678c@googlegroups.com> <1bm6A.536745$IJ6.194196@fx46.am4> <LMKbWltZUGXYFwDf@invalid.uk.co.demon.merlyn.invalid> <XnsA6E75C3BFEF28eejj99@194.109.6.166>

Show all headers | View raw


In comp.lang.javascript message <XnsA6E75C3BFEF28eejj99@194.109.6.166>,
Fri, 23 Dec 2016 09:04:01, Evertjan. <exxjxw.hannivoort@inter.nl.net>
posted:

>Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid> wrote on 23 Dec 2016
>in comp.lang.javascript:
>
>> In JavaScript one can set PlusI = [0,+1] and MinusI = [0,-1], and write
>> arithmetic functions to operate on and return values of that nature.  It
>> is known that Math.POW(PlusI, PlusI) should return
>> 0.207879576350761908546955... - and other values.
>
>That I believe you are right is based on faith that it should,
>not on factual knowledge that it does or must.


function i2i() {
  for (var N=-5 ; N<6 ; N++)
    document.writeln(N, "\t", Math.exp(-Math.PI/2 + 2*Math.PI*N))
  }

<https://en.wikipedia.org/wiki/Imaginary_unit#i_raised_to_the_power_of_i>

-- 
 (c) John Stockton, Surrey, UK.  ¬@merlyn.demon.co.uk   Turnpike v6.05   MIME.
 Merlyn Web Site <                       > - FAQish topics, acronyms, & links.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Why JavaScript has two zeros abdulapopoola@gmail.com - 2016-12-19 21:09 -0800
  Re: Why JavaScript has two zeros "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-12-20 11:46 +0100
    Re: Why JavaScript has two zeros John Harris <niam@jghnorth.org.uk.invalid> - 2016-12-20 17:58 +0000
      Re: Why JavaScript has two zeros "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-12-20 23:56 +0100
        Re: Why JavaScript has two zeros John Harris <niam@jghnorth.org.uk.invalid> - 2016-12-21 13:59 +0000
  Re: Why JavaScript has two zeros <cyber@2trom.com> - 2016-12-21 02:55 +0000
    Re: Why JavaScript has two zeros Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid> - 2016-12-22 23:43 +0000
      Re: Why JavaScript has two zeros "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-12-23 09:04 +0100
        Re: Why JavaScript has two zeros Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid> - 2016-12-25 22:15 +0000
        Re: Why JavaScript has two zeros Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid> - 2016-12-25 23:39 +0000
      Re: Why JavaScript has two zeros Tim Streater <timstreater@greenbee.net> - 2016-12-23 09:05 +0000
      Re: Why JavaScript has two zeros Ram Tobolski <ramtob@gmail.com> - 2016-12-24 02:28 -0800
        Re: Why JavaScript has two zeros Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid> - 2016-12-25 22:00 +0000
    Re: Why JavaScript has two zeros "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-12-26 12:08 -0800
  Why JavaScript has two zeros Ram Tobolski <ramtob@gmail.com> - 2016-12-21 10:20 -0800
  Re: Why JavaScript has two zeros "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-12-26 12:03 -0800

csiph-web