Solving x5 in Terms of x Using Magma

  • Context: Undergrad 
  • Thread starter Thread starter chhitiz
  • Start date Start date
  • Tags Tags
    Magma
Click For Summary

Discussion Overview

The discussion revolves around the problem of expressing x5 in terms of x using the Magma programming language. Participants explore the feasibility of this task and seek assistance with coding in Magma, as well as discussing related mathematical concepts.

Discussion Character

  • Technical explanation
  • Homework-related
  • Debate/contested

Main Points Raised

  • One participant presents a recursive definition for x1 through x5 and inquires about using Magma to express x5 in terms of x.
  • Another participant suggests defining a polynomial ring and evaluating a function recursively to achieve the desired expression.
  • A participant expresses a lack of familiarity with the Magma code and requests specific coding instructions.
  • One reply humorously misinterprets "Magma" as molten rock, questioning the approach to solving the problem.
  • Another participant advises starting with Magma documentation if the user is unfamiliar with the language, suggesting that the problem could be solved by hand as well.
  • A later post reiterates the initial recursive definitions and provides Mathematica code as a reference for conversion to Magma.
  • One participant confirms understanding of how to declare a polynomial ring and define the function but seeks clarification on evaluating it multiple times.

Areas of Agreement / Disagreement

There is no consensus on the best approach to solve the problem, and multiple views on the use of Magma versus manual calculation are present. Some participants provide technical guidance while others express skepticism about the approach.

Contextual Notes

Participants have varying levels of familiarity with Magma, which affects the depth of the discussion. There are unresolved questions regarding the specific implementation of the recursive evaluation in Magma.

chhitiz
Messages
223
Reaction score
0
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.
 
Physics news on Phys.org
Yes. Define a poly ring, define f to be 6x^2 + 8x+2, then evaluate f(f(f(f(f(x)))))
 
i am totally ignorant of the code,and have absolutely no idea how to define a polyring. please, can somebody tell me the code?
 
What, you want to solve a problem by pouring molten rock on it? How do you turn in the solution to your teacher?
 
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.
 
chhitiz said:
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
 
matt grime said:
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))));
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
5K
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 4 ·
Replies
4
Views
8K