2016-11-29 11:36:49 UTC+1, John Cremona:

> You are asking for help in debugging your own Weil pairing code.  Why 
> not use the Weil pairing code implemented in Sage? 
>
> In your example 
>
> sage: P.weil_pairing(Q,5) 
> 242 
> sage: _^5 
> 1 
>
> (since P and Q have order 5 the result is a 5th root of unity in the 
field). 
>
> I don't have time to debug your code but you should be able to write 
> it using genuine polynomials; your var('x') etc give symbolic objects 
> which are not good to use over a finite field. 
>
> John Cremona 

Excellent answer, John!

Regarding debugging, the question was also posted at ask-sage
and I aswered there with

- a fix to the original poster's code
- a minimal example triggering the segfault

The segfault boils down to a problem when dividing symbolic
expressions involving finite field elements.

See Ask Sage:

https://ask.sagemath.org/question/35770/getting-code-dumped-error-in-sage-code-for-weil-pairing/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to