has_linear_structure() trace

21 views
Skip to first unread message

Γίαννης Κολλητίδης

unread,
Dec 1, 2017, 5:40:50 AM12/1/17
to sage-support
Hi everyone,


sage: from sage.crypto.boolean_function import BooleanFunction
sage: f = BooleanFunction([0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0])
sage: f.has_linear_structure()

and as return I have the following error:
Traceback (click to the left of this block for traceback)
...
AttributeError: 'sage.crypto.boolean_function.BooleanFunction' object
has no attribute 'has_linear_structure'

The example I used is exactly the same from the documentation. 
If I use the autocorrelation function after , works perfectly. 
Could you please assist ? Thank you in advance.





error_sage.png

Rusydi H. Makarim

unread,
Dec 1, 2017, 5:50:05 AM12/1/17
to sage-s...@googlegroups.com
Hi,

Which version of SageMath that you used ?

--
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 sage-support+unsubscribe@googlegroups.com.
To post to this group, send email to sage-s...@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Rusydi H. Makarim

unread,
Dec 1, 2017, 6:16:13 AM12/1/17
to sage-s...@googlegroups.com
Note that has_linear_structure() in Boolean Function is only available from SageMath version >= 8.0

Justin C. Walker

unread,
Dec 1, 2017, 6:18:04 AM12/1/17
to SAGE Support
FWIW, I tried this on Sage 8.0 (macOS 10.11.6), and did not have a failure (the result was ‘True’).

What version of Sage are you using, what system (OS, hardware) and versions?

--
Justin C. Walker
Curmudgeon-at-large
--
Network, n., Difference between work
charged for and work done



Γίαννης Κολλητίδης

unread,
Dec 1, 2017, 5:20:11 PM12/1/17
to sage-support
Hello, 
You are right. I had version 7.6 and that was the problem. Thank you for yours assistance.


Τη Παρασκευή, 1 Δεκεμβρίου 2017 - 12:16:13 μ.μ. UTC+1, ο χρήστης Rusydi H. Makarim έγραψε:
Note that has_linear_structure() in Boolean Function is only available from SageMath version >= 8.0
On 1 Dec 2017 11:49 a.m., "Rusydi H. Makarim" <rusydi...@gmail.com> wrote:
Hi,

Which version of SageMath that you used ?
On 1 Dec 2017 11:40 a.m., "Γίαννης Κολλητίδης" <johnk...@gmail.com> wrote:
Hi everyone,


sage: from sage.crypto.boolean_function import BooleanFunction
sage: f = BooleanFunction([0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0])
sage: f.has_linear_structure()

and as return I have the following error:
Traceback (click to the left of this block for traceback)
...
AttributeError: 'sage.crypto.boolean_function.BooleanFunction' object
has no attribute 'has_linear_structure'

The example I used is exactly the same from the documentation. 
If I use the autocorrelation function after , works perfectly. 
Could you please assist ? Thank you in advance.





--
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 sage-support...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages