Some very basic Maple help (numtheory)

  • Context: Maple 
  • Thread starter Thread starter dkotschessaa
  • Start date Start date
  • Tags Tags
    Maple
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 3K views
dkotschessaa
Messages
1,063
Reaction score
763
This is EXTREMELY basic. I am using maple to run a Pohlig Hellman algorithm to solve discrete logs.

If I use ifactor to get a result, i.e.


> ifactor(p-1);

(2)3 (5)

How do I assign the output of these different factors to some other variable so I can use them elsewhere?
 
Physics news on Phys.org
Not sure exactly what you're asking but I found this Maple Intro pdf that may help.

http://www.phys.unsw.edu.au/2nd_and_3rd_syllabi/mapleprimer.pdf

I hope you don't mean:

> y=ifactor(p-1)

so that y is the 2^3 * 5 value.
 
Last edited by a moderator:
jedishrfu said:
Not sure exactly what you're asking but I found this Maple Intro pdf that may help.

I hope you don't mean:

> y=ifactor(p-1)

so that y is the 2^3 * 5 value.

Not quite. I want to assign the values separately. i.e. I want to assign the 2^3 to one value and the 5 to another. (actually just the 2, I don't need 2^3, but that would have been my next question).
 
That's a step in the right direction, thanks.