Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ecm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
ZIMMERMANN Paul
ecm
Commits
0ab79ad9
Commit
0ab79ad9
authored
3 years ago
by
ZIMMERMANN Paul
Browse files
Options
Downloads
Patches
Plain Diff
fixed check.sage for Sage 9
parent
d766a149
No related branches found
No related tags found
No related merge requests found
Pipeline
#502667
passed
3 years ago
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
check.sage
+4
-4
4 additions, 4 deletions
check.sage
with
4 additions
and
4 deletions
check.sage
+
4
−
4
View file @
0ab79ad9
...
...
@@ -47,7 +47,7 @@ def FindGroupOrderParam (p, sigma, param):
elif param == 3:
return FindGroupOrderParam3 (p, sigma)
else:
print "Invalid parametrization: ", param
print
(
"Invalid parametrization: ", param
)
raise ValueError
# check if the prime p is found with B1,B2,param,sigma, or raises an error
...
...
@@ -66,8 +66,8 @@ def check_found_aux (ecm, p, B1, B2, param, sigma):
l = f.readlines()
f.close()
n = len(l)
if l[n-1]
<>
'Found input number N\n':
print "prime p=", p, "not found with B1=", B1, "B2=", B2, "param=", param, "sigma=", sigma
if l[n-1]
!=
'Found input number N\n':
print
(
"prime p=", p, "not found with B1=", B1, "B2=", B2, "param=", param, "sigma=", sigma
)
raise ValueError
def is_found(l, B1, B2):
...
...
@@ -105,7 +105,7 @@ def check_found (ecm, p, B1, B2, param, sigma_max):
# check the factor is really found
check_found_aux (ecm, p, B1, B2, param, sigma)
found += 1
print tries, found, 1.0*e2/tries, 1.0*e3/tries, 2.0^(e2/tries)*3.0^(e3/tries)
print
(
tries, found, 1.0*e2/tries, 1.0*e3/tries, 2.0^(e2/tries)*3.0^(e3/tries)
)
# check all parametrizations 0, 1, 2, 3
# check_found_all ("./ecm", 31622776601683800097, 11000, 1873422, 1000)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment