Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#76 2012-04-10 19:14:25

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: PSLQ and LLL?

Why do you do it then?


“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

#77 2012-04-10 19:22:58

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: PSLQ and LLL?

Me Pappy used to tell me this, "do as I say, do not do as I do."


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

#78 2012-04-10 19:24:56

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: PSLQ and LLL?

Oh really? You Pappy seems very wise. What 'bout your Mommy?


“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

#79 2012-04-10 19:27:04

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: PSLQ and LLL?

The funniest person that ever lived. A brilliant mathematician and chessplayer.


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

#80 2012-04-10 19:30:42

Bob
Administrator
Registered: 2010-06-20
Posts: 10,053

Re: PSLQ and LLL?

hi bobbym,

Congratulations on your 'promotion'.  I think it is an excellent move by MIF.  smile

Bob


Children are not defined by school ...........The Fonz
You cannot teach a man anything;  you can only help him find it within himself..........Galileo Galilei
Sometimes I deliberately make mistakes, just to test you!  …………….Bob smile

Offline

#81 2012-04-10 19:32:08

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: PSLQ and LLL?

So your parents are/were very smart. You must have taken after them.

I'm gonna log off now and will be back in about an hour or an hour and a half.


“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

#82 2012-04-10 19:38:24

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: PSLQ and LLL?

Yes, my parents were brilliant people but they were the seed that landed on barren rock.


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

#83 2012-04-10 19:40:40

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: PSLQ and LLL?

That is not true. Their seed has grown into a mighty oak.


“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

#84 2012-04-10 19:42:43

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: PSLQ and LLL?

Nope, they did not make it. I wonder how many other people in the world have not made it due to not having a chance? What a waste.


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

#85 2012-04-10 21:07:20

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: PSLQ and LLL?

Their knowledge continues through you.You are their mighty oak.


“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

#86 2012-04-10 22:53:49

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: PSLQ and LLL?

An oak! Maybe a little bush or hedge.


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

#87 2012-04-10 23:15:41

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: PSLQ and LLL?

Yes,an oak!!!

Btw,I am really getting through with the first function which is the maker of the Identity Matrix.There is although a mistake and I don't know where.Could you check my code:

IdenMatrix (n, matrix):=
block( [i, j, a],
i: 1,
j: 1,
while i <= n do
  (
   while j <= n do
     (
      if i = j then
        a[i, j]: 1
      else
        a[i, j]: 0,
      i: i+1,
      j: j+1
     )
  ),
matrix:genmatrix(a, n, n)
);

And the output is:

                            [   1    a      a     ]
                            [         1, 2   1, 3 ]
                            [                     ]
(%o13)                      [ a        1    a     ]
                            [  2, 1          2, 3 ]
                            [                     ]
                            [ a      a        1   ]
                            [  3, 1   3, 2        ]

Last edited by anonimnystefy (2012-04-10 23:15:59)


“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

#88 2012-04-10 23:22:00

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: PSLQ and LLL?

Hi;

Good practice to code it for yourself. But I should have mentioned
that Maxima has a built in identity function.

identity(3) yields


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

#89 2012-04-10 23:25:51

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: PSLQ and LLL?

But why does it put a[i,j] whenever i<>j? I set it to 0 if i<>j.

And that function doesn't work for me.I will check '?? matrix' to see if there is a function for an identity matrix.


“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

#90 2012-04-10 23:27:49

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: PSLQ and LLL?

Maxima already has a built in identity function so do not worry.


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

#91 2012-04-10 23:29:03

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: PSLQ and LLL?

Which function is that? Identity(n) and identity(n) don't work for me,but even  if there is such a function,I want to make my own.It will be better for me.


“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

#92 2012-04-10 23:36:57

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: PSLQ and LLL?

Okay, but it is more serious that you are not getting these built in commands to work. We are trying to implement a PSLQ. If we get sidetracked we will never finish. What error message are you getting?


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

#93 2012-04-10 23:39:13

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: PSLQ and LLL?

There is no error message.It just puts wrong 'numbers' into the matrix.


“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

#94 2012-04-10 23:43:41

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: PSLQ and LLL?

Hmmm. Could be a bug. What does it output for identity(2)?


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

#95 2012-04-10 23:57:40

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: PSLQ and LLL?

identity(2) outputs 2.It doesn't make a matrix.


“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

#96 2012-04-11 00:11:02

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: PSLQ and LLL?

Hi;

Please go here and let's see what works and what does not.

http://maxima.sourceforge.net/docs/tuto … ro0001.htm


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

#97 2012-04-11 00:14:33

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: PSLQ and LLL?

Hi bobbym

I think this link might be better for functions:

Maxima Programming Tutorial


“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

#98 2012-04-11 00:24:39

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: PSLQ and LLL?

Same thing, I just went to the next page.


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

#99 2012-04-11 00:29:50

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: PSLQ and LLL?

Yes big_smile

But that still doesn't help me find a function for making an identity matrix or fix my code.


“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

#100 2012-04-11 00:34:53

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: PSLQ and LLL?

One thing at a time. The list of commands on that page I gave might work and they might not. Do they work for you?


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

Board footer

Powered by FluxBB