Back


Newsgroup sci.math.num-analysis 28737

Directory

Subject: g++ compiler v.2.7.2 -- From: "M. Seto"
Subject: Re: Pronunciation of LaTeX -- From: Mark L. Pappin
Subject: Prime Factorization -- From: "Andreas Sikström"
Subject: Re: Division by 2 -- From: Bo Cai
Subject: Re: Question -- From: jarausch@numa1.igpm.rwth-aachen.de (Helmut Jarausch)
Subject: SUMMARY: Computation of the inverse of the error function -- From: Olivier Siohan
Subject: Re: g++ compiler v.2.7.2 -- From: Oleg Krivosheev
Subject: Linear Complementarity Library? -- From: Gabor Pataki
Subject: Need Contouring Algorithm -- From: Al Gerheim
Subject: Re: g++ compiler v.2.7.2 -- From: boyse@netcom.com (William Boyse)
Subject: Re: Need Contouring Algorithm -- From: watson@ned.dem.csiro.au (David Watson)
Subject: HELP : I need a Spagetti Code Cleaner. -- From: Matt Davies
Subject: Re: Errata for Abramowitz/Stegun? -- From: harper@kauri.vuw.ac.nz (John Harper)
Subject: Re: fortran77 compiler for sun/sparc 20 -- From: Dave Love
Subject: ODE23/ODE45 Question -- From: "W.J.Jenkins"
Subject: Re: g++ compiler v.2.7.2 -- From: fjh@mundook.cs.mu.OZ.AU (Fergus Henderson)
Subject: Q: derivatives using MAPLE -- From: kenny@scbspk.mit.edu (Sean Patrick Kenny)
Subject: Re: [Q] Using pseudoinverse in Bayes discriminant function? -- From: Greg Heath
Subject: Re: Division by 2 -- From: kptben@aol.com
Subject: Just try this, it will work -- From: rscott@fcc.com_ (R. Scott Perry)
Subject: Gauss-Newton Method Non-Linear Regression -- From: AlanLivingston@acm.org (Alan J. Livingston)
Subject: Re: Quadratic constrained LS minimisation -- From: spellucci@mathematik.th-darmstadt.de (Peter Spellucci)
Subject: Re: eigenvalues of ill-cond matrices -- From: spellucci@mathematik.th-darmstadt.de (Peter Spellucci)
Subject: Multi-Processor BLAS -- From: fmb@netcom.com (Frank M. Barone)
Subject: Re: [Q] Using pseudoinverse in Bayes discriminant function? -- From: chris@bayes.agric.za (Christopher Gordon)
Subject: Re: Gauss-Newton Method Non-Linear Regression -- From: Hans D Mittelmann
Subject: Re: Just try this, it will work -- From: rscott@fcc.com_ (R. Scott Perry)
Subject: Re: Prime Factorization -- From: rnh@gmrc.gecm.com (Richard Herring)
Subject: Re: C code Eigenvalue and Eigenvector Solvers for Complex Self-Adjoint Matrices -- From: spellucci@mathematik.th-darmstadt.de (Peter Spellucci)
Subject: Least Square Approximation on a Circle -- From: hxl0577@ms3.hinet.net (Richard Li)
Subject: QMG1.1: mesh generation software -- From: vavasis@cosmo.mcs.anl.gov (Stephen A. Vavasis)

Articles

Subject: g++ compiler v.2.7.2
From: "M. Seto"
Date: Sun, 17 Nov 1996 18:39:05 GMT
In a program that I have written, I have no problem compiling the
following using an older version of g++:
#include 
complex i(0, 1);
int main()
{
complex M[2][2], r;
complex a;
....
etc.
}
However, our system administrator recently installed g++ version 2.7.2,
so that upon compilation, I get the error messages:
prog.c:10: parse error before `('
prog.c:10: warning: ANSI C++ forbids declaration `i' with no type or
storage class
prog.c:10: warning: initializer list being treated as compound
expression
prog.c: In function `int main()':
prog.c:16: `complex' undeclared (first use this function)
prog.c:16: (Each undeclared identifier is reported only once
prog.c:16: for each function it appears in.)
prog.c:16: parse error before `['
prog.c:20: warning: implicit declaration of function `int printf(...)'
prog.c:21: warning: implicit declaration of function `int scanf(...)'
prog.c:36: `M' undeclared (first use this function)
prog.c:39: `a' undeclared (first use this function)
prog.c:47: `r' undeclared (first use this function)
Can someone kindly let me know how to declare complex variables with
this new g++ compiler?
Thanks in advance,
Myron Seto
seto@natlab.research.philips.com
Return to Top
Subject: Re: Pronunciation of LaTeX
From: Mark L. Pappin
Date: Mon, 18 Nov 1996 09:12:15 GMT
pecora@zoltar.nrl.navy.mil (Louis M. Pecora) writes:
> Mike Yukish  wrote:
> > I pronounce it so it rhymes with  'luxury yacht'
> Like "La Tot" (short "o")?  Or are you pronouncing the "chaotic" as
> in church?
> 
> I'm confused.
That's because you missed Mike's (obscure?) Python reference[1].
BTW, /LAYtek/ and /LAHtek/ are two possibles Lamport gives.  RTFM.
-- 
Mark  do C,TeX,UNIX,PGP,SCUBA dont like SPAM
1. [2]"My name's Raymond Luxury Yacht, pronounced 'Throatwarbler
   Mangrove'"
