[sage-support] Re: Problem with sagetex and fancyhdr

2020-05-13 Thread David Sevilla
(By the way, I wasn't able to ask at https://ask.sagemath.org/ because my question was detected as spam. So was an answer or comment I tried to post earlier in the day.) -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this

[sage-support] Problem with sagetex and fancyhdr

2020-05-13 Thread David Sevilla
Hi, I have been trying to use SageTeX in a document where I also use the fancyhdr package, and I am not able to put Sage computations in the header (or the footer). A minimal example follows. \documentclass{article} \usepackage{sagetex} \usepackage{fancyhdr} \begin{document} \begin{sagesilen

Re: [sage-support] How to search a usage of a specific function?

2020-05-13 Thread Jean-Florent Raymond
Hello, To show the description of a function, you can type the name of the function followed by a question mark ("Mod?" in your case) and press Enter. If you want to show the source of the function, you can do the same thing with two question marks instead ("Mod??"). Le 13/05/2020 à 15:35, GZ D

[sage-support] How to search a usage of a specific function?

2020-05-13 Thread GZ D
For example, I want to search the usage of the function called *Mod*, and what should I do if I want to know the usage and the related description of this function? -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group

[sage-support] Re: Calculate the DLP of 9916780 = (5**y) mod 20876441?

2020-05-13 Thread Madison Adams
>From running this script do you get the value y = 17? I used a wolfram calculator just to be sure. On Wednesday, May 13, 2020 at 6:00:37 AM UTC-4, GZ D wrote: > > You can use a function called *discrete_log, *and I have shown you a > script below. > > m=5 > c=9916780 > n=20876441 > m=Mod(m,n)

[sage-support] Re: Calculate the DLP of 9916780 = (5**y) mod 20876441?

2020-05-13 Thread GZ D
You can use a function called *discrete_log, *and I have shown you a script below. m=5 c=9916780 n=20876441 m=Mod(m,n) c=Mod(c,n) print(discrete_log(c,m)) 在 2020年5月13日星期三 UTC+8下午12:11:57,Madison Adams写道: > > Hi, > So my goal is to find the variable y of this equation. > Does sage math provide a