image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

Go Back   Physics Forums > Mathematics > Number Theory


Reply

image can magma do this? Share It Thread Tools Search this Thread image
Old May14-09, 09:03 AM                  #1
chhitiz

chhitiz is Offline:
Posts: 105
Blog Entries: 1
can magma do this?

if x is an integer,
x1=6x2+8x+2
x2=6x21+8x1+2
x3=6x22+8x2+2
x4=6x23+8x3+2
x5=6x24+8x4+2
if i want to see x5 in terms of x, can it it done using magma?
if so can somebody please give me the code?
thanks.
  Reply With Quote
Old May14-09, 02:11 PM                  #2
matt grime

Math Guru 2008

matt grime is Offline:
Posts: 9,385
Recognitions:
Homework Helper Homework Helper
Science Advisor Science Advisor
Re: can magma do this?

Yes. Define a poly ring, define f to be 6x^2 + 8x+2, then evaluate f(f(f(f(f(x)))))
  Reply With Quote
Old May14-09, 03:33 PM                  #3
chhitiz

chhitiz is Offline:
Posts: 105
Blog Entries: 1
Re: can magma do this?

i am totally ignorant of the code,and have absolutely no idea how to define a polyring. please, can somebody tell me the code?
  Reply With Quote
Old May14-09, 03:53 PM                  #4
HallsofIvy

PF Mentor

HallsofIvy is Offline:
Posts: 24,778
Re: can magma do this?

What, you want to solve a problem by pouring molten rock on it? How do you turn in the solution to your teacher?
  Reply With Quote
Old May14-09, 05:06 PM                  #5
matt grime

Math Guru 2008

matt grime is Offline:
Posts: 9,385
Recognitions:
Homework Helper Homework Helper
Science Advisor Science Advisor
Re: can magma do this?

If you don't know how to use magma, then why do you want to use magma? Start with the magma documentation if you want magma help.

The answer can be worked out by hand easily (if laboriously).

If you want to learn magma this seems like a strange way to go about it.
  Reply With Quote
Old May14-09, 07:20 PM                  #6
squidsoft

squidsoft is Offline:
Posts: 54
Re: can magma do this?

Originally Posted by chhitiz View Post
if x is an integer,
x1=6x2+8x+2
x2=6x21+8x1+2
x3=6x22+8x2+2
x4=6x23+8x3+2
x5=6x24+8x4+2
if i want to see x5 in terms of x, can it it done using magma?
if so can somebody please give me the code?
thanks.
This is Mathematica code (and output). Hopefully you can convert it to the hot stuff.

Code:
In[10]:= Expand[Nest[6*#1^2 + 8*#1 + 2 & , x, 5]]

Out[10]= 3074457345618258602 + 
   147573952589676412928*x + 
   3431094397709976600576*x^2 + 
   51466415965649649008640*x^3 + 
   559697273626439932968960*x^4 + 
   4701457098462095436939264*x^5 + 
   31734835414619144199340032*x^6 + 
   176808368738592374824894464*x^7 + 
   828789228462151756991692800*x^8 + 
   3315156913848607027966771200*x^9 + 
   11437291352777694246485360640*x^10 + 
   34311874058333082739456081920*x^11 + 
   90068669403124342191072215040*x^12 + 
   207850775545671558902474342400*x^13 + 
   423124793075117102051465625600*x^14 + 
   761624627535210783692638126080*x^15 + 
   1213839250134242186510142013440*x^16 + 
   1713655411954224263308435783680*x^17 + 
   2142069264942780329135544729600*x^18 + 
   2367550240199915100623496806400*x^19 + 
   2308361484194917223107909386240*x^20 + 
   1978595557881357619806779473920*x^21 + 
   1483946668411018214855084605440*x^22 + 
   967791305485446661862011699200*x^23 + 
   544382609335563747297381580800*x^24 + 
   261303652481070598702743158784*x^25 + 
   105526475040432357168415506432*x^26 + 
   35175491680144119056138502144*x^27 + 
   9422006700038603318608527360*x^28 + 
   1949380696559711031436247040*x^29 + 
   292407104483956654715437056*x^30 + 
   28297461724253869811171328*x^31 + 
   1326443518324400147398656*x^32
  Reply With Quote
Old May24-09, 12:15 PM                  #7
chhitiz

chhitiz is Offline:
Posts: 105
Blog Entries: 1
Re: can magma do this?

Originally Posted by matt grime View Post
Yes. Define a poly ring, define f to be 6x^2 + 8x+2, then evaluate f(f(f(f(f(x)))))
ok, i got how to declare a polyring and defined f<x> :=6*x^2+8*x+2;
but how to evaluate f(f(f(f(x))));
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: can magma do this?
Thread Thread Starter Forum Replies Last Post
Moduloid - Abelian Unital Magma Tom Piper General Math 4 Feb3-06 10:25 PM

Powered by vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. © 2009 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image