Some very basic Maple help (numtheory)

  • Context: Maple 
  • Thread starter Thread starter dkotschessaa
  • Start date Start date
  • Tags Tags
    Maple
Click For Summary

Discussion Overview

The discussion revolves around using Maple software to implement the Pohlig-Hellman algorithm for solving discrete logarithms, specifically focusing on how to assign and manipulate the output of the ifactor function to extract individual factors for further use.

Discussion Character

  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant seeks assistance in assigning the output of the ifactor function to separate variables for individual factors.
  • Another participant suggests that the ifactor function returns an array, implying that the user can iterate through the results to assign values.
  • A later reply confirms the need to extract specific factors, indicating a preference for just the base of the exponent rather than the full expression.
  • Links to external resources are provided by participants to assist with understanding Maple's functionality.

Areas of Agreement / Disagreement

The discussion does not reach a consensus, as participants are clarifying the original question and exploring different approaches to the problem without agreeing on a definitive solution.

Contextual Notes

Participants express uncertainty about the exact requirements for variable assignment and the structure of the output from the ifactor function, indicating potential limitations in understanding Maple's array handling.

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.
 

Similar threads

Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
5
Views
3K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
6K