microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
billt/mac-intel-cryptography

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

katas/content/linear_algebra/normalized_vector/Verification.qs

15lines · modecode

1namespace Kata.Verification {
2 import Std.Math.*;
3
4 function NormalizedVector_Reference() : Complex[][] {
5 return [
6 [Complex(-0.6, 0.)],
7 [Complex(0., 0.8)]
8 ];
9 }
10
11 @EntryPoint()
12 operation CheckSolution() : Bool {
13 ArraysEqualC(Kata.NormalizedVector(), NormalizedVector_Reference())
14 }
15}
16