Article View: borland.public.jbuilder.java.language
Article #16155help, please
From: Ivan Alexeivich Tammet-Romanov
Date: Mon, 22 Mar 1999 00:00
Date: Mon, 22 Mar 1999 00:00
11 lines
997 bytes
997 bytes
I am trying to get this formula to work in JavaScript:
function MyFunction (G) {
F=prompt('Enter Frequency in MHz.',"");
D=prompt('Enter Distance in Km.',"");
G=32.5+log(20*(F)+20*log(D))
alert (G)}
Two inputs work fine, but I get error 'log not defined'. I thought the
log of a number was a global. What am I doing wrong?
(Using Netscape Communicator 4.05)
Technical Details
Message-ID:
<36F67ECB.2E2C873A@twd.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,c00a67898c87ce87,start X-Google-Attributes: gidf74b3,public From: Ivan Alexeivich Tammet-Romanov <swr@twd.net> Subject: help, please Date: 1999/03/22 Message-ID: <36F67ECB.2E2C873A@twd.net> X-Deja-AN: 457629932 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsabuse@remarQ.com X-Trace: 922124034.890.100 NDCFSU77H7B6E9348C usenet1.supernews.com Organization: PeterStar Products MIME-Version: 1.0 NNTP-Posting-Date: Mon, 22 Mar 1999 17:33:54 GMT Newsgroups: borland.public.jbuilder.java.language