2. my paraphrasing of which I'm sure regular a.f.m-p'ers will
   correct.
Return to Top
Subject: Prime Factorization
From: "Andreas Sikström"
Date: 17 Nov 1996 17:56:59 GMT
Is there anyone who knows where I can get hold of a good/fast algorithm for
prime factorization of integers?
/Andreas
-- 
******************************************************************
* Andreas Sikström   *  Email:      sik@ludd.luth.se             *
* Midvinterstigen 7  *  Home Page:  http://www.ludd.luth.se/~sik *
* S-974 51 Luleå     *                                           *
* Sweden             *                                           *
******************************************************************
Return to Top
Subject: Re: Division by 2
From: Bo Cai
Date: Mon, 18 Nov 1996 12:12:46 GMT
John Hench wrote:
> 
> I have a quick question:  Do most computers treat
> the division of a (real) floating point number by
> 2 differently than division by an arbitrary scalar?
> It seems to me more related to addition to me,
> since the exponent of the floating point number
> is decremented.  I guess what I'm driving at is
> this: is it faster to divide by two than to
> divide by an arbitrary scalar?  I suppose that
> every computer is different, but I'm just trying
> to get a feel for this...
> 
> Thanks, John
> 
The answer is ... it depends.  If the numbers involved are both integers
then division
will be faster than if they are real. In both cases, I don't believe
that division
by two is treated differently from any other division simply because of
the extra
processing required to check that a number is being divided by two.  
If you were writing assembler level code then instead of dividing by two
you could
shift the number to the right once (bitwise) which will be faster than
dividing. It is
conceivable that a 'clever' compiler might check to see if an integer is
being divided
by a power of 2 and insert the appropriate number of right shifts.  I
suppose this would also apply to multiplication by 2 or 2^N (shift left
N times).
Then again ... I may be wrong.
channing
Return to Top
Subject: Re: Question
From: jarausch@numa1.igpm.rwth-aachen.de (Helmut Jarausch)
Date: 18 Nov 1996 13:17:17 GMT
In article <328CC813.1569@highend.com>, Michael  writes:
|> I'm solving an ODE system:
|> 
|>    d2_x/dt_2=f1(t,x,y,z,...)
|>    d2_y/dt_2=f2(t,x,y,z,...)
|>    d2_z/dt_2=f3(t,x,y,z,...)
|> 
|> When I use a numerical method to calculate x(t), y(t), z(t), precision
|> is proportional to dt in n-th power. However, 
|> I need to calculate y,z as functions of x. How can I estimate precision
|> in this case?
At time  T  you get  \bar x = x(T) + x_eps
                     \bar y = y(t) + y_eps
where x_eps and y_eps are estimated errors (by the ODE scheme) which
are (in principle) proportional to dt in n-th power.
If you like to interpret y(T)  as an Y(x) := y(x(T)) then
\bar y = y(T) + y_eps = Y(\bar x - x_eps) + y_eps
       = Y(\bar x) - \tilde Y' * x_eps + y_eps
where \tilde Y' is an estimate for for Y' near \bar x
Now d/dt y(x(t)) = Y'(x)* d/dt x(t)
If you have rewritten your ODE-system as a first order system then the
ODE-solver gives you estimates for d/dt y(x(t)) and d/dt x(t)
and therefore an estimate for Y'(x) .
Keeping in mind that all these are estimates (not bounds) your error 
sums up to   - d/dt y(x(t)) / d/dt x(t) * x_eps + y_eps
which shows that you are in trouble if  d/dt y(x(t)) / d/dt x(t) is
small.
Hope this helps a bit,
Helmut Jarausch.
Return to Top
Subject: SUMMARY: Computation of the inverse of the error function
From: Olivier Siohan
Date: Mon, 18 Nov 1996 14:10:45 GMT
I'd like to thank all the people who responded to my post.
QUESTION: where to get an efficient routine to compute the inverse of
the error function.
ANSWERS:
1. The package "dcflib" does the job. Cumulative and inverse
cumulative of many probability density function. C language. Available
on the net, search "dcflib"
2. Another package:
Source code available in the excellent new book:
    Title  :  "A NUMERICAL LIBRARY IN C FOR
               SCIENTISTS AND ENGINEERS"
              (ISBN 0-8493-7376-X), 1995
   Author  :  H. T. Lau
 Publisher :  CRC Press, Inc.
              2000 Corporate Blvd., N.W.
              Boca Raton, FL 33431
              USA
              telephone: (561)-994-0555
