CourseWare Wiki
Switch Term
Winter 2024 / 2025
Winter 2023 / 2024
Winter 2022 / 2023
Winter 2021 / 2022
Winter 2020 / 2021
Winter 2019 / 2020
Winter 2018 / 2019
Older
Search
Log In
old
courses
be5b33prg
homeworks
vectorclass
Warning
This page is located in archive. Go to the latest version of this
course pages
.
Differences
This shows you the differences between two versions of the page.
View differences:
Side by Side
Inline
Go
Link to this comparison view
2017/01/11 22:29 xposik
2017/01/08 11:09 svobodat
2017/01/08 10:55 svobodat
2017/01/08 10:50 svobodat
2017/01/08 10:28 svobodat created
Go
Next revision
Previous revision
2017/01/11 22:29 xposik
2017/01/08 11:09 svobodat
2017/01/08 10:55 svobodat
2017/01/08 10:50 svobodat
2017/01/08 10:28 svobodat created
Go
courses:be5b33prg:homeworks:vectorclass [2017/01/08 10:28]
svobodat
created
courses:be5b33prg:homeworks:vectorclass [2017/01/11 22:29]
(current)
xposik
Line 1:
Line 1:
====== Class Vector ======
====== Class Vector ======
-
This a non-graded homework which serves as a preparation for the 3rd mid-term programming test.
+
This a non-graded
(actually 1 point as a symbolic reward)
homework
(50_vclass)
which
mainly
serves as a preparation for the 3rd mid-term programming test.
Create ''vectorclass.py'' module implementing a Vector class with the following methods:
Create ''vectorclass.py'' module implementing a Vector class with the following methods:
Line 25:
Line 25:
>>> v2 = v.scaled_copy(3)
>>> v2 = v.scaled_copy(3)
>>> v.x
>>> v.x
-
[
1, 2, 3
]
+
(
1, 2, 3
)
>>> v2.x
>>> v2.x
-
[
3, 6, 9
]
+
(
3, 6, 9
)
"""
"""
courses/be5b33prg/homeworks/vectorclass.1483867700.txt.gz
· Last modified: 2017/01/08 10:28 by
svobodat