From f0b47137f030be24f78785759de75830c4f0dd21 Mon Sep 17 00:00:00 2001 From: Pierre Wan-Fat Date: Mon, 29 Apr 2024 18:34:21 +0200 Subject: [PATCH] Fix typos in Complex Arithmetic kata (#1440) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix a LaTeX error in Cartesian to Polar Conversion solution. - Fix a mistake in Polar Coordinates. Hope that helps! 😊 --- .../content/complex_arithmetic/cartesian_to_polar/solution.md | 2 +- katas/content/complex_arithmetic/index.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/katas/content/complex_arithmetic/cartesian_to_polar/solution.md b/katas/content/complex_arithmetic/cartesian_to_polar/solution.md index 641f9b4cdc..da25f486e5 100644 --- a/katas/content/complex_arithmetic/cartesian_to_polar/solution.md +++ b/katas/content/complex_arithmetic/cartesian_to_polar/solution.md @@ -13,7 +13,7 @@ $$ re^{i \theta} = r \cos \theta + i r \sin \theta $$ For two complex numbers to be equal, their real and imaginary parts have to be equal. This gives us the following system of equations: -$$ \begin{cases} a = r \cos \theta \\ b = r \sin \theta \end{cases} $$ +$$ \begin{cases} a = r \cos \theta \\\\ b = r \sin \theta \end{cases} $$ To calculate $\theta$, we can divide the second equation by the first one to get diff --git a/katas/content/complex_arithmetic/index.md b/katas/content/complex_arithmetic/index.md index 08ca847730..07c619c62d 100644 --- a/katas/content/complex_arithmetic/index.md +++ b/katas/content/complex_arithmetic/index.md @@ -259,9 +259,9 @@ Sometimes $\theta$ will be referred to as the number's **argument** or **phase** > In Q#, complex numbers in polar form are represented as user-defined type `ComplexPolar` from the `Microsoft.Quantum.Math` namespace. > > You can convert a complex number $x = r \cdot e^{i\theta}$ into a tuple of two `Double` numbers using unwrap operator and tuple deconstruction: `let (r, theta) = x!;`, -> or access its real and imaginary parts using their names: `let (r, theta) = (x::Magnitude, x::Argument);`. +> or access its magnitude and phase using their names: `let (r, theta) = (x::Magnitude, x::Argument);`. > -> You can construct a complex number from its real and imaginary parts as follows: `let x = ComplexPolar(r, theta);`. +> You can construct a complex number from its magnitude and phase as follows: `let x = ComplexPolar(r, theta);`. @[exercise]({ "id": "complex_arithmetic__cartesian_to_polar",