A diskette is included with all the source code.
3. Theoretical paper about rational approximations for the inverse of
the error function:
J.M. Blair, C.A. Edwards, and J.H. Johnson, "Rational Chebyshev
approximations for the inverse of the error function", Mathematics
of Computation, 30 (1976) 827-830 + microfiche appendix
4. Usefull link:
http://www.fred.net/mandalay
-- 
Olivier Siohan, Rm 2D-459
AT&T; Labs - Research, 600 Mountain Avenue, Murray Hill, NJ 07974
908-582-5877  -  siohan@research.att.com  -  fax:908-582-4271 
Return to Top
Subject: Re: g++ compiler v.2.7.2
From: Oleg Krivosheev
Date: 18 Nov 1996 09:16:17 -0600
Hi,
"M. Seto"  writes:
> 
> In a program that I have written, I have no problem compiling the
> following using an older version of g++:
> 
> #include 
> complex i(0, 1);
> int main()
> {
> complex M[2][2], r;
> complex a;
> ....
> etc.
> }
> 
> Can someone kindly let me know how to declare complex variables with
> this new g++ compiler?
i believe, complex was converted into template class by
ANSI/ISO C++ commettee, so proper usage now is 
#include 
complex i(0, 1);
int main() {
complex M[2][2], r;
....
etc.
}
check C++ FAQ for public C++ draft location.
OK
Return to Top
Subject: Linear Complementarity Library?
From: Gabor Pataki
Date: Mon, 18 Nov 1996 11:24:08 -0500
Hello everyone,
I am looking for instances of the Linear Complementarity
Problem (LCP). Is there a library of test-problems 
somewhere? As the applications of LCP are very widespread,
it would be best to get instances arising from 
different applications (economic equilibria, nonlinear 
programming, etc.). Any help/pointers would be greatly
appreciated.
Thanks much 
                Gabor 
Return to Top
Subject: Need Contouring Algorithm
From: Al Gerheim
Date: Mon, 18 Nov 1996 10:54:32 -0500
We need to generate contours from non-uniformly spaced control 
points. The contours must be smooth, and must pass on the 
correct side of the control points.  Please direct me to 
algorithms I can convert into C.  
-- 
***************************************************************
  Dr. Albert P. Gerheim   |    Sonalysts, Inc. PO. Box 280 
  gerheim@sonalysts.com   |         215 Parkway North
  1 (800) 526-8091 X 218  |        Waterford, CT  06385
***************************************************************
Return to Top
Subject: Re: g++ compiler v.2.7.2
From: boyse@netcom.com (William Boyse)
Date: Mon, 18 Nov 1996 15:22:06 GMT
The new complex classes in g++ are fully templated.  They are 
"complex" or "double_complex" and "complex" or 
"float_complex".  Try this and see if it doesn't work..
Bill Boyse
boyse@netcom.com
 M. Seto 
(seto@natlab.research.philips.com) 
wrote: : In a program that I have written, I have no problem compiling the
: following using an older version of g++:
: #include 
: complex i(0, 1);
: int main()
: {
: complex M[2][2], r;
: complex a;
: ....
: etc.
: }
: However, our system administrator recently installed g++ version 2.7.2,
: so that upon compilation, I get the error messages:
: prog.c:10: parse error before `('
: prog.c:10: warning: ANSI C++ forbids declaration `i' with no type or
: storage class
: prog.c:10: warning: initializer list being treated as compound
: expression
: prog.c: In function `int main()':
: prog.c:16: `complex' undeclared (first use this function)
: prog.c:16: (Each undeclared identifier is reported only once
: prog.c:16: for each function it appears in.)
: prog.c:16: parse error before `['
: prog.c:20: warning: implicit declaration of function `int printf(...)'
: prog.c:21: warning: implicit declaration of function `int scanf(...)'
: prog.c:36: `M' undeclared (first use this function)
: prog.c:39: `a' undeclared (first use this function)
: prog.c:47: `r' undeclared (first use this function)
: Can someone kindly let me know how to declare complex variables with
: this new g++ compiler?
: Thanks in advance,
: Myron Seto
: seto@natlab.research.philips.com
-- 
Bill Boyse
Boyse@netcom.com
We only have two things to fear ... that things may never get back to
normal ... or that they already have!!!
Everyone in America has the right to their own STUPID opinion.
-----------------------------------------------------------------
Return to Top
Subject: Re: Need Contouring Algorithm
From: watson@ned.dem.csiro.au (David Watson)
Date: 18 Nov 1996 23:37:06 GMT
Al Gerheim (gerheim@sonalysts.com) wrote:
: We need to generate contours from non-uniformly spaced control 
: points. The contours must be smooth, and must pass on the 
: correct side of the control points.  Please direct me to 
: algorithms I can convert into C.  
The usual approach is to generate a regular grid by interpolation.
Then any conventional contouring package, such as the PD Gnuplot,
will make isolines - the denser the grid, the better the isolines.
For one gridding package, see -
http://www.iinet.com.au/~watson/nngridr.html
--
Dave Watson             
CSIRO Exploration and Mining      email: watson@ned.dem.csiro.au
39 Fairway, P.O. Box 437                    tel: (61 9) 284 8428
Nedlands, WA 6009  Australia.               fax: (61 9) 389 1906
Return to Top
Subject: HELP : I need a Spagetti Code Cleaner.
From: Matt Davies
Date: Tue, 19 Nov 1996 09:57:28 +1000
Hi Guys,
I need a spag code cleaner for some FORTRAN77 code. The code is very
structured but uses DO/CONTINUE instead of DO/ENDDO etc. 
I would really like to hear from someone who has found such a beast...
Regards,
Matt D.
--
 *=,._.,=*'~`~'*=,._.,=*'~~'*=,._.,=*'~`~'*=,._.,=*'~`~'*=,._.,=*'~`~'*=,.
 : Matt Davies "TRAIN...DOOR...SPACE..."   Ph: +61 7 3864 4309  PERSONAL :
 : QUT School of Mathematics, Gardens Pnt, Fx: +61 7 3864 5252  OPINION  :
 : PO Box 2434, Brisbane Q 4001, Australia Em: m.davies@fsc.qut.edu.au   :
 *=,._.,=*'~`~'*=,._.,=*'~~'*=,._.,=*'~`~'*=,._.,=*'~`~'*=,._.,=*'~`~'*=,:
 COPYRIGHT (C) 1996, M J Davies, All Rights Reserved. So there ... ;P
