You are not logged in.
You didn't wtite it like that before!Here's the new output:
{{24, 0, 0, 120, 0, 140, 0, -15, 0, -236},
{-1020, -430, -77, 188, -802, -515, -743, -339, 202, -203},
{-367, -461, -955, 317, 400, -72, 603, -923, 229, 286},
{40, 509, -464, -705, 1310, -805, -76, -647, 229, -769},
{1320, -100, 177, 585, -1344, -742, 188, 50, 8, 74},
{-436, 491, -1733, -347, -118, 380, 282, 505, -200, -28},
{419, -62, -756, -270, 1352, 97, -1105, 1090, -248, -102},
{-222, 295, 774, -878, -429, 788, -669, -966, 355, 0},
{-19, -1712, 637, -920, -43, -34, 34, 628, -199, -609}}
Last edited by anonimnystefy (2012-04-12 00:04:02)
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
An extra character got added!
This is correct.
test[l_,dig_]:=Module[{a},a=IdentityMatrix[Length[l]];
a=Append[a,10^dig*N[l,dig]];
a=Transpose[a];
a=Rationalize[a,10^-dig];
a=LatticeReduce[a];
Take[a,All,{1,Length[l]}]];
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
{{24, 0, 0, 120, 0, 140, 0, -15, 0},
{-1020, -430, -77, 188, -802, -515, -743, -339, 202},
{-367, -461, -955, 317, 400, -72, 603, -923, 229},
{40, 509, -464, -705, 1310, -805, -76, -647, 229},
{1320, -100, 177, 585, -1344, -742, 188, 50, 8},
{-436, 491, -1733, -347, -118, 380, 282, 505, -200},
{419, -62, -756, -270, 1352, 97, -1105, 1090, -248},
{-222, 295, 774, -878, -429, 788, -669, -966, 355},
{-19, -1712, 637, -920, -43, -34, 34, 628, -199}}
Last edited by anonimnystefy (2012-04-12 00:11:30)
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
Now run this:
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
{{24, 0, 0, 120, 0, 140, 0, -15, 0},
{-1020, -430, -77, 188, -802, -515, -743, -339,
202}, {-367, -461, -955, 317, 400, -72, 603, -923, 229}, {40,
509, -464, -705, 1310, -805, -76, -647, 229}, {1320, -100, 177,
585, -1344, -742, 188, 50, 8}, {-436, 491, -1733, -347, -118, 380,
282, 505, -200}, {419, -62, -756, -270, 1352, 97, -1105,
1090, -248}, {-222, 295, 774, -878, -429, 788, -669, -966,
355}, {-19, -1712, 637, -920, -43, -34, 34, 628, -199}}
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
What do you notice about post 203 and 205?
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
The first row and a part of the second are the same.
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
Look only for rows that are exactly the same.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
They are all the same!!!
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
Okay, you have done something wrong:
Enter these and check rows:
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
pslq[l_,dig_]:=Module[{a},
a=IdentityMatrix[Length[l]];
a=Append[a,10^dig*N[l,dig]];
a=Transpose[a];
a=Rationalize[a,10^-dig];
a=LatticeReduce[a];
Take[a,All,{1,Length[l]}]
];
Hi bobbym
Why are you multiplying dig by 10^dig?
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
A PSLQ works to some digit precision. You fit a constant that you have determined experimentally to some number of decimal places. That is an attempt to work to the precision of the constant that is being fit.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
But why multiply dig by 10^dig?
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
That should be obvious.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
It is not.
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
Multiplying by that integerizes the vector that you are using. After all the PSLQ is a rational fit for a constant!
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
But what good would the number 25*10^25 possibly do to you?
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
Each constant in the vector is turned into an integer part and a fractional part.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
But dig is already an integer.
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
But the constants in the vector are not!
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
I understand that. So there is no reason to multiply dig by 10^dig, only the vector.
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
Hmmm. But I never do multiply did by 10^dig?!
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
a=Append[a,10^dig*N[l,dig]];
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline
That multiplies the vector by 10^dig.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Wait, the second parameter for the function N[] is to how many digits we round down?
Here lies the reader who will never open this book. He is forever dead.
Taking a new step, uttering a new word, is what people fear most. ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.
Offline