You can use this assignment in your class!
Mastery Progress(100.0%)
i

Unit 4.2: Count-based vectors

imgEducator’s Choice

You answeredJUST NOW
Python
You passed all test cases!
STDIN
1 0 0
Expected STDOUT
[1.0, 0.0, 0.0]
Your STDOUT
[1.0, 0.0, 0.0]
STDIN
0 1 0
Expected STDOUT
[0.0, 1.0, 0.0]
Your STDOUT
[0.0, 1.0, 0.0]
STDIN
0 0 1
Expected STDOUT
[0.0, 0.0, 1.0]
Your STDOUT
[0.0, 0.0, 1.0]
STDIN
1 1 0
Expected STDOUT
[0.7071067811865475, 0.7071067811865475, 0.0]
Your STDOUT
[0.7071067811865475, 0.7071067811865475, 0.0]
STDIN
1 1 1
Expected STDOUT
[0.5773502691896258, 0.5773502691896258, 0.5773502691896258]
Your STDOUT
[0.5773502691896258, 0.5773502691896258, 0.5773502691896258]
STDIN
2 2 2
Expected STDOUT
[0.5773502691896258, 0.5773502691896258, 0.5773502691896258]
Your STDOUT
[0.5773502691896258, 0.5773502691896258, 0.5773502691896258]
STDIN
1 0 1
Expected STDOUT
[0.7071067811865475, 0.0, 0.7071067811865475]
Your STDOUT
[0.7071067811865475, 0.0, 0.7071067811865475]

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Professor Gus Hahn-PowellAPR. 12, 2021 AT 12:14 AMstarTop Answer
Python

Was this helpful?

(Voting helps us personalize your learning experience!)
Think you've got it?
  • A.
  • B.
  • C.
  • D.

Was this helpful?

(Voting helps us personalize your learning experience!)

You may exit out of this review and return later without penalty.