Return to Top
Subject: Re: Errata for Abramowitz/Stegun?
From: harper@kauri.vuw.ac.nz (John Harper)
Date: 18 Nov 1996 23:24:29 GMT
In article <32836B43.55A8@BBN.com>, Bill Marshall   wrote:
>Is there an errata list for Abramowitz & Stegun?
My copy is the 9th Dover printing. Errata to that are:
p3    ln(sqrt(2*pi)) should end with 03297 not 03296
p6    def. of temperature: true when A+S wrote it, but now take that 
      degree symbol off the K.
p337  8.13   All references to E and K elliptic integrals are to E(k), 
             K(k), not E(m). K(m), in spite of p.590 saying otherwise.
p504  13.1.1 M(a,b,z) and U(a,b,z) are not independent solutions if a=0, 
             but then the equation is elementary for any value of b.
      13.1.2 The series fails if b=0.
      13.1.3 If a is an integer <= 0 and b = integer then the solution 
             indep. of M is not U. Use 13.1.12 - 13.1.19 instead.
      13.1.5 U(a,b,z) is not many-valued if a-b+1 is an integer <=0.
p1038 Laplacian in spherical coordinates: for spherical read spheroidal.
I tell my students they really understand special functions if they find
a previously unknown error in A+S (or G+R).
John Harper Mathematics Dept. Victoria University Wellington New Zealand
Return to Top
Subject: Re: fortran77 compiler for sun/sparc 20
From: Dave Love
Date: 18 Nov 1996 19:51:05 +0000
>>>>> "Nick" == Nick Maclaren  writes:
 Nick> You could probably also port g77, if you are adventurous :-)
Port?  If following the instructions doesn't work, please submit a bug
report sharpish for version 0.5.19.
 Nick> And dare I mention f2c, for those who don't give a damn about
 Nick> performance or diagnostics?
FUD!
Return to Top
Subject: ODE23/ODE45 Question
From: "W.J.Jenkins"
Date: Mon, 18 Nov 1996 21:34:56 -0500
My apologies if this is a FAQ, but I was wondering whether the "tol"
parameter in the ode23/ode45 function calls in MATLAB is an absolute
tolerance or relative to the actual value of the function being
modeled. For example, if the function is scaled such that at t=tf
it is equal to, say, 10^6, should one use a value of "tol" more like
"1" than the default of 10^-6 (for ode45)?
For example, the call is 
[t,y]=ode45('func',0,tf,y0,tol);
Thanks for your suggestions and help
-- 
------------------------------------------------------------------------
W.J. Jenkins					email: wjenkins@whoi.edu
MS #25
Woods Hole Oceanographic Institution		fax: 508-457-2193
Woods Hole, MA 02543				http://kopernik.whoi.edu
Return to Top
Subject: Re: g++ compiler v.2.7.2
From: fjh@mundook.cs.mu.OZ.AU (Fergus Henderson)
Date: 19 Nov 1996 04:18:07 GMT
"M. Seto"  writes:
>#include 
>complex i(0, 1);
Try
	complex i(0, 1);
	       ^^^^^^^^
--
Fergus Henderson    |  "I have always known that the pursuit
WWW:    |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3         |     -- the last words of T. S. Garp.
Return to Top
Subject: Q: derivatives using MAPLE
From: kenny@scbspk.mit.edu (Sean Patrick Kenny)
Date: 19 Nov 1996 05:59:04 GMT
Given a function that contains various powers of time derivatives,
how do I calculate the partial derivative of the function wrt one of
the time derivatives?
A simple example of the problem:
F:=diff(x(t),t)^2+diff(x(t),t)*diff(y(t),t);
I need dF/xdot, and dF/ydot
where xdot = diff(x(t),t)
The answer I'm looking for is:
2*diff(x(t),t)+diff(y(t),t);
Thanks,
Sean
-- 
Return to Top
Subject: Re: [Q] Using pseudoinverse in Bayes discriminant function?
From: Greg Heath
Date: Mon, 18 Nov 1996 20:29:12 -0500
On Thu, 14 Nov 1996, Paul T. Karch wrote:
>  wrote:
-----------------------SNIP----------------------------------------
> If possible, I would like to get references on  Baysian classifiers,
> etc.; by mail or post .  This is for  self-study.  Thanks in advance. 
Devijver, Pierre A. and Kittler, Josef (1982), Pattern  recognition: 
a statistical approach, Englewood Cliffs, N.J.: Prentice/Hall International. 
Duda, Richard O. and Hart, Peter E., (1973), Pattern Classification and scene
analysis, New York: Wiley. 
Fukunaga, Keinosuke (1st ed. 1972, 2nd ed. 1990), Introduction to statistical
pattern recognition, New York(1st ed.), Boston(2nd ed.): Academic Press. 
James, Mike (1985), Classification algorithms, New York: Wiley. 
However, I can't remember seeing any reference that uses the pseudoinverse.
Hope this helps
Gregory E. Heath     heath@ll.mit.edu      The views expressed here are
M.I.T. Lincoln Lab   (617) 981-2815        not necessarily shared by 
Lexington, MA        (617) 981-0908(FAX)   M.I.T./LL or its sponsors
02173-9185, USA
Return to Top
Subject: Re: Division by 2
From: kptben@aol.com
Date: 19 Nov 1996 07:15:55 GMT
John Hench wrote:
> 
> I have a quick question:  Do most computers treat
> the division of a (real) floating point number by
> 2 differently than division by an arbitrary scalar?
> It seems to me more related to addition to me,
> since the exponent of the floating point number
> is decremented.  I guess what I'm driving at is
> this: is it faster to divide by two than to
> divide by an arbitrary scalar?  I suppose that
> every computer is different, but I'm just trying
> to get a feel for this...
> 
> Thanks, John
If the divisor is known at compile-time to be a power of 2, then most good
compilers will substitute the division instruction with a simple shift (a
straightforward type of optimization known as 'strength reduction.')  If
the divisor is variable, then there's little the compiler can do. There is
an easy test for power-of-2'ness, however... for any integer x, if (x & (x
- 1)) == 0, then x is a power of 2. So if you know in advance that the
divisor is likely (but not guaranteed to be) a power of 2, you could write
an adaptive function like: [uint32 == unsigned long]
uint32 divide(uint32 a, uint32 b) {
	if((b & (b - 1)) != 0)		return a / b;	// general case
	// ____ otherwise, shift by appropriate amount to simulate divide
	uint32 zcnt = __cntlzw(b);	// count leading zeros of b
	return a >> (31 - zcnt);
	}
This only works if you have a "count leading zeros" instruction in
hardware... PowerPC has it at least.  There's no real quick software way
to do it, at least not fast enough to be really useful.  Also, signed
division requires a few more tweaks to handle the various cases.
Hope this helps,
--
Ben Weiss
Imaging Scientist
MetaTools Inc.
Return to Top
Subject: Just try this, it will work
From: rscott@fcc.com_ (R. Scott Perry)
Date: 19 Nov 96 03:21:23 GMT
In article <135.353194369934@news.nemonet.com>, sbolting@nemonet.com (Steve 
Boltinghouse of 1009 Bird St., Hannibal, MO  63401) says...
>Take five minutes to read this and it WILL change your life.
Unfortunately, the change in Steve's life is that he may be spending the 
next few years in jail.
Not only are chain letters illegal in the U.S. (2 year jail term for 
first offence, see below), they CAN NOT WORK.  There would have to be
over 1,000,000,000,000 people participating for them to work.  Here's 
PROOF:
---
The chain letters claim that you will make at least $10,000 (often they 
claim $20,000 or $50,000), by people sending you $1 bills.
If the person who originally wrote the chain letter made $10,000 off of
it, then there are at least 10,000 people who have joined so far.  That's 
obvious; if someone made $10,000 from people sending him $1, then 10,000 
people have joined so far.
In order for each of those 10,000 people to make $10,000, there would 
need to be 100,000,000 people joining (10,000 people already in the
program, each causing another 10,000 to join; 10,000 times 10,000 is
100,000,000).  That, too, is quite obvious.
So, if you saw this chain letter and joined it, according to the way the
chain letter claims it works, there would be 100,000,000 other people 
joining.  For all of you to make your $10,000, you would each need to  
cause another 10,000 people to sign up.  How many are we at now?  It's
simple: 100,000,000 people times 10,000 new people each.  That's 
1,000,000,000,000 (1 trillion) people joining.  That's about 200 times as
many people as there are on this planet.
Now do you understand why chain letters won't work?
---
Chain letters are illegal if the chain letter or money is transferred
via U.S. Mail, and can get you a $1,000 fine and a 2 YEAR jail sentence 
for your first offense.  The second offence can get you in jail for  
5 years.  Even if transmitted via the Internet, they violate Title 18 
USC Section 1302, the Postal Lottery Statute.  For verification, you 
can currently go to http://www.usps.gov/websites/depart/inspect/
chainlet.htm to see that it is illegal, and go to http://www.usps.gov/
websites/depart/inspect/usc18/lottery.htm for the text of the law).
---
Feel free to copy this in response to any chain letters you see,
hopefully as enough people see this, the chain letters will stop.
                                    -Scott
RSP
Return to Top
Subject: Gauss-Newton Method Non-Linear Regression
From: AlanLivingston@acm.org (Alan J. Livingston)
Date: Tue, 19 Nov 1996 04:48:28 GMT
Hi all,
Can anyone point me to some code that implements the Gauss-Newton
method for non-linear regression?
Thanks,
Alan
Return to Top
Subject: Re: Quadratic constrained LS minimisation
From: spellucci@mathematik.th-darmstadt.de (Peter Spellucci)
Date: 19 Nov 1996 09:49:16 GMT
In article , Moritz Harteneck  writes:
|> Hi,
|> 
|> I want to minimise a least squares problem which is quadratically 
|> constrained, i.e.
|> 
|> minimise( vAv ) under (vBv=p)
|> 
|> where v is a n-dimensional vector of the free parameters, A describes the 
|> performance criterion and B and p the quadratic constraints.
|> 
|> Does anybody know any good pointers?
|> 
|> Thanks
|> 
|> 	Moritz
|> 
|> ===========================================================================
|> Moritz Harteneck
|> SPD / EEE	                    email: moritz@spd.eee.strath.ac.uk
|> University of Strathclyde	    http://www.spd.eee.strath.ac.uk/~moritz
|> Glasgow G1 1XW, Scotland, U.K.
|> Tel: ++44-(0)141-552 4400 ext 2808  Fax: ++44-(0)141-552 2487
|> 
the solution obviously is the (an) eigenvector v corresponding to the 
(a) smallest eigenvalue of the generalized eigenvalue problem
A v =  \lambda B v,
normalized by vBv=p. Follows from the Lagrange multiplier rule.
( B hopefully positive definite) .
for solution of generalized eigenvalue problem refer to LAPACK from netlib
hope this helps
peter
Return to Top
Subject: Re: eigenvalues of ill-cond matrices
From: spellucci@mathematik.th-darmstadt.de (Peter Spellucci)
Date: 19 Nov 1996 09:53:57 GMT
this was clearly a bad advice, since you may completely loose
precision in the small eigenvalues, which for some applications
are the most interesting and you reallly need them to some
relative precison. for computing
small eigenvalues to some precision Jacobi's method is often
better than QR (see the work by Veselic in Numerische Mathematik)
However, in the situation given by this posting there is no help
other than brute force in high precision computation.
peterIn article , hwolkowi@orion.math.uwaterloo.ca (Henry Wolkowicz) writes:
|> In article <328706CB.48D1@physics.uwa.edu.au>,
|> Paul Abbott   wrote:
|> >alan koivunen wrote:
|> >
|> >>I'm trying to find eigenvalues and eigenvectors of some ill-conditioned
|> >>matrices. They are real, symmetric Toeplitz matrices, an example of 
|> >>which is coded below:
|> >> 
|> >>         do i=1,N
|> >>           do j=i,N
|> >>             A(i,j) = exp(-2.0*(j-i)*(j-i)/((N-1)*(N-1)))
|> >>             A(j,i) = A(i,j)
|> >>           enddo
|> >>         enddo
|> >> 
|> >>With N=13, the eigenvalue magnitudes range in value from about
|> >>10^(-16) to about 10. The eigenvalues should be real and positive,
|> >>but using MATLAB's eig() function and IMSL's DEVCSF routine produces
|> >>negative (small) eigenvalues - so things aren't quite right.
|> >> 
|> >>So, is there anyone out there who can suggest a way to get
|> >>eigenvalues/vectors for these troublesome matrices ? 
|> >
|> >Any of the Computer Algebra systems should be able to do this without
|> >any trouble.  Here is a solution using Mathematica 3.0:
|> >
|> >In[1]:= Toeplitz[n_]:=Table[Exp[-2(j-i)^2/(n-1)^2], {i, n}, {j, n}]
|> >
|> >In[2]:= Timing[Eigenvalues[N[Toeplitz[13], 35]]]
|> >
|> >Out[2]= {1.8 Second, 
|> >  {9.714289658177802948116981413446968039217238874`35, 
|> >   2.8087047226601903588888427367223952406986690664`35, 
|> >   0.4318113387746175560652633047322733083888887423`35, 
|> >   0.04211529596485480041989551847174304301749342335`35, 
|> >   0.0029201614706262355299008707132439452221134816464`35, 
|> >   0.00015247429079448480011310165012714444499654618885`35, 
|> >   6.150970244115566358292942430866977377286994027`35*^-6, 
|> >   1.9294232139272084071757708173097648232541969225`35*^-7, 
|> >   4.662923268040823404382745324585306129887057093`35*^-9, 
|> >   8.452676823084502937530316623177950895236479696`35*^-11, 
|> >   1.0890952782993752514438522541130430812858525505`35*^-12, 
|> >   8.941025867763620061655233278333984110022684667`35*^-15, 
|> >   3.531596847111418268275223468242875950227707268`35*^-17}}
|> >
|> >Cheers,
|> >	Paul 
|> >_________________________________________________________________ 
|> >Paul Abbott
|> >Department of Physics                       Phone: +61-9-380-2734 
|> >The University of Western Australia           Fax: +61-9-380-1014
|> >Nedlands WA  6907                         paul@physics.uwa.edu.au 
|> >AUSTRALIA                           http://www.pd.uwa.edu.au/Paul
|> >
|> >          God IS a weakly left-handed dice player
|> >_________________________________________________________________
|> 
|> 
|> Ill-conditioned matrices mean that you will have trouble solving systems
|> of equations, but it does not mean that you have trouble finding the
|> eigenvalues. One simple fix to avoid worrying about negative
|> eigenvalues, is to add
|>     20*I
|> to all the matrices. Then you will have a range for the eigenvalues from
|>    20 to 30
|> 
|> 
|> -- 
|> ||Henry Wolkowicz                |Fax:   (519) 725-5441
|> ||University of Waterloo         |Tel:   (519) 888-4567, 1+ext. 5589
|> ||Dept of Comb and Opt           |email:  henry@orion.math.uwaterloo.ca
|> ||Waterloo, Ont. CANADA N2L 3G1  |URL: http://orion.math.uwaterloo.ca/~hwolkowi
Return to Top
Subject: Multi-Processor BLAS
From: fmb@netcom.com (Frank M. Barone)
Date: Tue, 19 Nov 1996 04:32:29 GMT
Does anyone know of a source for BLAS for a Dual Processor Pentium pro, 
that would take advantage of the second processor.
Thanks.
Return to Top
Subject: Re: [Q] Using pseudoinverse in Bayes discriminant function?
From: chris@bayes.agric.za (Christopher Gordon)
Date: 19 Nov 1996 11:12:58 GMT
>
>-----------------------SNIP----------------------------------------
>
> If possible, I would like to get references on  Baysian classifiers,
> etc.; by mail or post .  This is for  self-study.  Thanks in advance. 
I would suggest taking a look at
James Press, "Bayesian Statistics".
Regards,
---
Christopher Gordon                    Tel. (012) 326-4205 (w)         
Remote Sensing			      Fax. (012) 323-1157
Inst. for Soil, Climate and Water     email: c_gordon@igkw2.agric.za
Pretoria, South Africa		             chris@bayes.agric.za
Standard disclaimers apply.           Math is like love -- a simple idea but it
				      can get complicated.  -- R. Drabek                                   
Return to Top
Subject: Re: Gauss-Newton Method Non-Linear Regression
From: Hans D Mittelmann
Date: Tue, 19 Nov 1996 07:41:10 -0700
Alan J. Livingston wrote:
> 
> Hi all,
> 
> Can anyone point me to some code that implements the Gauss-Newton
> method for non-linear regression?
> 
> Thanks,
> 
> Alan
Hi,
an adaptive method including a Gauss-Newton model is
   ftp://ftp.netlib.org/opt/nlr
   http://www.netlib.org/opt/nlr
You may use it for comparison at least.
-- 
Hans D. Mittelmann			http://plato.la.asu.edu/
Arizona State University		Phone: (602) 965-6595
Department of Mathematics		Fax:   (602) 965-0461
Tempe, AZ 85287-1804			email: mittelmann@asu.edu
Return to Top
Subject: Re: Just try this, it will work
From: rscott@fcc.com_ (R. Scott Perry)
Date: 18 Nov 96 23:40:38 GMT
In article <135.353194369934@news.nemonet.com>, sbolting@nemonet.com (Steve 
Boltinghouse of 1009 Bird St., Hannibal, MO  63401) says...
>Take five minutes to read this and it WILL change your life.
Not only are chain letters illegal in the U.S. (2 year jail term for 
first offence, see below), they CAN NOT WORK.  There would have to be
over 1,000,000,000,000 people participating for them to work.  Here's 
PROOF:
---
The chain letters claim that you will make at least $10,000 (often they 
claim $20,000 or $50,000), by people sending you $1 bills.
If the person who originally wrote the chain letter made $10,000 off of
it, then there are at least 10,000 people who have joined so far.  That's 
obvious; if someone made $10,000 from people sending him $1, then 10,000 
people have joined so far.
In order for each of those 10,000 people to make $10,000, there would 
need to be 100,000,000 people joining (10,000 people already in the
program, each causing another 10,000 to join; 10,000 times 10,000 is
100,000,000).  That, too, is quite obvious.
So, if you saw this chain letter and joined it, according to the way the
chain letter claims it works, there would be 100,000,000 other people 
joining.  For all of you to make your $10,000, you would each need to  
cause another 10,000 people to sign up.  How many are we at now?  It's
simple: 100,000,000 people times 10,000 new people each.  That's 
1,000,000,000,000 (1 trillion) people joining.  That's about 200 times as
many people as there are on this planet.
Now do you understand why chain letters won't work?
---
Chain letters are illegal if the chain letter or money is transferred
via U.S. Mail, and can get you a $1,000 fine and a 2 YEAR jail sentence 
for your first offense.  The second offence can get you in jail for  
5 years.  Even if transmitted via the Internet, they violate Title 18 
USC Section 1302, the Postal Lottery Statute.  For verification, you 
can currently go to http://www.usps.gov/websites/depart/inspect/
chainlet.htm to see that it is illegal, and go to http://www.usps.gov/
websites/depart/inspect/usc18/lottery.htm for the text of the law).
---
Feel free to copy this in response to any chain letters you see,
hopefully as enough people see this, the chain letters will stop.
                                    -Scott
RSP
Return to Top
Subject: Re: Prime Factorization
From: rnh@gmrc.gecm.com (Richard Herring)
Date: 19 Nov 1996 15:29:04 GMT
Andreas Sikström (sik@ludd.luth.se) wrote:
>Is there anyone who knows where I can get hold of a good/fast algorithm for
>prime factorization of integers?
How good? how fast? how large are the integers? 
Since this question is not unrelated to that of cracking RSA
public-key encryption, in which many people are *very* interested,
you will probably get a more informed answer from the inhabitants
of sci.crypt. 
--
Richard Herring      |  richard.herring@gecm.com | Speaking for myself
GEC-Marconi Research Centre                      | Not the one on TV.
Return to Top
Subject: Re: C code Eigenvalue and Eigenvector Solvers for Complex Self-Adjoint Matrices
From: spellucci@mathematik.th-darmstadt.de (Peter Spellucci)
Date: 19 Nov 1996 17:51:58 GMT
In article <328A0C2F.1489@ccgate.hac.com>, Dennis Braunreiter1  writes:
|> Anyone know where to find C source code to solve for the eigenvalues and 
|> eigenvectors of a complex self-adjoint matrix, or a C version
|> of EISPACK or LAPACK?
yes . CLAPACK in netlib
this helps,peter
Return to Top
Subject: Least Square Approximation on a Circle
From: hxl0577@ms3.hinet.net (Richard Li)
Date: Wed, 20 Nov 1996 10:03:53 GMT
Dear Netter:
	Can anyone give me some references concerning 
fitting a set of data to a circle  by using least square ?  Do I have
to use parametric description ?
	Any reference either book, paper or software will be
appreciated.
Ricky Lee
Return to Top
Subject: QMG1.1: mesh generation software
From: vavasis@cosmo.mcs.anl.gov (Stephen A. Vavasis)
Date: Tue, 19 Nov 1996 17:2:56 GMT
I would like to announce the release of QMG1.1.  QMG is free software
available on the Web for fully automatic unstructured finite element
mesh generation in two and three dimensions.  It can generate meshes
for complex polyhedral domains with nonmanifold features.  It includes
geometric modeling routines for polyhedral domains, two mesh
generators and a finite element solver.  QMG is written in primarily
in C++ and is a collection of m-files and mex-files that run under
Matlab 4.2.
The new features of QMG1.1 (compared to QMG1.0) are:
  (1) In addition to running under Matlab, QMG1.1 can also run under
Tcl/Tk.  Tcl is a scripting language, and Tk is a GUI-building toolkit.
Both were developed at UC-Berkeley/Sun Microsystems and are available 
on the Web.
  (2) QMG1.1 runs under Microsoft Windows NT as well as Unix.  Windows
NT (i386) users can download the QMG executables directly from the Web.
  (3) QMG1.1 uses VRML and a web browser for 3D graphics.
  (4) QMG1.1 includes a Delaunay-based boundary mesh generator as well 
as an octree-based volumetric mesh generator.
  (5) The 3D volumetric mesh generator in QMG1.1 runs much faster
and produces higher quality meshes than QMG1.0.
  (6) QMG1.1 supports additional simplified file formats for I/O of
geometric objects.
For more information, please see: 
   http://www.cs.cornell.edu/home/vavasis/qmg-home.html
-- Steve Vavasis (vavasis@mcs.anl.gov)
Return to Top

Downloaded by WWW Programs
Byron Palmer