Why am I getting Javascript (form) or (this.form) errors?

D

Don Lancaster

Paul said:
I don't see any code there (a few busted links). What sort of algorithm
is it that you are trying to converge?


See http://www.tinaja.com/glib/msinexec.pdf for a tutorial and the
underlying 14 x 14 equation set to be deterministically solved.

--
Many thanks,

Don Lancaster voice phone: (928)428-4073
Synergetics 3860 West First Street Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml email: (e-mail address removed)

Please visit my GURU's LAIR web site at http://www.tinaja.com
 
M

MassiveProng

Feel free to contribute here in if you ever
have anything useful to say; but not otherwise.

Whatever. We run a huge Oracle system at work, and it has issues
with the most recent java upgrade.

It was the first thing that came to mind. Like I said, it was no
big deal to have suggested it.
 
D

Dr J R Stockton

In comp.lang.javascript message said:
Presently exploring how to get this code to converge faster.
Preferably instantly.
Any suggestions?

It seems almost instant now.

Check that you are taking full advantage of symmetry, and not
calculating anything more than once - but I expect you did that. Don't
recalculate pi/180 or 180/pi - in fact, work entirely in radians and
cycles, except for I/O, of which there is little.

Minimise object lookups - e.g.
document.mainform.fp1e.value = p1ed ;
document.mainform.fp2s.value = p2sd ;
...
becomes
dmf = document.mainform // done only once

dmf.fp1e.value = p1ed ;
dmf.fp2s.value = p2sd ;
...

For me, setting Q = Math.sin globally and using Q(0.1) instead of
Math.sin(0.1) makes a small improvement.

p1e = eval (document.mainform.fp1e.value) // why eval? use
p1e = +document.mainform.fp1e.value // see FAQ

Many, at least, of your eval calls are obviously not inner-loop; but I
doubt whether any are needed.


I agree with what other CLJ users wrote - for a better S/N, post only
there (FU set).

I did not have time to determine your iteration algorithm, and that's
where the greatest gains must lie.


It appears, from that page, that it deals with something related to work
I used to do - but perhaps you already know that. The page desperately
needs a SMALL box near the top saying what a Magic Sinewave is (mainly
for those who know the subject but not the term) with a link to
<http://www.tinaja.com/glib/msinexec.pdf>.

I tried your code on my automatic re-indenter, but it seemed to be
taking infinite time on that amount.

Once upon a time, I made a 16 2/3 Hz PSD (mains-locked) by switching
(with reeds!) positive for one cycle of 50 Hz, off for half a cycle,
negative for one cycle, off for half a cycle, repeated. Earlier, I
built a three-phase oscillator with (IIRC) three OC71 transistors and 6
resistors - it generated 200 kHz trapezium waves, more or less.
 
D

Dr J R Stockton

In comp.lang.javascript message <[email protected]
rlyn.invalid>, Sun, 25 Mar 2007 22:13:35, Dr J R Stockton
I did not have time to determine your iteration algorithm, and that's
where the greatest gains must lie.

I've looked again.

Basically, you have around a dozen parameters marking the positions of
the transitions, and you want to adjust those for the best result; you
can calculate the goodness of the result, and want to maximise it.

That's a standard problem, and code for it has been around for almost as
long as there has been code.

In particular, if you can differentiate the goodness with respect to
each of the parameters, coding those functions, there is a method giving
rapid convergence; I used it long ago. NAG, http://www.nag.co.uk/,
should have it. But you need a professional to locate the right routine
for your case.

Have you read through Knuth?

You give your address as in AZ in the cited PDF - does Azerbaijan have
any good universities?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,056
Members
48,769
Latest member
Clifft

Latest Threads

Top