aboutsummaryrefslogtreecommitdiff
path: root/challenge-011/duncan-c-white/README
diff options
context:
space:
mode:
authordrclaw1394 <drclaw@mac.com>2019-06-10 20:56:34 +1000
committerGitHub <noreply@github.com>2019-06-10 20:56:34 +1000
commit5c1663e3f7a4bf8767cd62c4e7db03186561edb2 (patch)
tree2a0fa3af0f3b0fd5a71a9ae67984f4fa2adb8aa1 /challenge-011/duncan-c-white/README
parentb577c5e4a0a63be26d335cb74580c1ae721105c0 (diff)
parente874646e75a09fbe9c9f248e2071bc4182973b7f (diff)
downloadperlweeklychallenge-club-5c1663e3f7a4bf8767cd62c4e7db03186561edb2.tar.gz
perlweeklychallenge-club-5c1663e3f7a4bf8767cd62c4e7db03186561edb2.tar.bz2
perlweeklychallenge-club-5c1663e3f7a4bf8767cd62c4e7db03186561edb2.zip
Merge pull request #11 from manwar/master
update to week 12
Diffstat (limited to 'challenge-011/duncan-c-white/README')
-rw-r--r--challenge-011/duncan-c-white/README32
1 files changed, 21 insertions, 11 deletions
diff --git a/challenge-011/duncan-c-white/README b/challenge-011/duncan-c-white/README
index fb3a863c80..3ff28fa716 100644
--- a/challenge-011/duncan-c-white/README
+++ b/challenge-011/duncan-c-white/README
@@ -1,14 +1,24 @@
-Challenge 1: "Create a script which takes a list of numbers from
-command line and print the same in the compact form. For example, if
-you pass 1,2,3,4,9,10,14,15,16 then it should print the compact form
-like 1-4,9,10,14-16.."
+Challenge 1: "Write a script that computes the equal point in the Fahrenheit and Celsius scales, knowing that the freezing point of water is 32 °F and 0 °C, and that the boiling point of water is 212 °F and 100 Â,"
-Quite simple and dull problem. But ok, let's have a go.
+My notes: Isn't that just Maths? solve F = 9/5C + 32 for F==C?
-Challenge 2: "Create a script to calculate Ramanujan's constant with at
-least 32 digits of precision."
+C = 9/5C + 32 => 4/5C = -32 => C = 5/4 x -32 = 5 x -8 = -40
-Never heard of this constant, seems to be e^(pi*sqrt(163)), which is
-"very nearly an integer", I don't particularly care about abtruse mathematical
-formulae. But ok, Perl's built in module biggrat will let you do this anyway,
-specifying accuracy 32; see ch-2.sh for the oneliner.
+But if I have to "compute" something that I should obviously "solve by
+algebra", could I do some sort of "where do two lines intersect" solver?
+Let's have a go.
+
+
+Challenge 2: "Write a script to create an Indentity Matrix for the given
+size. For example, if the size is 4, then create Identity Matrix 4x4."
+
+My notes:
+
+Surely that's incredibly straight forward. The identity matrix has 1s
+on the leading diagonal and 0s everywhere else. But should we create
+it in memory as a 2-D array and print that out, or just print out the
+identity matrix? Let's choose the latter as it's simpler and more direct,
+even though the former approach would be more useful in real life, as
+presumably this is going to be one operation in a more general Matrix
+class/module [really, these questions need to be BETTER SPECIFIED to
+clarify this sort of thing]