From 2ca58725ca6674f0f83b56942cdef05a5368adea Mon Sep 17 00:00:00 2001 From: cprutean <cip.pruteanu@ed.ac.uk> Date: Thu, 18 Jul 2024 16:32:46 +0100 Subject: [PATCH] Update file Checkpoint2.ipynb --- Checkpoints/Checkpoint2.ipynb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Checkpoints/Checkpoint2.ipynb b/Checkpoints/Checkpoint2.ipynb index 25eadb8..20a070e 100644 --- a/Checkpoints/Checkpoint2.ipynb +++ b/Checkpoints/Checkpoint2.ipynb @@ -50,7 +50,9 @@ " - a=2.0, b=4.0 and c=2.0\n", " - a=0.0, b=6.0 and c=8.0\n", "\n", - "Ensure you get sensible answers for the four cases. Remember when a=0.0 you will get a linear equation with a single root. You should handle this correctly.\n", + "Ensure you get sensible answers for the four cases. **Remember when a=0.0 you will get a linear equation with a single root. You should handle this correctly.**\n", + "> #### Note:\n", + "> You should think about using the `cmath.sqrt` and `math.sqrt` functions to deal explicitly with square roots of complex and real numbers respectively.\n", "\n", "- Call a demonstrator, show them your code and run your program with the four sets of inputs above and any additional ones requested by the demonstrator.\n", "- Ensure that the demonstrator finds you in Learn. Please check that your pass/fail (0/1) has been entered correctly (you should be able to see this in Learn). \n", -- GitLab