Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reed_solomon
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
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
Show more breadcrumbs
darius.briquet
reed_solomon
Compare revisions
c350688e2ae28a84d07208c97c8e324d77199af8 to 59d038bff52f157ca0ac8a9eded828f35daad8ab
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
darius.briquet/reed_solomon
Select target project
No results found
59d038bff52f157ca0ac8a9eded828f35daad8ab
Select Git revision
Branches
15-create-plot-function
17-test-jonas
main
3 results
Swap
Target
darius.briquet/reed_solomon
Select target project
darius.briquet/reed_solomon
1 result
c350688e2ae28a84d07208c97c8e324d77199af8
Select Git revision
Branches
15-create-plot-function
17-test-jonas
main
3 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Hopefuly FIXED show method
· efb3ccc1
jonas.stirnema
authored
3 years ago
efb3ccc1
Merge branch '14-fix-the-show-method' into 'main'
· 59d038bf
jonas.stirnema
authored
3 years ago
Resolve "Fix the show method" Closes
#14
See merge request
!13
59d038bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
polynome.py
+5
-8
5 additions, 8 deletions
polynome.py
with
5 additions
and
8 deletions
polynome.py
View file @
59d038bf
...
...
@@ -9,19 +9,16 @@ class polynome():
self
.
prime_mod
=
229
def
show
(
self
):
# TODO: OPTIMIZE IFs
for
i
in
range
(
len
(
self
.
coefs
)
-
1
,
-
1
,
-
1
):
power
=
""
if
self
.
coefs
[
i
]
!=
0
:
coef
=
str
(
self
.
coefs
[
i
])
if
i
!=
0
:
# its not 0's degree
power
=
f
"
x^
{
i
}
+
"
else
:
coef
=
""
if
i
!=
0
:
power
=
f
"
x^
{
i
}
+
"
else
:
power
=
""
print
(
f
"
{
coef
}{
power
}
"
,
end
=
""
)
print
()
print
(
f
"
{
coef
}{
power
}
"
,
end
=
""
)
print
()
# new line
def
add
(
self
,
poly_2
):
coeff_poly_1
=
self
.
coefs
...
...
This diff is collapsed.
Click to expand it.