Be the first to rate this file! 116 downloads (last 30 days) File Size: 2.09 KB File ID: #6323

rqf.m

by David Terr

 

17 Nov 2004 (Updated 27 Dec 2004)

No BSD License  

Reduce a binary quadratic form, given as a row vector of length 3.

Download Now | Watch this File

File Information
Description

This function reduces a binary quadratic form, given as a row vector of length 3. An imaginary (positive definite) binary quadratic form

F(X,Y) = a X^2 + b X Y + c Y^2,

represented as [a b c], is reduced if |b| <= a <= c and b is nonnegative if a=|b| or a=c. A real binary quadratic
form of the same form is reduced
if abs(sqrt(D)-2*abs(c))<b<sqrt(D),
where D = b^2 - 4*a*c is the discriminant.

The output of this function is two
cells, the first the reduced
form and the second the linear
transformation from the original
form to the reduced form, represented
as a 2*2 matrix.

MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
29 Nov 2004

I fixed the I/O a bit and indicated that
no other software is required to run
this code.

27 Dec 2004

I changed the name from riqf.m to
rqf.m, added some text to the
description, and fixed a bug in the
output of the second cell in the
real case.

Tag Activity for this File
Tag Applied By Date/Time
quadratic form David Terr 22 Oct 2008 07:35:59
positive definite David Terr 22 Oct 2008 07:35:59
reduced David Terr 22 Oct 2008 07:35:59
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com