diff --git a/.github/workflows/Harnesses.yml b/.github/workflows/Harnesses.yml index 9bd6ddbf1..648658371 100644 --- a/.github/workflows/Harnesses.yml +++ b/.github/workflows/Harnesses.yml @@ -48,6 +48,7 @@ jobs: dotnet build -c Release Sources/Tests/Harnesses/RuleCheck dotnet build -c Release Sources/Tests/Harnesses/CanonCheck dotnet build -c Release Sources/Tests/Harnesses/Confluence + dotnet build -c Release Sources/Tests/Harnesses/ModenovCorpus # One step each, every one run whatever the one before did, so a red run names the harness. - name: BoundCheck @@ -82,6 +83,12 @@ jobs: if: success() || failure() run: dotnet Sources/Tests/Harnesses/Confluence/bin/Release/net10.0/confluence.dll + # Modenov's computations, each row's verdict committed in modenov-baseline.tsv: fails on a + # wrong answer, an erratum confirmed, or a verdict that moves either way. + - name: ModenovCorpus + if: success() || failure() + run: dotnet Sources/Tests/Harnesses/ModenovCorpus/bin/Release/net10.0/modenovcorpus.dll + - name: Reports if: always() uses: actions/upload-artifact@v6 diff --git a/CLAUDE.md b/CLAUDE.md index ac38a7d41..9b64cccbc 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -19,12 +19,13 @@ nothing else is read: [`Contributing/SimplificationContract.md`](Sources/AngouriMath/Docs/Contributing/SimplificationContract.md). A rule states the assumptions under which it holds, or it is asserting there are none. -Ten measurement harnesses live in `Sources/Tests/Harnesses` and run in CI on every change to the -library: the boundary checker, root completeness, the self-verifying solver corpus, the property +Eleven measurement harnesses live in `Sources/Tests/Harnesses` and run in CI on every change to +the library: the boundary checker, root completeness, the self-verifying solver corpus, the property checker, the simplification sweep, the rule-set checker, a crash harness that survives a stack -overflow, the canonical-form checker, the arm-order checker, and a checker for the code samples in -the wiki and on the website. Each fails on a defect, or the canonical-form and arm-order checkers on -a change to the findings they list; the README says which. The rest are still in the analysis +overflow, the canonical-form checker, the arm-order checker, the corpus of Modenov's computations +and his book's errata, and a checker for the code samples in the wiki and on the website. Each fails +on a defect, or the canonical-form and arm-order checkers and the Modenov corpus on a change to the +findings they list; the README says which. The rest are still in the analysis workspace one directory up (`work/`). Run them before claiming anything is fixed. There is also a *gate*, which is not a harness: diff --git a/Sources/.editorconfig b/Sources/.editorconfig index 141699634..502676743 100644 --- a/Sources/.editorconfig +++ b/Sources/.editorconfig @@ -48,6 +48,9 @@ file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed [Tests/UnitTests/Common/LogarithmOfAPerfectPowerTest.cs] file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n +[Tests/Harnesses/ModenovCorpus/*.cs] +file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n + [AngouriMath/Functions/PredicateEntailment.cs] file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n diff --git a/Sources/AngouriMath/Docs/References.md b/Sources/AngouriMath/Docs/References.md index 52aded799..c06cf1e8e 100644 --- a/Sources/AngouriMath/Docs/References.md +++ b/Sources/AngouriMath/Docs/References.md @@ -17,6 +17,13 @@ and the link. Add a work here when it is first cited. binomial identities, and induction — its examples and exercises are the rows of `QuantifierTest`, `SubsetTest`, `IndexedSetOperationTest`, `ImageAndPreImageTest`, `BinomialIdentityTest`, `InductionTest` and `ThresholdSetTest`. +- **Modenov, P. S.** *Problems in Geometry.* Translated from the Russian by George Yankovsky. + Mir, Moscow, 1981. . + Read for [#2131](https://github.com/asc-community/AngouriMath/issues/2131): vector algebra, + analytic geometry, complex numbers in plane geometry, inversion. Its computations, and the + errors found in it by computing, are the rows of the `ModenovCorpus` harness + ([#2153](https://github.com/asc-community/AngouriMath/issues/2153)), cited by chapter, section + and problem. - **Bronstein, Manuel.** *Symbolic Integration I: Transcendental Functions.* 2nd ed., Springer, 2005. The Hermite reduction, the rational and logarithmic parts, and the Risch structure the integrator follows. diff --git a/Sources/Tests/Harnesses/ModenovCorpus/ModenovCorpus.csproj b/Sources/Tests/Harnesses/ModenovCorpus/ModenovCorpus.csproj new file mode 100644 index 000000000..89eb90242 --- /dev/null +++ b/Sources/Tests/Harnesses/ModenovCorpus/ModenovCorpus.csproj @@ -0,0 +1,31 @@ + + + + + + Exe + net10.0 + disable + preview + modenovcorpus + ModenovCorpus + true + false + + + + + + + + + + diff --git a/Sources/Tests/Harnesses/ModenovCorpus/Program.cs b/Sources/Tests/Harnesses/ModenovCorpus/Program.cs new file mode 100644 index 000000000..0ec30e5dd --- /dev/null +++ b/Sources/Tests/Harnesses/ModenovCorpus/Program.cs @@ -0,0 +1,592 @@ +// +// Copyright (c) 2019-2026 Angouri. +// AngouriMath is licensed under MIT. +// Details: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md. +// Website: https://am.angouri.org. +// + +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading; +using AngouriMath; +using AngouriMath.Extensions; + +namespace ModenovCorpus +{ + /// + /// What a row earns. is the right answer to an erratum: the library did + /// not confirm the form the book printed. is the corpus's own error, a row + /// whose claim does not hold by value, and it fails the run whatever the baseline says. + /// + public enum Verdict { Solved, Refused, Unsolved, Wrong, Error, Timeout, BadRow } + + public enum Op { Zero, Equal, Solve, Erratum } + + /// One computation from Modenov's Problems in Geometry, as modenov.tsv records it. + public sealed record Row(string Id, string Source, Op Op, string Var, string Input, string Expected, char Points, string Note, int Line) + { + public string Chapter => Id.Substring(0, Id.IndexOf('.')); + } + + public sealed record Result(Row Row, Verdict Verdict, string Answer, string Note, long Ms); + + /// + /// Modenov's computations as a corpus. Every row is checked twice by value: the row's own claim + /// first, so that a mistyped identity cannot pass as the library's failure, and then the + /// library's answer against the input it came from. + /// https://github.com/asc-community/AngouriMath/issues/2153 + /// + public static class Program + { + private static readonly TimeSpan Budget = TimeSpan.FromSeconds(20); + + public static int Main(string[] args) + { + var only = args.FirstOrDefault(a => a.StartsWith("--only=", StringComparison.Ordinal))?.Substring(7); + var rows = Load(Path.Combine(ProjectDirectory(), "modenov.tsv")); + var run = rows.Where(r => only is null || r.Id.StartsWith(only, StringComparison.Ordinal)).ToList(); + + var clock = System.Diagnostics.Stopwatch.StartNew(); + var results = new List(); + foreach (var row in run) + { + var r = RunWithBudget(row); + results.Add(r); + Console.Error.WriteLine($"{r.Verdict,-8} {r.Ms,6}ms {row.Id,-16} {Trunc(row.Input, 70)}"); + } + Report(results, clock.Elapsed); + + var failed = false; + foreach (var r in results.Where(r => r.Verdict is Verdict.Wrong or Verdict.BadRow)) + { + Console.WriteLine($"{r.Verdict.ToString().ToUpperInvariant()} {r.Row.Id} (modenov.tsv:{r.Row.Line}): {r.Row.Input} -> {r.Answer}: {r.Note}"); + failed = true; + } + if (only is not null) + { + Console.WriteLine("--only runs part of the corpus, so the baseline is not compared."); + return failed ? 1 : 0; + } + + // A wrong answer is never recorded as known: it fails the run by itself, as CasBench's does. + var timedOut = new HashSet(results.Where(r => r.Verdict == Verdict.Timeout).Select(r => r.Row.Id)); + var findings = results + .Where(r => r.Verdict is not (Verdict.Timeout or Verdict.Wrong or Verdict.BadRow)) + .Select(r => $"{r.Row.Id}\t{r.Verdict}"); + var baseline = Harness.Baseline.Check( + "modenov-baseline.tsv", + "modenovcorpus: a row of modenov.tsv and the verdict it earns. A timed-out row is unmeasured and not listed.", + findings, + line => timedOut.Contains(line.Split('\t')[0])); + return failed || baseline != 0 ? 1 : 0; + } + + // ---------- the data ---------- + + private static List Load(string path) + { + var rows = new List(); + var ids = new HashSet(); + var lines = File.ReadAllLines(path); + for (int n = 0; n < lines.Length; n++) + { + var line = lines[n]; + if (line.Length == 0 || line.StartsWith("#", StringComparison.Ordinal)) + continue; + var f = line.Split('\t'); + if (f.Length != 8) + throw new InvalidDataException($"modenov.tsv:{n + 1}: {f.Length} fields, not 8"); + var op = f[2] switch + { + "zero" => Op.Zero, + "equal" => Op.Equal, + "solve" => Op.Solve, + "erratum" => Op.Erratum, + _ => throw new InvalidDataException($"modenov.tsv:{n + 1}: unknown op '{f[2]}'"), + }; + if (f[6].Length != 1 || "CRPU-".IndexOf(f[6][0]) < 0) + throw new InvalidDataException($"modenov.tsv:{n + 1}: unknown points '{f[6]}'"); + if (!ids.Add(f[0]) || f[0].IndexOf('.') < 1) + throw new InvalidDataException($"modenov.tsv:{n + 1}: id '{f[0]}' is repeated or has no chapter"); + rows.Add(new Row(f[0], f[1], op, f[3], f[4], f[5], f[6][0], f[7], n + 1)); + } + return rows; + } + + private static string ProjectDirectory() + => Directory.GetParent(AppContext.BaseDirectory).Parent.Parent.Parent.FullName; + + // ---------- running ---------- + + /// + /// Each row runs on its own thread so that a hang costs the budget and not the run. The + /// thread is abandoned, not killed: .NET cannot abort a thread. + /// + private static Result RunWithBudget(Row row) + { + var sw = System.Diagnostics.Stopwatch.StartNew(); + Result result = null; + var done = new ManualResetEventSlim(false); + var t = new Thread(() => + { + try { result = Run(row, sw); } + catch (Exception e) { result = new Result(row, Verdict.Error, "", Short(e), sw.ElapsedMilliseconds); } + finally { done.Set(); } + }, 64 * 1024 * 1024); + t.IsBackground = true; + t.Start(); + if (!done.Wait(Budget)) + return new Result(row, Verdict.Timeout, "", $"no answer in {Budget.TotalSeconds:0}s", sw.ElapsedMilliseconds); + return result; + } + + private static Result Run(Row row, System.Diagnostics.Stopwatch sw) + { + Entity input, expected = null; + try + { + input = row.Input.ToEntity(); + if (row.Expected != "-") + expected = row.Expected.ToEntity(); + } + catch (Exception e) + { + return new Result(row, Verdict.BadRow, "", "does not parse: " + Short(e), sw.ElapsedMilliseconds); + } + return row.Op switch + { + Op.Zero => RunZero(row, input, sw), + Op.Equal => RunEqual(row, input, expected, sw), + Op.Erratum => RunErratum(row, input, expected, sw), + Op.Solve => RunSolve(row, input, expected, sw), + _ => throw new InvalidOperationException(), + }; + } + + /// An identity: the input is 0 wherever it has a value, and Simplify is to say so. + private static Result RunZero(Row row, Entity input, System.Diagnostics.Stopwatch sw) + { + var samples = Samples(row.Points, Free(input)); + var claim = Vanishes(input, samples); + if (claim is not null) + return new Result(row, Verdict.BadRow, "", "the row's identity does not hold: " + claim, sw.ElapsedMilliseconds); + + var simplified = input.Simplify(); + var text = simplified.Stringize(); + if (Bare(simplified) == 0) + return new Result(row, Verdict.Solved, text, "reduced to 0", sw.ElapsedMilliseconds); + var moved = Disagrees(simplified, input, samples); + return moved is not null + ? new Result(row, Verdict.Wrong, text, "Simplify changed the value: " + moved, sw.ElapsedMilliseconds) + : new Result(row, Verdict.Unsolved, text, "0 by value, not reduced to 0", sw.ElapsedMilliseconds); + } + + /// + /// A reduction the book gives: Simplify of the input is to equal the book's form by value + /// and be no larger than it, which is how CasBench decides that a target form was reached. + /// + private static Result RunEqual(Row row, Entity input, Entity expected, System.Diagnostics.Stopwatch sw) + { + var samples = Samples(row.Points, Free(input).Concat(Free(expected))); + var claim = Vanishes(input - expected, samples); + if (claim is not null) + return new Result(row, Verdict.BadRow, "", "the row's equality does not hold: " + claim, sw.ElapsedMilliseconds); + + var simplified = input.Simplify(); + var text = simplified.Stringize(); + var moved = Disagrees(simplified, input, samples); + if (moved is not null) + return new Result(row, Verdict.Wrong, text, "Simplify changed the value: " + moved, sw.ElapsedMilliseconds); + var bare = Bare(simplified); + var target = expected.Simplify(); + var reached = bare == Bare(target) || bare.Nodes.Count() <= Bare(target).Nodes.Count(); + return reached + ? new Result(row, Verdict.Solved, text, $"reached {row.Expected}", sw.ElapsedMilliseconds) + : new Result(row, Verdict.Unsolved, text, $"equal by value, not reduced to {row.Expected}", sw.ElapsedMilliseconds); + } + + /// + /// An error in the book: the input is not the form the book printed. The library must not + /// confirm the printed form, neither by reducing the difference to 0 nor by deciding the + /// equality true; giving the right value or leaving it undecided are both correct. + /// + private static Result RunErratum(Row row, Entity input, Entity printed, System.Diagnostics.Stopwatch sw) + { + var difference = input - printed; + var samples = Samples(row.Points, Free(difference)); + if (!DiffersSomewhere(difference, samples, out var why)) + return new Result(row, Verdict.BadRow, "", "the erratum is not confirmed by value: " + why, sw.ElapsedMilliseconds); + + var simplified = difference.Simplify(); + var text = simplified.Stringize(); + if (Bare(simplified) == 0) + return new Result(row, Verdict.Wrong, text, "confirms the book's printed form: the difference reduces to 0", sw.ElapsedMilliseconds); + var statement = ((Entity)MathS.Equality(input, printed)).Simplify(); + if (Bare(statement) == MathS.Boolean.True) + return new Result(row, Verdict.Wrong, statement.Stringize(), "confirms the book's printed form: the equality simplifies to true", sw.ElapsedMilliseconds); + var moved = Disagrees(simplified, difference, samples); + return moved is not null + ? new Result(row, Verdict.Wrong, text, "Simplify changed the value of the difference: " + moved, sw.ElapsedMilliseconds) + : new Result(row, Verdict.Refused, text, "the printed form is not confirmed", sw.ElapsedMilliseconds); + } + + /// + /// An equation: every root returned satisfies it, at every sample of the parameters, and + /// every root the book gives is among them. A finite set missing a root claims there is + /// none, so it is wrong, not unsolved. + /// + private static Result RunSolve(Row row, Entity statement, Entity expectedSet, System.Diagnostics.Stopwatch sw) + { + var x = MathS.Var(row.Var); + if (statement is not Entity.Equalsf eq || expectedSet is not Entity.Set.FiniteSet expectedRoots) + return new Result(row, Verdict.BadRow, "", "a solve row is an equation and a finite set of roots", sw.ElapsedMilliseconds); + var residual = eq.Left - eq.Right; + var parameters = Free(statement).Where(v => v != x).ToArray(); + var samples = Samples(row.Points, parameters); + // A family of roots, 2 pi n_1 + pi / 3, carries an integer of its own: the book's + // families are bound to a few integers, the library's to a wider range around them. + var expectedConcrete = Concrete(expectedRoots, parameters, x, 1); + foreach (var root in expectedConcrete) + { + var claim = Vanishes(residual.Substitute(x, root), samples); + if (claim is not null) + return new Result(row, Verdict.BadRow, "", $"the book's root {root.Stringize()} does not satisfy the equation: {claim}", sw.ElapsedMilliseconds); + } + + var solutions = statement.Solve(x); + var text = solutions.Stringize(); + if (solutions is not Entity.Set.FiniteSet found) + return new Result(row, Verdict.Unsolved, text, "not a finite set; not verified", sw.ElapsedMilliseconds); + + var foundConcrete = Concrete(found, parameters, x, 4); + foreach (var root in foundConcrete) + { + var fails = Vanishes(residual.Substitute(x, root), samples); + if (fails is not null) + return new Result(row, Verdict.Wrong, text, $"{root.Stringize()} is not a root: {fails}", sw.ElapsedMilliseconds); + } + foreach (var root in expectedConcrete) + { + var missing = Missing(root, foundConcrete, samples); + if (missing is not null) + return new Result(row, Verdict.Wrong, text, $"the root {root.Stringize()} is missing: {missing}", sw.ElapsedMilliseconds); + } + var size = found.Sum(r => r.Nodes.Count()); + var target = expectedRoots.Sum(r => r.Simplify().Nodes.Count()); + return size <= target + ? new Result(row, Verdict.Solved, text, $"{found.Count} root(s) verified, complete", sw.ElapsedMilliseconds) + : new Result(row, Verdict.Unsolved, text, $"roots verified and complete, not reduced to {row.Expected}", sw.ElapsedMilliseconds); + } + + /// + /// The roots of a set with each family's own integer bound to every value from -reach to + /// reach; a root without one is itself. + /// + private static List Concrete(IEnumerable roots, Entity.Variable[] parameters, Entity.Variable x, int reach) + { + var concrete = new List(); + foreach (var root in roots) + { + var own = Free(root).Where(v => v != x && !parameters.Contains(v)).ToArray(); + if (own.Length == 0) + { + concrete.Add(root); + continue; + } + for (int n = -reach; n <= reach; n++) + concrete.Add(own.Aggregate(root, (r, v) => r.Substitute(v, n))); + } + return concrete; + } + + // ---------- sampling ---------- + // + // Exact rationals, so that a sample point adds no rounding of its own: abs of a point of the + // unit pool is exactly 1 and its conjugate is exactly its reciprocal. Each pool mixes signs + // and quadrants, and keeps away from 0, 1 and -1, where the book's denominators vanish. + + private static readonly string[] Complex = + { + "37/100 + 61/100*i", "-121/100 + 43/100*i", "19/10 - 7/10*i", "-53/100 - 137/100*i", "23/10 + 11/10*i", + "-17/10 - 29/100*i", "7/9 + 13/7*i", "-5/11 + 9/4*i", "41/20 - 33/20*i", "-3/7 - 2/9*i", + "13/8 + 1/3*i", "-29/12 + 17/10*i", "11/17 - 23/9*i", "-9/5 - 13/11*i", "31/30 + 47/20*i", + "-1/3 + 5/6*i", "17/9 - 1/8*i", + }; + + private static readonly string[] RealPool = + { + "37/100", "-121/100", "19/10", "-53/100", "231/100", "-17/10", "7/9", "-5/11", "41/20", "-3/7", + "13/8", "-29/12", "11/17", "-9/5", "31/30", "-1/3", "17/9", + }; + + private static readonly string[] Positive = + { + "37/100", "121/100", "19/10", "53/100", "231/100", "17/10", "7/9", "5/11", "41/20", "3/7", + "13/8", "29/12", "11/17", "9/5", "31/30", "1/3", "17/9", + }; + + // Pythagorean triples: (a/c)^2 + (b/c)^2 = 1 exactly. + private static readonly string[] Unit = + { + "3/5 + 4/5*i", "-5/13 + 12/13*i", "-8/17 - 15/17*i", "7/25 - 24/25*i", "20/29 + 21/29*i", + "-12/37 - 35/37*i", "40/41 - 9/41*i", "-28/53 + 45/53*i", "11/61 + 60/61*i", "-56/65 - 33/65*i", + "63/65 + 16/65*i", "-48/73 + 55/73*i", "13/85 - 84/85*i", "-77/85 - 36/85*i", "39/89 + 80/89*i", + "-72/97 + 65/97*i", "99/101 - 20/101*i", + }; + + private static readonly Dictionary Parsed = new(); + + private static Entity Parse(string text) + { + lock (Parsed) + { + if (!Parsed.TryGetValue(text, out var v)) + Parsed[text] = v = text.ToEntity().EvalNumerical(); + return v; + } + } + + private const int SampleCount = 6; + + /// + /// Six assignments of the row's free variables, drawn from the pool its points field names. + /// Within one assignment every variable gets a different value, so no difference of two + /// variables vanishes by accident. + /// + private static List> Samples(char points, IEnumerable variables) + { + var vars = variables.Distinct().OrderBy(v => v.Name, StringComparer.Ordinal).ToArray(); + var pool = points switch { 'R' => RealPool, 'P' => Positive, 'U' => Unit, _ => Complex }; + var samples = new List>(); + for (int i = 0; i < (vars.Length == 0 ? 1 : SampleCount); i++) + { + var s = new Dictionary(); + for (int v = 0; v < vars.Length; v++) + s[vars[v]] = Parse(pool[(5 * i + v) % pool.Length]); + samples.Add(s); + } + return samples; + } + + /// + /// The variables a value has to be given for: not a constant such as pi, and not a name a + /// binder declares, as the index of a sum or the variable of a limit. + /// + private static IEnumerable Free(Entity e) => e.FreeVariables.Where(v => !v.IsConstant); + + private static Entity Bare(Entity e) + { + while (e is Entity.Providedf(var inner, _)) + e = inner; + return e; + } + + /// + /// A value at a sample: one number, or the entries of a vector or matrix, which the + /// first chapters of the book compute with. + /// + private sealed record Value(Entity.Number.Complex[] Parts) + { + public double Size => Parts.Max(Magnitude); + + /// How far apart two values are; infinite when their shapes differ. + public double From(Value other) + => Parts.Length != other.Parts.Length + ? double.PositiveInfinity + : Parts.Zip(other.Parts, (a, b) => Magnitude((Entity.Number.Complex)(a - b).EvalNumerical())).Max(); + } + + /// The value at a sample, or null where there is none. + private static Value At(Entity e, Dictionary sample) + { + try + { + // A derivative is taken before its variable is given a value, which would + // otherwise differentiate with respect to a number. + var bare = Bare(e); + if (bare.Nodes.Any(n => n is Entity.Derivativef)) + bare = bare.Evaled; + var substituted = bare.Substitute(sample); + Entity.Number.Complex[] parts; + if (substituted.Nodes.Any(n => n is Entity.Matrix)) + { + // A dot product written aT * b is a matrix expression with a number for a value. + var evaled = substituted.Evaled; + parts = evaled is Entity.Matrix m + ? Enumerable.Range(0, m.RowCount).SelectMany(r => Enumerable.Range(0, m.ColumnCount).Select(c => m[r, c].EvalNumerical())).ToArray() + : new[] { evaled.EvalNumerical() }; + } + else + parts = new[] { substituted.EvalNumerical() }; + var v = new Value(parts); + return double.IsNaN(v.Size) || double.IsInfinity(v.Size) ? null : v; + } + catch { return null; } + } + + private static double Magnitude(Entity.Number.Complex c) + { + try + { + var re = c.RealPart.EDecimal.ToDouble(); + var im = c.ImaginaryPart.EDecimal.ToDouble(); + return Math.Sqrt(re * re + im * im); + } + catch { return double.NaN; } + } + + /// + /// How large the terms of a sum are at a sample, so that a cancellation is judged relative + /// to what cancelled, not to 1. + /// + private static double Scale(Entity e, Dictionary sample) + { + var scale = 1.0; + var stack = new Stack(); + stack.Push(Bare(e)); + while (stack.Count > 0) + { + var node = stack.Pop(); + if (node is Entity.Sumf or Entity.Minusf) + { + foreach (var child in node.DirectChildren) + stack.Push(child); + continue; + } + var v = At(node, sample); + if (v is not null) + scale = Math.Max(scale, v.Size); + } + return scale; + } + + private const double Tolerance = 1e-8; + private const int Required = 3; + + /// Null when the expression is 0 at every sample where it has a value, and at enough of them. + private static string Vanishes(Entity e, List> samples) + { + int usable = 0; + for (int i = 0; i < samples.Count; i++) + { + var v = At(e, samples[i]); + if (v is null) continue; + usable++; + var m = v.Size; + if (m > Tolerance * Scale(e, samples[i])) + return $"{m:0.###e+0} at sample {i}"; + } + return usable >= Math.Min(Required, samples.Count) ? null : $"a value at only {usable} of {samples.Count} samples"; + } + + private static bool DiffersSomewhere(Entity e, List> samples, out string why) + { + why = "0 at every sample with a value"; + for (int i = 0; i < samples.Count; i++) + { + var v = At(e, samples[i]); + if (v is not null && v.Size > 1e-6 * Scale(e, samples[i])) + return true; + } + return false; + } + + /// + /// Null when the answer has the input's value wherever the input has one. An answer with no + /// value where the input has one disagrees too: it says there is nothing there. + /// + private static string Disagrees(Entity answer, Entity input, List> samples) + { + for (int i = 0; i < samples.Count; i++) + { + var want = At(input, samples[i]); + if (want is null) continue; + var got = At(answer, samples[i]); + if (got is null) + return $"no value at sample {i}, where the input is {want.Size:0.###e+0} in size"; + var diff = got.From(want); + if (diff > 1e-6 * Math.Max(Scale(input, samples[i]), want.Size)) + return $"differs by {diff:0.###e+0} at sample {i}"; + } + return null; + } + + /// Null when, at every sample, the expected root's value is the value of one of the roots found. + private static string Missing(Entity root, List found, List> samples) + { + for (int i = 0; i < samples.Count; i++) + { + var want = At(root, samples[i]); + if (want is null) continue; + var hit = found.Any(r => + { + var got = At(r, samples[i]); + return got is not null + && got.From(want) <= 1e-6 * Math.Max(1, want.Size); + }); + if (!hit) + return $"no root found has its value at sample {i}"; + } + return null; + } + + // ---------- reporting ---------- + + private static void Report(List results, TimeSpan elapsed) + { + var verdicts = Enum.GetValues(); + var sb = new StringBuilder(); + sb.AppendLine("# Modenov's computations as a corpus"); + sb.AppendLine(); + sb.AppendLine($"Measured against `{Harness.Measured.Commit()}`, in {elapsed.TotalSeconds:0} s."); + sb.AppendLine(); + sb.AppendLine($"{results.Count} rows from Modenov, *Problems in Geometry* (Mir, 1981), {Budget.TotalSeconds:0} s budget each."); + sb.AppendLine("An identity is verified at exact sample points from its row's domain before Simplify is asked;"); + sb.AppendLine("a root is substituted back and the book's roots must all be found; an erratum must not be confirmed."); + sb.AppendLine("https://github.com/asc-community/AngouriMath/issues/2153"); + sb.AppendLine(); + Table(sb, "Chapter", results.GroupBy(r => r.Row.Chapter), verdicts); + Table(sb, "Operation", results.GroupBy(r => r.Row.Op.ToString().ToLowerInvariant()), verdicts); + + sb.AppendLine("## Every row"); + sb.AppendLine(); + sb.AppendLine("| Row | Source | Op | Verdict | Answer | Note | ms |"); + sb.AppendLine("|---|---|---|---|---|---|--:|"); + foreach (var r in results) + sb.AppendLine($"| `{r.Row.Id}` | {Esc(r.Row.Source)} | {r.Row.Op.ToString().ToLowerInvariant()} | {r.Verdict} " + + $"| `{Esc(Trunc(r.Answer, 60))}` | {Esc(Trunc(r.Note, 80))} | {r.Ms} |"); + + var path = Harness.Reports.PathFor("modenov.md"); + File.WriteAllText(path, sb.ToString()); + Console.Error.WriteLine($"\nwrote {path}"); + Console.WriteLine($"OVERALL {results.Count} rows in {elapsed.TotalSeconds:0} s: " + + string.Join(", ", verdicts.Select(v => $"{results.Count(r => r.Verdict == v)} {v.ToString().ToLowerInvariant()}"))); + } + + private static void Table(StringBuilder sb, string what, IEnumerable> groups, Verdict[] verdicts) + { + sb.AppendLine($"## By {what.ToLowerInvariant()}"); + sb.AppendLine(); + sb.AppendLine($"| {what} | Rows | {string.Join(" | ", verdicts)} |"); + sb.AppendLine($"|---|--:|{string.Concat(verdicts.Select(_ => "--:|"))}"); + foreach (var g in groups.OrderBy(g => g.Key, StringComparer.Ordinal)) + sb.AppendLine($"| {g.Key} | {g.Count()} | {string.Join(" | ", verdicts.Select(v => g.Count(r => r.Verdict == v)))} |"); + sb.AppendLine(); + } + + private static string Short(Exception e) + { + var ex = e is AggregateException ae ? ae.InnerException ?? e : e; + var m = ex.Message.Replace("\n", " ").Replace("\r", ""); + return $"{ex.GetType().Name}: {(m.Length > 90 ? m.Substring(0, 90) + "..." : m)}"; + } + + private static string Trunc(string s, int n) => + string.IsNullOrEmpty(s) ? "" : s.Length <= n ? s : s.Substring(0, n) + "..."; + + private static string Esc(string s) => (s ?? "").Replace("|", "\\|"); + } +} diff --git a/Sources/Tests/Harnesses/ModenovCorpus/modenov-baseline.tsv b/Sources/Tests/Harnesses/ModenovCorpus/modenov-baseline.tsv new file mode 100644 index 000000000..f013ebeef --- /dev/null +++ b/Sources/Tests/Harnesses/ModenovCorpus/modenov-baseline.tsv @@ -0,0 +1,645 @@ +# modenovcorpus: a row of modenov.tsv and the verdict it earns. A timed-out row is unmeasured and not listed. +# One line per finding, tab separated, sorted. Generated by the harness, not edited by hand: +# to update it, run the harness with HARNESS_UPDATE_BASELINE=1 and commit it with the change that moved it. +I.Ex1.a Solved +I.Ex10.a Unsolved +I.Ex11.a Unsolved +I.Ex13.a Unsolved +I.Ex13.b Unsolved +I.Ex13.c Solved +I.Ex14.a Unsolved +I.Ex14.b Solved +I.Ex16.a Solved +I.Ex17.a Solved +I.Ex2.a Solved +I.Ex21.a Solved +I.Ex21.b Unsolved +I.Ex22.a Solved +I.Ex25.Er Refused +I.Ex25.a Solved +I.Ex26.a Solved +I.Ex26.b Unsolved +I.Ex3.a Solved +I.Ex9.a Solved +I.P1.1.a Unsolved +I.P1.1.b Solved +I.P1.2.a Solved +I.P1.2.b Solved +I.P1.3.a Solved +I.P1.3.b Solved +I.P1.3.c Solved +I.P1.3.d Solved +I.P1.4.Er Refused +I.P1.4.a Solved +I.P1.4.b Solved +I.P1.5.a Solved +I.P1.5.b Solved +I.P1.6.a Unsolved +I.P2.1.a Solved +I.P2.1.b Solved +I.P2.1.c Solved +I.P2.1.d Solved +I.P2.1.e Solved +I.P2.3.Er Refused +I.P2.3.a Solved +I.P2.3.b Solved +I.P2.3.c Solved +I.P2.3.d Solved +I.P2.5.a Solved +I.P2.5.b Solved +I.P2.6.a Solved +I.P2.6.b Solved +I.P2.6.c Unsolved +I.Pref1.a Solved +I.Pref2.a Solved +I.Pref7.Er1 Refused +I.Pref7.Er2 Refused +I.Pref7.Er3 Refused +I.Pref7.Er3c Solved +II.Def0.a Solved +II.E1 Refused +II.E3.a Refused +II.E3.b Refused +II.E3.c Solved +II.E4 Refused +II.E5 Refused +II.E5.c Unsolved +II.E6 Refused +II.E6.c Unsolved +II.Ex1.a Solved +II.Ex11.a Solved +II.Ex13.a Solved +II.Ex17.a Unsolved +II.Ex18.a Solved +II.Ex22.a Solved +II.Ex22.b Solved +II.Ex22.c Solved +II.Ex23.a Solved +II.Ex24.a Solved +II.Ex25.a Solved +II.Ex27.a Solved +II.Ex27.b Solved +II.Ex3.a Unsolved +II.Ex38.a Solved +II.Ex39.a Solved +II.Ex40.a Solved +II.Ex42.a Unsolved +II.Ex5.a Solved +II.Ex6.a Solved +II.Ex6.b Solved +II.Ex6.c Unsolved +II.Ex7.a Solved +II.Ex9.a Solved +II.P1.a Solved +II.P1.b Solved +II.P10.a Unsolved +II.P11.1.a Solved +II.P11.10.a Solved +II.P11.10.b Unsolved +II.P11.10.c Solved +II.P11.13.a Unsolved +II.P11.14.a Solved +II.P11.3.a Solved +II.P11.5.a Unsolved +II.P11.5.b Solved +II.P11.6.a Solved +II.P11.7.a Solved +II.P11.8.a Unsolved +II.P11.9.a Solved +II.P11R6.a Solved +II.P2.a Solved +II.P3.a Solved +II.P4def.a Unsolved +II.P5.a Unsolved +II.P5.b Solved +II.P6.a Solved +II.P7.a Unsolved +II.P9.a Unsolved +II.S1.a Solved +II.S4.a Solved +II.S4.b Solved +III.E1 Refused +III.E1.a Refused +III.E1.b Solved +III.E1.c Refused +III.E1.corr Solved +III.E1.d Solved +III.E10 Refused +III.E10.corr Solved +III.E3 Refused +III.E3.a Refused +III.E4 Refused +III.E4.a Refused +III.E5 Refused +III.E5.a Refused +III.E5.b Solved +III.E6 Refused +III.E7 Refused +III.E7.a Refused +III.E7.corr Solved +III.E8 Refused +III.E8.corr Solved +III.E9 Refused +III.E9.corr Solved +III.Ex1.1 Solved +III.Ex1.10 Solved +III.Ex1.10.alone Unsolved +III.Ex1.2 Solved +III.Ex1.3 Solved +III.Ex1.4 Solved +III.Ex1.5 Solved +III.Ex1.6 Solved +III.Ex1.7 Solved +III.Ex1.8 Solved +III.Ex1.8.alone Unsolved +III.Ex1.9 Solved +III.Ex1.9.alone Unsolved +III.Ex1.c Solved +III.Ex1.s1 Solved +III.Ex1.s2 Solved +III.Ex1.s3 Unsolved +III.Ex12 Unsolved +III.Ex14.1 Solved +III.Ex14.14 Solved +III.Ex14.15 Solved +III.Ex14.16.err Refused +III.Ex14.16a Solved +III.Ex14.16b Solved +III.Ex14.16c Solved +III.Ex14.17 Solved +III.Ex14.17.err Refused +III.Ex14.18a Solved +III.Ex14.18b Solved +III.Ex14.19 Solved +III.Ex14.2 Solved +III.Ex14.20 Solved +III.Ex14.21 Solved +III.Ex14.22 Solved +III.Ex14.24a Solved +III.Ex14.24b Solved +III.Ex14.24c Solved +III.Ex14.ac Solved +III.Ex14.bc1 Solved +III.Ex14.bc2 Solved +III.Ex14.cosA Solved +III.Ex14.cosB Solved +III.Ex14.cosC1 Solved +III.Ex14.cosC2 Solved +III.Ex14.pcos.alone Solved +III.Ex14.psin Solved +III.Ex14.psin.alone Unsolved +III.Ex14.ptan Solved +III.Ex14.ptan.alone Unsolved +III.Ex14.scc.alone Solved +III.Ex14.scos1 Solved +III.Ex14.scos2 Solved +III.Ex14.scos2.alone Solved +III.Ex14.sq.alone Solved +III.Ex14.ssin2.alone Solved +III.Ex15.a Solved +III.Ex15.b Solved +III.Ex16 Solved +III.Ex17 Solved +III.Ex18 Solved +III.Ex19 Solved +III.Ex2.1a Solved +III.Ex2.1b Unsolved +III.Ex2.1c Solved +III.Ex2.1d Solved +III.Ex2.1e Solved +III.Ex2.2 Solved +III.Ex20.a Solved +III.Ex20.b Solved +III.Ex20.c Unsolved +III.Ex20.err Refused +III.Ex22 Solved +III.Ex23 Solved +III.Ex24 Solved +III.Ex25 Solved +III.Ex26 Unsolved +III.Ex27 Solved +III.Ex29 Solved +III.Ex3 Solved +III.Ex31 Solved +III.Ex35 Unsolved +III.Ex36 Solved +III.Ex37.1 Solved +III.Ex37.6a Solved +III.Ex37.6b Solved +III.Ex4.2a Unsolved +III.Ex4.2b Solved +III.Ex4.2c Solved +III.Ex4.3 Solved +III.Ex6 Solved +III.Ex8.a Solved +III.Ex8.b Solved +III.Ex9.a Solved +III.Ex9.b Solved +III.P1.1.a Solved +III.P1.1.b Solved +III.P1.1.c Solved +III.P1.1.d Solved +III.P1.2.a Solved +III.P1.2.b Unsolved +III.P1.3.a Unsolved +III.P1.3.b Solved +III.P10a.a Solved +III.P10a.b Solved +III.P10a.c Solved +III.P10b.E1 Refused +III.P10b.E1c Solved +III.P10c.a Solved +III.P11.1.a Solved +III.P11.1.b Solved +III.P11.1.c Solved +III.P11.2.a Solved +III.P11.2.b Solved +III.P11.3.a Solved +III.P11.4.a Solved +III.P11.6.a Solved +III.P11.7.a Solved +III.P11.9.a Solved +III.P11.n.a Solved +III.P12a.a Solved +III.P12b.a Solved +III.P12c.a Unsolved +III.P12c.b Solved +III.P13.1.alt.a Solved +III.P13.1.alt.b Solved +III.P13.1.alt.c Solved +III.P13.1.forces Solved +III.P13.1.line Unsolved +III.P13.1.nested Solved +III.P13.1.pqr Solved +III.P13.1.slope Solved +III.P13.1.sq Solved +III.P13.2.line0 Unsolved +III.P13.2.lineh Unsolved +III.P13.2.sq Solved +III.P13.R.det Solved +III.P14.area1 Unsolved +III.P14.area2 Solved +III.P14.c0 Solved +III.P14.final Unsolved +III.P15.1.foot Solved +III.P15.1.mod Solved +III.P15.2 Solved +III.P15.V2.det Solved +III.P16.centroid Solved +III.P16.g Solved +III.P16.g2 Solved +III.P16.g3 Solved +III.P16.sqrt Solved +III.P17.factor Unsolved +III.P17.solve Unsolved +III.P17.solvef Solved +III.P18.1.p1 Solved +III.P18.1.trig Solved +III.P18.1.trig2 Solved +III.P18.2 Solved +III.P18.2.err Refused +III.P18.3 Solved +III.P19.b1 Solved +III.P2.a Unsolved +III.P2.b Solved +III.P2.c Solved +III.P2.d Solved +III.P2.e Solved +III.P20.a1 Solved +III.P21.o Solved +III.P21.o2 Solved +III.P21.r Unsolved +III.P21.s Unsolved +III.P21.t Unsolved +III.P22.1 Solved +III.P22.2.cor Solved +III.P22.2.err1 Refused +III.P22.2.err2 Refused +III.P22.R Unsolved +III.P23.1.A Solved +III.P23.1.B Solved +III.P23.1.C Solved +III.P23.2.pow Solved +III.P23.2.sum Solved +III.P23.4.slope Solved +III.P24.1 Solved +III.P24.2.pivot Solved +III.P24.3 Solved +III.P24.4 Solved +III.P24.5 Solved +III.P24.setup.a Unsolved +III.P24.setup.b Solved +III.P24.setup.c Solved +III.P25.1 Solved +III.P25.2 Solved +III.P25.3.75 Solved +III.P25.3.lam Unsolved +III.P25.3.line Solved +III.P25.4.79 Unsolved +III.P25.4.equi Solved +III.P25.4.inv Unsolved +III.P25.5 Unsolved +III.P25.5.solve Solved +III.P25.6 Solved +III.P25.Q1.det Unsolved +III.P25.Q1.ratio Solved +III.P25.setup.chord Solved +III.P25.setup.perp Solved +III.P26.10 Unsolved +III.P26.11 Unsolved +III.P26.12 Solved +III.P26.13 Solved +III.P26.13.factor Unsolved +III.P26.13.solve Solved +III.P26.14 Solved +III.P26.2 Solved +III.P26.3 Solved +III.P26.5.a Solved +III.P26.5.b Solved +III.P26.5.c Unsolved +III.P26.7 Unsolved +III.P26.8 Unsolved +III.P26.82 Solved +III.P26.9 Solved +III.P27.Ap Solved +III.P29.alpha Solved +III.P29.radius Unsolved +III.P29.simson Solved +III.P30 Solved +III.P31.aprime Solved +III.P31.astar Solved +III.P31.dstar Solved +III.P31.mid Solved +III.P31.remark Solved +III.P32.1.conj Unsolved +III.P32.1.equi Solved +III.P32.2.R Unsolved +III.P32.2.lam Solved +III.P32.4 Unsolved +III.P32.5 Unsolved +III.P32.6.dist Unsolved +III.P32.6.phi0 Unsolved +III.P32.7.conj Solved +III.P32.7.lemma Solved +III.P32.7.phi1 Unsolved +III.P32.7.ra Solved +III.P32.7.t1 Solved +III.P32.7.ta Solved +III.P32.7.u1 Solved +III.P33.a Solved +III.P33.b Solved +III.P33.c Solved +III.P34.a Solved +III.P34.b Unsolved +III.P34.c Solved +III.P34.d Solved +III.P34.e Solved +III.P34.f Solved +III.P34.g Unsolved +III.P34.h Solved +III.P34.i Unsolved +III.P35.a Unsolved +III.P35.b Solved +III.P35.c Solved +III.P35.d Solved +III.P35.e Solved +III.P36.a Unsolved +III.P36.b Solved +III.P36.c Solved +III.P37.a Unsolved +III.P37.b Solved +III.P37.c Solved +III.P37.d Solved +III.P38.a Solved +III.P38.b Solved +III.P38.c Solved +III.P38.d Solved +III.P39.a Solved +III.P39.b Unsolved +III.P39.c Unsolved +III.P39.d Solved +III.P39.e Solved +III.P39.f Solved +III.P39.g Solved +III.P3b.a Unsolved +III.P3b.b Unsolved +III.P3b.c Unsolved +III.P3b.d Solved +III.P4.a Solved +III.P40.a Solved +III.P40.b Solved +III.P40.c Solved +III.P40.d Unsolved +III.P40.e Solved +III.P41.a Solved +III.P41.b Solved +III.P41.c Solved +III.P41.d Unsolved +III.P41.e Unsolved +III.P42.a Solved +III.P42.b Solved +III.P42.c Solved +III.P42.d Solved +III.P43.a Solved +III.P43.b Solved +III.P44.a Solved +III.P45.a Solved +III.P45.b Solved +III.P45.c Solved +III.P45.d Solved +III.P45.e Solved +III.P45.f Solved +III.P5.1.a Solved +III.P5.2.a Solved +III.P6.1.a Unsolved +III.P6.2.a Solved +III.P6.3.a Solved +III.P6.5.a Solved +III.P9.E2 Refused +III.P9.E2c Solved +III.P9.a Unsolved +III.P9.b Solved +III.P9.c1 Solved +III.P9.c2 Solved +III.P9.c3 Solved +III.P9.c4 Solved +III.P9.c5 Solved +III.P9.c6 Solved +IV.1c.a Solved +IV.1c.b Unsolved +IV.1c.c Unsolved +IV.1c.d Unsolved +IV.1d.a Solved +IV.1g.a Solved +IV.1g.b Solved +IV.1n.a Solved +IV.1p.a Solved +IV.1p.b Solved +IV.1p.c Solved +IV.2.10.a Solved +IV.2.10.b Solved +IV.2.10.c Solved +IV.2.10.d Solved +IV.2.2.a Solved +IV.2.2.b Solved +IV.2.2.c Solved +IV.2.3.a Solved +IV.2.4.a Unsolved +IV.2.4.b Solved +IV.2.4.c Solved +IV.2.5.a Solved +IV.2.6.a Unsolved +IV.2.6.b Solved +IV.2.6.c Solved +IV.2.7.a Solved +IV.2.8.a Solved +IV.3.11.a Solved +IV.3.12.a Solved +IV.3.14.a Solved +IV.3.14.c Solved +IV.3.6.a Solved +IV.4.1.a Solved +IV.4.2.a Solved +IV.4.2.b Solved +IV.5.2.a Solved +IV.5.9.a Solved +IV.5.9.b Solved +IV.6.12.a Solved +IV.6.12.b Unsolved +IV.6.12.c Solved +IV.6.12.d Solved +IV.6.12.e Solved +IV.6.13.a Solved +IV.6.13.b Unsolved +IV.6.14.a Solved +IV.6.15.a Solved +IV.6.15.b Solved +IV.6.16.a Solved +IV.6.16.b Solved +IV.6.5.a Solved +IV.E1 Refused +IV.E5 Refused +V.A1.a Unsolved +V.A1.b Unsolved +V.A10.a Solved +V.A10.b Solved +V.A10.c Solved +V.A10.d Solved +V.A10.e Solved +V.A11.1.a Solved +V.A11.3.a Solved +V.A11.5.a Solved +V.A11.6.a Solved +V.A12.a Solved +V.A12.b Solved +V.A12.c Solved +V.A13.a Solved +V.A2.a Solved +V.A2.b Solved +V.A3.a Solved +V.A7.a Solved +V.A7.b Solved +V.A7.c Solved +V.A8.a Solved +V.A8.b Solved +V.A9.a Solved +V.A9.b Solved +V.A9.c Solved +V.A9.d Solved +V.A9.e Solved +V.C1.a Solved +V.C12.a Solved +V.C12.b Solved +V.C13.a Solved +V.C14.a Solved +V.C14.b Solved +V.C14.c Solved +V.C15.a Solved +V.C15.b Solved +V.C15.c Solved +V.C16.a Solved +V.C18.a Solved +V.C19.a Unsolved +V.C19.b Unsolved +V.C19.c Unsolved +V.C21.a Solved +V.C22.a Solved +V.C22.b Solved +V.C23.a Solved +V.C24.a Solved +V.C24.b Solved +V.C3.a Solved +V.C3.b Solved +V.C7.a Solved +V.C7.b Solved +V.C8.a Solved +V.C9.a Unsolved +V.D1.a Solved +V.D12.a Solved +V.D12.b Solved +V.D2.a Solved +V.D4.a Solved +V.D5.a Solved +V.E1 Refused +V.E1.c Solved +V.E10 Refused +V.E11 Refused +V.E12 Refused +V.E13 Refused +V.E13.b Refused +V.E15 Refused +V.E16 Refused +V.E16.c Solved +V.E2 Refused +V.E20 Refused +V.E21 Refused +V.E22 Refused +V.E23 Refused +V.E24 Refused +V.E3 Refused +V.E3.c Solved +V.E4 Refused +V.E5 Refused +V.E5.c Solved +V.E8 Refused +V.E9 Refused +V.G11.a Solved +V.G15.a Solved +V.G19.a Solved +V.G22.a Solved +V.G25.a Solved +V.G27.a Solved +V.G27.b Solved +V.G28.a Solved +V.G28.b Solved +V.G29.a Solved +V.G29.b Solved +V.G38.a Solved +V.G38.b Solved +V.G4.a Unsolved +V.G41.a Solved +V.G42.a Solved +V.G49.a Solved +V.G50.a Solved +V.G53.a Solved +V.G6.a Unsolved +V.G7.a Unsolved +V.G8.a Solved +V.L.crossratio Solved +V.V17.a Solved +V.V20.a Solved +V.V21.a Solved +V.V22.a Solved +V.V23.a Solved +V.V27.a Solved +V.V28.a Solved +V.V29.a Solved +V.V29.b Solved +V.V3.a Solved +V.V3.b Unsolved +V.V30.a Solved +V.V31.a Solved +V.V31.b Solved +V.V31.c Unsolved +V.V7.a Solved +V.V9.a Solved diff --git a/Sources/Tests/Harnesses/ModenovCorpus/modenov.tsv b/Sources/Tests/Harnesses/ModenovCorpus/modenov.tsv new file mode 100644 index 000000000..c11cdcf8c --- /dev/null +++ b/Sources/Tests/Harnesses/ModenovCorpus/modenov.tsv @@ -0,0 +1,660 @@ +# Modenov's computations as a corpus: https://github.com/asc-community/AngouriMath/issues/2153 +# Source: P. S. Modenov, Problems in Geometry, translated by George Yankovsky, Mir, Moscow, 1981 +# (https://archive.org/details/ModenovProblemsInGeometryMir1981). Each row is a computation the book makes or rests on, +# cited in its source field by chapter, section and problem; the readings of #2131 found them, each checked by value. +# +# Fields, tab separated: id, source, op, var, input, expected, points, note. +# zero input is identically 0, and Simplify is to reduce it to 0 +# equal input equals expected, and Simplify of the input is to reach a form no larger than expected +# solve input is an equation in var, and expected is the book's whole root set +# erratum the book prints expected where the value is input's; the library must not confirm the printed form +# points is where every free variable may be sampled: C complex, R real, P positive, U the unit circle, - none. +# The harness checks each row's own claim by value before asking the library, and fails on a row that does not hold. +# A conjugate is written as the book does on the unit circle, 1/z, or as a symbol of its own; a determinant as det. +# The note says what the reading saw the library do at 725481ca4; the verdict now is in modenov-baseline.tsv. +# +# Not here, because the harness cannot compare their values: a set by condition (Ch II §2 Exercise 4), a limit +# that is infinite (Ch IV §3 Problem 14), sums to a natural n and an infinite sum convergent only for |q| < 1 +# (Ch V Appendix 4, 5, 6), and a congruence of angles (Ch V §2, p. 342). +I.Pref1.a Preface p. 7, [a] rotation equal - [[0, -1], [1, 0]] * [ax, ay] [-ay, ax] C [a] = a rotated through +pi/2, as a matrix; was [-ay, ax] (E1) +I.Pref2.a Preface p. 7, pseudo-scalar equal - det([[ax, ay], [bx, by]]) ax*by - ay*bx C plane pseudo-scalar product (a, b) as a determinant; was right via det_s API only (E3) +I.Pref7.Er1 Preface p. 8, Mobius map erratum - (a*z + b)/(c*z + d) (a*z + b)/(a*z + d) C printed az+d in the denominator; true (az+b)/(cz+d); a=1,b=2,c=0,d=2 makes the printed map constant 1 +I.Pref7.Er2 Preface p. 8, anti-Mobius map erratum - (a*conjugate(z) + b)/(c*conjugate(z) + d) (a*conjugate(z) + c)/(c*z + d) C printed +c and no bar below; true (a*conj(z)+b)/(c*conj(z)+d); conjugate was refused by name (E38) +I.Pref7.Er3 Preface p. 9, inversion erratum - a/conjugate(z) a/z C printed z' = a/z; true inversion a/conj(z); for a=1 it must fix z=i but 1/i = -i +I.Pref7.Er3c Preface p. 9, inversion equal - 1/conjugate(i) i - correction of I.Pref7.Er3: inversion in the unit circle fixes i +I.P1.1.a Ch I Sec 1 Problem 1 zero - ([c, 0]T * [(c + b*cos(al))/2, b*sin(al)/2]) / (abs([c, 0]) * abs([(c + b*cos(al))/2, b*sin(al)/2])) - (c + b*cos(al))/sqrt(b^2 + c^2 + 2*b*c*cos(al)) - P cos of angle BAM via the median; was unreduced, sqrt(c^2) survived (E9) +I.P1.1.b Ch I Sec 1 Problem 1 zero - (a - b*cos(g))^2 + (b*sin(g))^2 - (a^2 + b^2 - 2*a*b*cos(g)) - C norm squared in coordinates; difference was 0, the left side alone unchanged (E10) +I.P1.2.a Ch I Sec 1 Problem 2 zero - ((a*b*cos(g) + a*b)/(a + b) * (b*sin(g)/2) - (a*b*sin(g)/(a + b)) * ((a + b*cos(g))/2)) / (-(a*b*sin(g))) - (a - b)/(2*(a + b)) - C (CDM):(ABC) = (a-b)/(2(a+b)); was an un-normalised rational zero (E11) +I.P1.2.b Ch I Sec 1 Problem 2 zero - cos(x/2)^2 - (1 + cos(x))/2 - C half-angle identity used for cos(C/2); was unchanged (E12) +I.P1.3.a Ch I Sec 1 Problem 3 equal - [b*sin(g), a - b*cos(g)]T * [a - 2*b*cos(g), -2*b*sin(g)] -a*b*sin(g) C pseudo-scalar step for cos AOC; was -a * b * sin(g) (E14) +I.P1.3.b Ch I Sec 1 Problem 3 zero - sin(A)^2 + sin(B)^2 - 2*sin(A)*sin(B)*cos(pi - A - B) - sin(A + B)^2 - C law of cosines in sines with C = pi - A - B; was unchanged (E13) +I.P1.3.c Ch I Sec 1 Problem 3 zero - cos(pi - A - B) + cos(A + B) - C cos(pi - x) reduction inside the law-of-sines step; was unchanged (E13) +I.P1.3.d Ch I Sec 1 Problem 3 zero - cos(a + b) - cos(a)*cos(b) + sin(a)*sin(b) - C angle addition used in the law-of-sines step; was unchanged (E12) +I.P1.4.Er Ch I Sec 1 Problem 4 erratum - ((bx^2 + by^2) * [-ay, ax] - (ax^2 + ay^2) * [-by, bx]) / (2*(ax*by - ay*bx)) ((bx^2 + by^2) * [-ay, ax] - (ax^2 + ay^2) * [-by, bx]) / (ax*by - ay*bx) C circumcentre printed without factor 1/2; a=(1,0), b=(0,1): printed (1,1), true (1/2,1/2) +I.P1.4.a Ch I Sec 1 Problem 4 zero - [ax, ay]T * (((bx^2 + by^2) * [-ay, ax] - (ax^2 + ay^2) * [-by, bx]) / (2*(ax*by - ay*bx))) - (ax^2 + ay^2)/2 - C correction of I.P1.4.Er: x.a = a^2/2; was 0 with spurious 'not by = 0' (E15) +I.P1.4.b Ch I Sec 1 Problem 4 zero - [bx, by]T * (((bx^2 + by^2) * [-ay, ax] - (ax^2 + ay^2) * [-by, bx]) / (2*(ax*by - ay*bx))) - (bx^2 + by^2)/2 - C correction of I.P1.4.Er: x.b = b^2/2; 'the b equation gives the same' (E15) +I.P1.5.a Ch I Sec 1 Problem 5 zero - [-ay, ax]T * ((p*[bx, by] - q*[ax, ay]) / (ax*by - ay*bx)) - p - C x = (pb - qa)/(a,b) satisfies (a,x) = p; was 0 provided (a,b) != 0 (E17) +I.P1.5.b Ch I Sec 1 Problem 5 zero - [-by, bx]T * ((p*[bx, by] - q*[ax, ay]) / (ax*by - ay*bx)) - q - C x = (pb - qa)/(a,b) satisfies (b,x) = q; was 0 provided (a,b) != 0 (E17) +I.P1.6.a Ch I Sec 1 Problem 6 solve y 3*(1 - x) - 2*(1 - y) + (2 - x) - 4*(4 - y) = 0 { (4*x + 13)/6 } C line of the resultant, 4x - 6y + 13 = 0; was right but uncollected (E18) +I.P2.1.a Ch I Sec 2 Problem 1 1deg zero - ((((ay)*(bz) - (az)*(by)))*(((cy)*(dz) - (cz)*(dy))) + (((az)*(bx) - (ax)*(bz)))*(((cz)*(dx) - (cx)*(dz))) + (((ax)*(by) - (ay)*(bx)))*(((cx)*(dy) - (cy)*(dx)))) - (((ax)*(cx) + (ay)*(cy) + (az)*(cz))*((bx)*(dx) + (by)*(dy) + (bz)*(dz)) - ((ax)*(dx) + (ay)*(dy) + (az)*(dz))*((bx)*(cx) + (by)*(cy) + (bz)*(cz))) - C Lagrange identity [a,b].[c,d] in components; was 0 (E19) +I.P2.1.b Ch I Sec 2 Problem 1 2deg equal - cos(pi - a) -cos(a) C reciprocal trihedral angle a* = pi - A needs cos(pi - x); was unchanged (E12) +I.P2.1.c Ch I Sec 2 Problem 1 4deg zero - (cos(pi - A) - cos(pi - B)*cos(pi - C))/(sin(pi - B)*sin(pi - C)) + (cos(A) + cos(B)*cos(C))/(sin(B)*sin(C)) - C polar cosine formula from 1deg on the reciprocal angle; was left with cos(pi - A) (E22) +I.P2.1.d Ch I Sec 2 Problem 1 5deg equal - det([[1, cos(g), cos(be)], [cos(g), 1, cos(al)], [cos(be), cos(al), 1]]) 1 + 2*cos(al)*cos(be)*cos(g) - cos(al)^2 - cos(be)^2 - cos(g)^2 C Gram determinant of unit edge vectors; det_s was right, as ... + sin(al)^2 (E20) +I.P2.1.e Ch I Sec 2 Problem 1 5deg zero - 1 - ((cos(a) - cos(b)*cos(c))/(sin(b)*sin(c)))^2 - (1 + 2*cos(a)*cos(b)*cos(c) - cos(a)^2 - cos(b)^2 - cos(c)^2)/(sin(b)^2*sin(c)^2) - C 1 - cos^2 A = Delta^2/(sin^2 b sin^2 c); was unchanged (E21) +I.P2.3.a Ch I Sec 2 Problem 3 zero - (sin(a)^2 + sin(b)^2 + sin(c)^2 + 2*(cos(b)*cos(c) - cos(a)) + 2*(cos(c)*cos(a) - cos(b)) + 2*(cos(a)*cos(b) - cos(c))) - (1 + 2*cos(a)*cos(b)*cos(c) - cos(a)^2 - cos(b)^2 - cos(c)^2) - 2*(1 - cos(a))*(1 - cos(b))*(1 - cos(c)) - C T1 - T2 = 2(1-cos a)(1-cos b)(1-cos c); was 0 (E23) +I.P2.3.b Ch I Sec 2 Problem 3 zero - (sin(a)^2 + sin(b)^2 + sin(c)^2 + 2*(cos(b)*cos(c) - cos(a)) + 2*(cos(c)*cos(a) - cos(b)) + 2*(cos(a)*cos(b) - cos(c))) - (1 + 2*cos(a)*cos(b)*cos(c) - cos(a)^2 - cos(b)^2 - cos(c)^2) - 16*sin(a/2)^2*sin(b/2)^2*sin(c/2)^2 - C T1 - T2 = 16 prod sin^2(./2); was left nonzero-looking (E23) +I.P2.3.c Ch I Sec 2 Problem 3 zero - 1 - cos(a) - 2*sin(a/2)^2 - C half-angle step of T1 - T2; was unchanged (E12) +I.P2.3.Er Ch I Sec 2 Problem 3 erratum - tan(arccos(2/sqrt(6))) 4*sin(pi/6)^3/(1 + 2*cos(pi/3)^3 - 3*cos(pi/3)^2) - tan phi at a=b=c=pi/3 printed over Delta (gives 1); true over sqrt(Delta), 1/sqrt(2) (E24) +I.P2.3.d Ch I Sec 2 Problem 3 equal - 4*sin(pi/6)^3/sqrt(1 + 2*cos(pi/3)^3 - 3*cos(pi/3)^2) tan(arccos(2/sqrt(6))) - correction of I.P2.3.Er: both evaluated to 0.70710678... (E24) +I.P2.5.a Ch I Sec 2 Problem 5 3deg zero - 2*(sin(p)/(cos(q)*cos(r)))*(-tan(q)*tan(r))/cos(p)^2 + 2*sin(p)*sin(q)*sin(r)/(cos(p)^2*cos(q)^2*cos(r)^2) - C sin 2beta_i/cos^2 alpha_i from 1deg and 2deg; was 0 provided cos p cos q cos r != 0 (E26) +I.P2.5.b Ch I Sec 2 Problem 5 1deg zero - (s^2 + t^2*(1 - s^2 - t^2))/((1 - t^2)*(1 - (1 - s^2 - t^2))) - 1 - C 1deg/2deg consistency, side relation substituted by hand; was 0 with a condition (E26) +I.P2.6.a Ch I Sec 2 Problem 6 equal - [((cc - bb)*(0) - (2*h)*(-1)), ((2*h)*(0) - (-pa)*(0)), ((-pa)*(-1) - (cc - bb)*(0))] [2*h, 0, pa] C wedge: y x x written in components; was [2 * h, 0, pa] (E27) +I.P2.6.b Ch I Sec 2 Problem 6 equal - [((cc - bb)*(0) - (2*h)*(0)), ((2*h)*(-1) - (-pa)*(0)), ((-pa)*(0) - (cc - bb)*(-1))] [0, -2*h, cc - bb] C wedge: y x z written in components; was [0, (-2) * h, cc - bb] (E27) +I.P2.6.c Ch I Sec 2 Problem 6 equal - [2*h, 0, pa]T * [0, -2*h, cc - bb] / (abs([2*h, 0, pa]) * abs([0, -2*h, cc - bb])) pa*(cc - bb)/(sqrt(4*h^2 + pa^2)*sqrt(4*h^2 + (cc - bb)^2)) R cos of the dihedral angle at CQ, a(c-b)/(...); matched the book (E27) +I.Ex1.a Ch I Sec 3 Exercise 1 zero - [ax, ay]T * ([bx, by] - ([ax, ay]T * [bx, by]) / ([ax, ay]T * [ax, ay]) * [ax, ay]) - C foot of the perpendicular: CP = (ab)a/a^2 makes PB perpendicular to a; was an unrecognised zero (E28) +I.Ex2.a Ch I Sec 3 Exercise 2 zero - ((ax)*((bx) - (cx)) + (ay)*((by) - (cy)) + (az)*((bz) - (cz))) + ((bx)*((cx) - (ax)) + (by)*((cy) - (ay)) + (bz)*((cz) - (az))) + ((cx)*((ax) - (bx)) + (cy)*((ay) - (by)) + (cz)*((az) - (bz))) - C r1(r2-r3) + r2(r3-r1) + r3(r1-r2) = 0 in components; was 0 (E19) +I.Ex3.a Ch I Sec 3 Exercise 3 zero - ((2*a - (a+b+c)) + (2*b - (a+b+c)) + (2*c - (a+b+c)) + (a+b+c))/4 - C O is the centroid of A', B', C', P; was 0 (E29) +I.Ex9.a Ch I Sec 3 Exercise 9 zero - (((1/(2*((ax)*(((by)*(cz) - (bz)*(cy))) + (ay)*(((bz)*(cx) - (bx)*(cz))) + (az)*(((bx)*(cy) - (by)*(cx))))))*(((((ax)*(ax) + (ay)*(ay) + (az)*(az)))*(((by)*(cz) - (bz)*(cy)))) + ((((bx)*(bx) + (by)*(by) + (bz)*(bz)))*(((cy)*(az) - (cz)*(ay)))) + ((((cx)*(cx) + (cy)*(cy) + (cz)*(cz)))*(((ay)*(bz) - (az)*(by))))))*(ax) + ((1/(2*((ax)*(((by)*(cz) - (bz)*(cy))) + (ay)*(((bz)*(cx) - (bx)*(cz))) + (az)*(((bx)*(cy) - (by)*(cx))))))*(((((ax)*(ax) + (ay)*(ay) + (az)*(az)))*(((bz)*(cx) - (bx)*(cz)))) + ((((bx)*(bx) + (by)*(by) + (bz)*(bz)))*(((cz)*(ax) - (cx)*(az)))) + ((((cx)*(cx) + (cy)*(cy) + (cz)*(cz)))*(((az)*(bx) - (ax)*(bz))))))*(ay) + ((1/(2*((ax)*(((by)*(cz) - (bz)*(cy))) + (ay)*(((bz)*(cx) - (bx)*(cz))) + (az)*(((bx)*(cy) - (by)*(cx))))))*(((((ax)*(ax) + (ay)*(ay) + (az)*(az)))*(((bx)*(cy) - (by)*(cx)))) + ((((bx)*(bx) + (by)*(by) + (bz)*(bz)))*(((cx)*(ay) - (cy)*(ax)))) + ((((cx)*(cx) + (cy)*(cy) + (cz)*(cz)))*(((ax)*(by) - (ay)*(bx))))))*(az)) - ((ax)*(ax) + (ay)*(ay) + (az)*(az))/2 - C centre of the sphere OABC: x.a = a^2/2, written in components; timed out >20 s (E31) +I.Ex10.a Ch I Sec 3 Exercise 10 zero - (((ax) - ((((ax)*(((by)*(cz) - (bz)*(cy))) + (ay)*(((bz)*(cx) - (bx)*(cz))) + (az)*(((bx)*(cy) - (by)*(cx))))/((((by)*(cz) - (bz)*(cy)))*(((by)*(cz) - (bz)*(cy))) + (((bz)*(cx) - (bx)*(cz)))*(((bz)*(cx) - (bx)*(cz))) + (((bx)*(cy) - (by)*(cx)))*(((bx)*(cy) - (by)*(cx)))))*(((by)*(cz) - (bz)*(cy)))))*(((by)*(cz) - (bz)*(cy))) + ((ay) - ((((ax)*(((by)*(cz) - (bz)*(cy))) + (ay)*(((bz)*(cx) - (bx)*(cz))) + (az)*(((bx)*(cy) - (by)*(cx))))/((((by)*(cz) - (bz)*(cy)))*(((by)*(cz) - (bz)*(cy))) + (((bz)*(cx) - (bx)*(cz)))*(((bz)*(cx) - (bx)*(cz))) + (((bx)*(cy) - (by)*(cx)))*(((bx)*(cy) - (by)*(cx)))))*(((bz)*(cx) - (bx)*(cz)))))*(((bz)*(cx) - (bx)*(cz))) + ((az) - ((((ax)*(((by)*(cz) - (bz)*(cy))) + (ay)*(((bz)*(cx) - (bx)*(cz))) + (az)*(((bx)*(cy) - (by)*(cx))))/((((by)*(cz) - (bz)*(cy)))*(((by)*(cz) - (bz)*(cy))) + (((bz)*(cx) - (bx)*(cz)))*(((bz)*(cx) - (bx)*(cz))) + (((bx)*(cy) - (by)*(cx)))*(((bx)*(cy) - (by)*(cx)))))*(((bx)*(cy) - (by)*(cx)))))*(((bx)*(cy) - (by)*(cx)))) - C foot of A on plane OBC lies in it: (h, b, c) = 0 in components; was a large unreduced quotient (E31) +I.Ex11.a Ch I Sec 3 Exercise 11 zero - ((((((ax)*(((by)*(cz) - (bz)*(cy))) + (ay)*(((bz)*(cx) - (bx)*(cz))) + (az)*(((bx)*(cy) - (by)*(cx))))/(((dx)*(((by)*(cz) - (bz)*(cy))) + (dy)*(((bz)*(cx) - (bx)*(cz))) + (dz)*(((bx)*(cy) - (by)*(cx)))) + ((dx)*(((cy)*(az) - (cz)*(ay))) + (dy)*(((cz)*(ax) - (cx)*(az))) + (dz)*(((cx)*(ay) - (cy)*(ax)))) + ((dx)*(((ay)*(bz) - (az)*(by))) + (dy)*(((az)*(bx) - (ax)*(bz))) + (dz)*(((ax)*(by) - (ay)*(bx))))))*(dx)) - (ax))*((((by) - (ay))*((cz) - (az)) - ((bz) - (az))*((cy) - (ay)))) + (((((ax)*(((by)*(cz) - (bz)*(cy))) + (ay)*(((bz)*(cx) - (bx)*(cz))) + (az)*(((bx)*(cy) - (by)*(cx))))/(((dx)*(((by)*(cz) - (bz)*(cy))) + (dy)*(((bz)*(cx) - (bx)*(cz))) + (dz)*(((bx)*(cy) - (by)*(cx)))) + ((dx)*(((cy)*(az) - (cz)*(ay))) + (dy)*(((cz)*(ax) - (cx)*(az))) + (dz)*(((cx)*(ay) - (cy)*(ax)))) + ((dx)*(((ay)*(bz) - (az)*(by))) + (dy)*(((az)*(bx) - (ax)*(bz))) + (dz)*(((ax)*(by) - (ay)*(bx))))))*(dy)) - (ay))*((((bz) - (az))*((cx) - (ax)) - ((bx) - (ax))*((cz) - (az)))) + (((((ax)*(((by)*(cz) - (bz)*(cy))) + (ay)*(((bz)*(cx) - (bx)*(cz))) + (az)*(((bx)*(cy) - (by)*(cx))))/(((dx)*(((by)*(cz) - (bz)*(cy))) + (dy)*(((bz)*(cx) - (bx)*(cz))) + (dz)*(((bx)*(cy) - (by)*(cx)))) + ((dx)*(((cy)*(az) - (cz)*(ay))) + (dy)*(((cz)*(ax) - (cx)*(az))) + (dz)*(((cx)*(ay) - (cy)*(ax)))) + ((dx)*(((ay)*(bz) - (az)*(by))) + (dy)*(((az)*(bx) - (ax)*(bz))) + (dz)*(((ax)*(by) - (ay)*(bx))))))*(dz)) - (az))*((((bx) - (ax))*((cy) - (ay)) - ((by) - (ay))*((cx) - (ax))))) - C OD meets plane ABC at m: (m - a, b - a, c - a) = 0 in components; timed out >20 s (E31) +I.Ex13.a Ch I Sec 3 Exercise 13 zero - (ax*by*cz - ax*bz*cy - ay*bx*cz + ay*bz*cx + az*bx*cy - az*by*cx)/(cz*(ax*by - ay*bx) + cy*(az*bx - ax*bz) + cx*(ay*bz - az*by)) - 1 - C two spellings of (a,b,c) in Gibbs x.a - p; was 0 with spurious 'not by*cz - bz*cy = 0' (E31) +I.Ex13.b Ch I Sec 3 Exercise 13 zero - p*(ax*by*cz - ax*bz*cy - ay*bx*cz + ay*bz*cx + az*bx*cy - az*by*cx)/(cz*(ax*by - ay*bx) + cy*(az*bx - ax*bz) + cx*(ay*bz - az*by)) - p - C x.a - p for the Gibbs formula; was returned unreduced (E31) +I.Ex13.c Ch I Sec 3 Exercise 13 zero - (ax*by*cz - ax*bz*cy - ay*bx*cz + ay*bz*cx + az*bx*cy - az*by*cx) - (cz*(ax*by - ay*bx) + cy*(az*bx - ax*bz) + cx*(ay*bz - az*by)) - C two spellings of the triple product subtracted; was 0 (E31) +I.Ex14.a Ch I Sec 3 Exercise 14 solve l l^2 - l + (p + b^2/a^2)/a^2 = 0 { (1 - sqrt(1 - 4*(p + b^2/a^2)/a^2))/2, (1 + sqrt(1 - 4*(p + b^2/a^2)/a^2))/2 } C scalar core of x + y = a, xy = p, [x,y] = b; both roots found (E34) +I.Ex14.b Ch I Sec 3 Exercise 14 zero - (((xx) + (yx))*(((xy)*(yz) - (xz)*(yy))) + ((xy) + (yy))*(((xz)*(yx) - (xx)*(yz))) + ((xz) + (yz))*(((xx)*(yy) - (xy)*(yx)))) - C (x + y).[x, y] = 0 identically, why a.b = 0 is needed (erratum 10), in components; not probed +I.Ex16.a Ch I Sec 3 Exercise 16 equal - [(((ay)*(((bx)*(cy) - (by)*(cx))) - (az)*(((bz)*(cx) - (bx)*(cz))))) + (((by)*(((cx)*(ay) - (cy)*(ax))) - (bz)*(((cz)*(ax) - (cx)*(az))))) + (((cy)*(((ax)*(by) - (ay)*(bx))) - (cz)*(((az)*(bx) - (ax)*(bz))))), (((az)*(((by)*(cz) - (bz)*(cy))) - (ax)*(((bx)*(cy) - (by)*(cx))))) + (((bz)*(((cy)*(az) - (cz)*(ay))) - (bx)*(((cx)*(ay) - (cy)*(ax))))) + (((cz)*(((ay)*(bz) - (az)*(by))) - (cx)*(((ax)*(by) - (ay)*(bx))))), (((ax)*(((bz)*(cx) - (bx)*(cz))) - (ay)*(((by)*(cz) - (bz)*(cy))))) + (((bx)*(((cz)*(ax) - (cx)*(az))) - (by)*(((cy)*(az) - (cz)*(ay))))) + (((cx)*(((az)*(bx) - (ax)*(bz))) - (cy)*(((ay)*(bz) - (az)*(by)))))] [0, 0, 0] C Jacobi identity in components; was [0, 0, 0] (E19) +I.Ex17.a Ch I Sec 3 Exercise 17 zero - (1/(p*((1/p)^2 + (1/q)^2 + (1/r)^2)) - p)*(0 - 0) + (1/(q*((1/p)^2 + (1/q)^2 + (1/r)^2)) - 0)*(0 - q) + (1/(r*((1/p)^2 + (1/q)^2 + (1/r)^2)) - 0)*(r - 0) - C (O' - A).(C - B) = 0, O' = n/|n|^2; was -q/(q*S) + r/(r*S) (E32) +I.Ex21.a Ch I Sec 3 Exercise 21 1deg equal - (1 + 2*cos(A)*cos(B)*cos(C) - cos(A)^2 - cos(B)^2 - cos(C)^2) - (1 - 2*cos(A)*cos(B)*cos(C) - cos(A)^2 - cos(B)^2 - cos(C)^2) 4*cos(A)*cos(B)*cos(C) C Delta^2 - Delta*^2 (also Sec 2 Problem 1 6deg); was 4 * cos(A) * cos(B) * cos(C) (E35) +I.Ex21.b Ch I Sec 3 Exercise 21 3deg solve x -x = (x - cos(A)*cos(B))/(sin(A)*sin(B)) { cos(A)*cos(B)/(1 + sin(A)*sin(B)) } C cos c = cos A cos B/(1 + sin A sin B); was right but uncollected (E35) +I.Ex22.a Ch I Sec 3 Exercise 22 1deg equal - [(((by)*(cz) - (bz)*(cy))) + (((cy)*(az) - (cz)*(ay))) + (((ay)*(bz) - (az)*(by))) + ((((cy) - (ay))*((bz) - (az)) - ((cz) - (az))*((by) - (ay)))), (((bz)*(cx) - (bx)*(cz))) + (((cz)*(ax) - (cx)*(az))) + (((az)*(bx) - (ax)*(bz))) + ((((cz) - (az))*((bx) - (ax)) - ((cx) - (ax))*((bz) - (az)))), (((bx)*(cy) - (by)*(cx))) + (((cx)*(ay) - (cy)*(ax))) + (((ax)*(by) - (ay)*(bx))) + ((((cx) - (ax))*((by) - (ay)) - ((cy) - (ay))*((bx) - (ax))))] [0, 0, 0] C [DB,DC] + [DC,DA] + [DA,DB] + [AC,AB] = 0 in components; was [0, 0, 0] (E19) +I.Ex25.Er Ch I Sec 3 Exercise 25 erratum - (((ax) - (mx))*((ax) - (bx)) + ((ay) - (my))*((ay) - (by)) + ((az) - (mz))*((az) - (bz))) + (((ax) - (mx))*((ax) - (cx)) + ((ay) - (my))*((ay) - (cy)) + ((az) - (mz))*((az) - (cz))) + (((ax) - (mx))*((ax) - (dx)) + ((ay) - (my))*((ay) - (dy)) + ((az) - (mz))*((az) - (dz))) (((ax) - (bx))*((ax) - (bx)) + ((ay) - (by))*((ay) - (by)) + ((az) - (bz))*((az) - (bz))) + (((ax) - (cx))*((ax) - (cx)) + ((ay) - (cy))*((ay) - (cy)) + ((az) - (cz))*((az) - (cz))) + (((ax) - (dx))*((ax) - (dx)) + ((ay) - (dy))*((ay) - (dy)) + ((az) - (dz))*((az) - (dz))) + (((bx) - (cx))*((bx) - (cx)) + ((by) - (cy))*((by) - (cy)) + ((bz) - (cz))*((bz) - (cz))) + (((bx) - (dx))*((bx) - (dx)) + ((by) - (dy))*((by) - (dy)) + ((bz) - (dz))*((bz) - (dz))) + (((cx) - (dx))*((cx) - (dx)) + ((cy) - (dy))*((cy) - (dy)) + ((cz) - (dz))*((cz) - (dz))) C powers of A wrt spheres on MB, MC, MD vs sum of edges^2: false for one vertex (M = A gives 0); left a residue (E19) +I.Ex25.a Ch I Sec 3 Exercise 25 zero - ((((ax) - (mx))*((ax) - (bx)) + ((ay) - (my))*((ay) - (by)) + ((az) - (mz))*((az) - (bz))) + (((ax) - (mx))*((ax) - (cx)) + ((ay) - (my))*((ay) - (cy)) + ((az) - (mz))*((az) - (cz))) + (((ax) - (mx))*((ax) - (dx)) + ((ay) - (my))*((ay) - (dy)) + ((az) - (mz))*((az) - (dz))) + (((bx) - (mx))*((bx) - (ax)) + ((by) - (my))*((by) - (ay)) + ((bz) - (mz))*((bz) - (az))) + (((bx) - (mx))*((bx) - (cx)) + ((by) - (my))*((by) - (cy)) + ((bz) - (mz))*((bz) - (cz))) + (((bx) - (mx))*((bx) - (dx)) + ((by) - (my))*((by) - (dy)) + ((bz) - (mz))*((bz) - (dz))) + (((cx) - (mx))*((cx) - (ax)) + ((cy) - (my))*((cy) - (ay)) + ((cz) - (mz))*((cz) - (az))) + (((cx) - (mx))*((cx) - (bx)) + ((cy) - (my))*((cy) - (by)) + ((cz) - (mz))*((cz) - (bz))) + (((cx) - (mx))*((cx) - (dx)) + ((cy) - (my))*((cy) - (dy)) + ((cz) - (mz))*((cz) - (dz))) + (((dx) - (mx))*((dx) - (ax)) + ((dy) - (my))*((dy) - (ay)) + ((dz) - (mz))*((dz) - (az))) + (((dx) - (mx))*((dx) - (bx)) + ((dy) - (my))*((dy) - (by)) + ((dz) - (mz))*((dz) - (bz))) + (((dx) - (mx))*((dx) - (cx)) + ((dy) - (my))*((dy) - (cy)) + ((dz) - (mz))*((dz) - (cz)))) - ((((ax) - (bx))*((ax) - (bx)) + ((ay) - (by))*((ay) - (by)) + ((az) - (bz))*((az) - (bz))) + (((ax) - (cx))*((ax) - (cx)) + ((ay) - (cy))*((ay) - (cy)) + ((az) - (cz))*((az) - (cz))) + (((ax) - (dx))*((ax) - (dx)) + ((ay) - (dy))*((ay) - (dy)) + ((az) - (dz))*((az) - (dz))) + (((bx) - (cx))*((bx) - (cx)) + ((by) - (cy))*((by) - (cy)) + ((bz) - (cz))*((bz) - (cz))) + (((bx) - (dx))*((bx) - (dx)) + ((by) - (dy))*((by) - (dy)) + ((bz) - (dz))*((bz) - (dz))) + (((cx) - (dx))*((cx) - (dx)) + ((cy) - (dy))*((cy) - (dy)) + ((cz) - (dz))*((cz) - (dz)))) - C correction of I.Ex25.Er: true summed over all four vertices; was 0 (E19) +I.Ex26.a Ch I Sec 3 Exercise 26 zero - ((((((bz)*(cx) - (bx)*(cz)))*(((cx)*(ay) - (cy)*(ax))) - (((bx)*(cy) - (by)*(cx)))*(((cz)*(ax) - (cx)*(az)))))*(((ay)*(bz) - (az)*(by))) + (((((bx)*(cy) - (by)*(cx)))*(((cy)*(az) - (cz)*(ay))) - (((by)*(cz) - (bz)*(cy)))*(((cx)*(ay) - (cy)*(ax)))))*(((az)*(bx) - (ax)*(bz))) + (((((by)*(cz) - (bz)*(cy)))*(((cz)*(ax) - (cx)*(az))) - (((bz)*(cx) - (bx)*(cz)))*(((cy)*(az) - (cz)*(ay)))))*(((ax)*(by) - (ay)*(bx)))) - (((ax)*(((by)*(cz) - (bz)*(cy))) + (ay)*(((bz)*(cx) - (bx)*(cz))) + (az)*(((bx)*(cy) - (by)*(cx)))))^2 - C ([b,c],[c,a],[a,b]) = (a,b,c)^2 in components (also Sec 2 Problem 2 5deg); was 0 (E19) +I.Ex26.b Ch I Sec 3 Exercise 26 zero - derivative(ln((mu - p)*(mu - q)*(mu - r)*(mu - s)/mu), mu) - (1/(mu - p) + 1/(mu - q) + 1/(mu - r) + 1/(mu - s) - 1/mu) - C logarithmic derivative of F(mu); was a nonzero-looking rational expression after 5 s (E36) +II.P1.a Ch II Sec 1 Problem 1 equal - det([[0,1/(1+l),1],[m/(1+m),0,1],[1/(1+v),v/(1+v),1]]) (1+l*m*v)/((1+l)*(1+m)*(1+v)) C affine oriented-area ratio; difference was unchanged, also with simplifyn 5 +II.P1.b Ch II Sec 1 Problem 1 equal - det([[0,1,1+l],[m,0,1+m],[1,v,1+v]]) 1 + l*m*v C homogeneous form of P1 (Menelaus); was 1 + l*m*v +II.P2.a Ch II Sec 1 Problem 2 equal - (-c^2/b^2)*(-a^2/c^2)*(-b^2/a^2) -1 C Menelaus product for the tangents (Brianchon case); was -1 provided not a*b*c = 0 +II.P3.a Ch II Sec 1 Problem 3 equal - (-R_2/R_3)*(-R_3/R_1)*(-R_1/R_2) -1 C centres of similitude, Menelaus product; was -1 provided not R_1*R_2*R_3 = 0 +II.P4def.a Ch II Sec 1 Problem 4, pencil of lines equal - det([[1,1+l,-1],[1+m,m,-m],[v,-1,0]]) 1 - l*m*v C concurrency det of the cevian line coefficients; was 1 + -l*m*v +II.P5.a Ch II Sec 1 Problem 5 1° equal - 1 + (l*m*v)^2 - 2*l*m*v (l*m*v - 1)^2 C homogeneous vertex det of A1B1C1; collapse gave (l*m*v - 1)^2 +II.P5.b Ch II Sec 1 Problem 5 2° equal - (2*2*2-1)^2/((1+2+2*2)*(1+2+2*2)*(1+2+2*2)) 1/7 - area ratio at l = m = v = 2; eval gave 1/7 +II.P6.a Ch II Sec 1 Problem 6 equal - ((p-b)/(p-c))*((p-c)/(p-a))*((p-a)/(p-b)) 1 C Gergonne point, Ceva product; was 1 provided not (p-a)*(p-b)*(p-c) = 0 +II.P7.a Ch II Sec 1 Problem 7 zero - abs([x,y]-[x_1,y_1])^2 + abs([x,y]-[x_2,y_2])^2 - 2*abs([x,y]-([x_1,y_1]+[x_2,y_2])/2)^2 - abs([x_2,y_2]-[x_1,y_1])^2/2 - R MA^2+MB^2 = 2MO^2 + AB^2/2; was 0 +II.P9.a Ch II Sec 1 Problem 9 solve x abs([x,y]-[0-a,0])^2 - abs([x,y]-[a,0])^2 = k { k/(4*a) } R MC1^2 - MC2^2 = k is the line x = k/(4a); was { k / a / 4 } +II.P10.a Ch II Sec 1 Problem 10 solve x (x+a)^2+y^2-r_1^2 = (x-a)^2+y^2-r_2^2 { (r_1^2 - r_2^2)/(4*a) } C radical axis; was right but unsimplified, -(a^2 + -a^2 + ...)/(2*a + 2*a), no a != 0 +II.Def0.a Ch II Sec 1, zero circle solve x (x-1)^2 + 0^2 = 0 { 1 } C a zero circle is a point; set-builder was { x : x - 1 = 0 }, not { 1 } +II.P11.1.a Ch II Sec 1 Problem 11 1° zero - (x - a*(k^2+1)/(k^2-1))^2 + y^2 - 4*a^2*k^2/(k^2-1)^2 - (x^2 + y^2 - 2*a*x*(k^2+1)/(k^2-1) + a^2) - C Apollonius circle centre and radius; was 0 provided not k^2 - 1 = 0 +II.P11.3.a Ch II Sec 1 Problem 11 3° zero - (a*(k^2+1)/(k^2-1))^2 - (2*a*k/(k^2-1))^2 - a^2 - C power of O w.r.t. C_k is a^2; was 0 provided not k^2 - 1 = 0 +II.P11.5.a Ch II Sec 1 Problem 11 5° equal - k_1*k_2^2 - k_1 - k_2 + k_1^2*k_2 (k_1 + k_2)*(k_1*k_2 - 1) C factor of R_k1 - R_k2; collapse gave (k_1 + k_2)*(k_1*k_2 - 1) +II.P11.5.b Ch II Sec 1 Problem 11 5° zero - a*((1/k^2)+1)/((1/k^2)-1) + a*(k^2+1)/(k^2-1) - C x_(1/k) = -x_k, symmetry about s; was 0 provided not k = 0 and ... +II.E1 Ch II Sec 1 Problem 11 5°, p. 57 erratum - a*(k^2+1)/(k^2-1) 2*a*(k^2+1)/(k^2-1) C book prints x_k = 2a(k^2+1)/(k^2-1); true centre a(k^2+1)/(k^2-1) (k=1/2, a=1: -5/3 not -10/3) +II.P11.6.a Ch II Sec 1 Problem 11 6° equal - (2 + (-2)*(1 + 1/(k-1) + k) + 2/(k-1))/(2*k) -1 C cross ratio (A B P_k Q_k) after one simplify; a second simplify gave -1 (Simplify not idempotent) +II.P11.7.a Ch II Sec 1 Problem 11 7° equal - (a + 2*a/(k^2-1))^2 + b^2 + (-4)*(a*k/(k^2-1))^2 a^2 + b^2 C power of S(0,b) w.r.t. C_k is SA^2; alone it stayed unreduced, the difference was 0 provided ... +II.P11.8.a Ch II Sec 1 Problem 11 8° zero - abs(k^2-1)^2 - (k^2-1)^2 - R book's R_k = 2ak/|k^2-1| squared; stayed unchanged, also with the real codomain +II.P11R6.a Ch II Sec 1 Problem 11 Remark (6) zero - 0^2 + 1^2 - 2*q*0 - 1 - C printed elliptic circle x^2+y^2-2qx-1 passes through (0, 1); was 0 +II.E3.a Ch II Sec 1 Problem 11 Remark (6), p. 54 erratum - 1^2 + 0^2 - 2*q*1 - 1 0 C book: x^2+y^2-2qx-1 = 0 passes through (1, 0); it gives -2*q (true circle: x^2+y^2-2qy-1) +II.E3.b Ch II Sec 1 Problem 11 Remark (6), p. 54 erratum - 2*(-p)*(-q) + 2*0*0 - 1 - (-1) 0 C orthogonality defect 2g1g2+2f1f2-c1-c2 of the printed pencils, claimed 0; true value 2*p*q +II.E3.c Ch II Sec 1 Problem 11 Remark (6), p. 54 zero - 2*(-p)*0 + 2*0*(-q) - 1 - (-1) - C correction of II.E3.b: with x^2+y^2-2qy-1 the defect is 0 +II.P11.9.a Ch II Sec 1 Problem 11 9° equal - derivative(2*a*k/(1-k^2), k) 2*a*(1 + k^2)/(1 - k^2)^2 C dR_k/dk for nesting; derive gave 2*a*(1 + k^2)/(1 - k^2)^2 +II.P11.10.a Ch II Sec 1 Problem 11 10° (2) equal - (m+a)*(a-n) + (n+a)*(a-m) 2*(a^2 - m*n) C harmonic condition on AB; was 2*(a^2 - m*n) +II.P11.10.b Ch II Sec 1 Problem 11 10° (2) solve n (m+a)/(a-m) = -(n+a)/(a-n) { a^2/m } C harmonic conjugate N0, OM0*ON0 = a^2; root was left nested, unsimplified +II.P11.10.c Ch II Sec 1 Problem 11 10° (2) equal - -(-a*(a + m)/(a - m) - a)/(-1 + (a + m)/(a - m)) a^2/m C the solver's root for II.P11.10.b; Simplify left it unchanged +II.P11.13.a Ch II Sec 1 Problem 11 13° solve t derivative(((t+1)^2+(t+2)^2)/((t-1)^2+(t+2)^2), t) = 0 { 1/2*sqrt(10), -1/2*sqrt(10) } - extrema of MA/MB on y = x + 2, A(-1,0), B(1,0); was { 1/2*sqrt(10), -1/2*sqrt(10) } +II.P11.14.a Ch II Sec 1 Problem 11 14° zero - (1 + 1/(k^2-1))*((-2)*b^2 + 2*b^2) - C Apollonius sphere identity after one simplify; a second simplify gave 0 (Simplify not idempotent) +II.Ex1.a Ch II Sec 2 Exercise 1 zero - 2*(x^2+y^2) + 3*((x-d)^2+y^2) - 5*((x-3*d/5)^2+y^2) - 6/5*d^2 - C 2MA^2+3MB^2 = 5MP^2 + (6/5)AB^2; was 0; also the correction of II.E4 +II.E4 Ch II Sec 2 Exercise 1 answer, p. 66 erratum - 2*(x^2+y^2) + 3*((x-d)^2+y^2) - 5*((x-3*d/5)^2+y^2) 5/6*d^2 C book: locus empty if k < 5/6 AB^2; the constant is 6/5*d^2 (correction: II.Ex1.a) +II.Ex3.a Ch II Sec 2 Exercise 3 zero - abs([x,y]-[a_1,a_2])^2 + abs([x,y]-[b_1,b_2])^2 - abs([x,y])^2 - (abs([x,y]-[a_1+b_1,a_2+b_2])^2 - 2*(a_1*b_1+a_2*b_2)) - R MA^2+MB^2-MC^2 = MD^2 - 2 CA.CB, C at origin; was 0 +II.Ex5.a Ch II Sec 2 Exercise 5 zero - (4*a^2*(X+a)/((X+a)^2+Y^2))^2 + (4*a^2*Y/((X+a)^2+Y^2))^2 - 16*a^4/((X+a)^2+Y^2) - C inversion (A, 4a^2): image point at distance^2 16a^4/D from A; stayed unchanged +II.Ex6.a Ch II Sec 2 Exercise 6 equal - 1/(1 + (k - 1)*(k + 1)) 1/k^2 C (p-a)/(p+a) at p = a(k^2+1)/(k^2-1); 1 + (k-1)(k+1) was never collapsed to k^2 +II.Ex6.b Ch II Sec 2 Exercise 6 equal - (a*(k^2+1)/(k^2-1) - a)/(a*(k^2+1)/(k^2-1) + a) 1/k^2 C (p-a)/(p+a) with p = a(k^2+1)/(k^2-1); was 1 / (1 + (k - 1)*(k + 1)) +II.Ex6.c Ch II Sec 2 Exercise 6 equal - 2*a*sqrt(1/k^2) 2*a/k P radius 2a/k of the image circle; 2*a*sqrt(1/k^2) stayed (needs k > 0) +II.E5 Ch II Sec 2 Exercise 6 answer, p. 69 erratum - ((-a + 4*a^2*(X+a)/((X+a)^2+Y^2))^2 + (4*a^2*Y/((X+a)^2+Y^2))^2 - 2*p*(-a + 4*a^2*(X+a)/((X+a)^2+Y^2)) + a^2)*((X+a)^2+Y^2)/(2*a*(a+p)) + 4*a^2*(p-a)/(p+a) (X - a^2) + Y^2 C Gamma under inversion (A, 4a^2); book prints (X - a^2) + Y^2, true (X - a)^2 + Y^2 (SymPy) +II.E5.c Ch II Sec 2 Exercise 6 answer, p. 69 equal - ((-a + 4*a^2*(X+a)/((X+a)^2+Y^2))^2 + (4*a^2*Y/((X+a)^2+Y^2))^2 - 2*p*(-a + 4*a^2*(X+a)/((X+a)^2+Y^2)) + a^2)*((X+a)^2+Y^2)/(2*a*(a+p)) + 4*a^2*(p-a)/(p+a) (X - a)^2 + Y^2 C correction of II.E5; the Gamma identity stayed in AngouriMath, SymPy gave 0 +II.E6 Ch II Sec 2 Exercise 6 answer, p. 69 erratum - -((-a + 4*a^2*(X+a)/((X+a)^2+Y^2))^2 + (4*a^2*Y/((X+a)^2+Y^2))^2 - 2*q*(4*a^2*Y/((X+a)^2+Y^2)) - a^2)*((X+a)^2+Y^2)/(8*a^2) a*(X-a) + p*Y C E under inversion; book prints a(X-a) + pY = 0, true a(X-a) + qY (p-form leaves 8a^2Y(p-q)/D) +II.E6.c Ch II Sec 2 Exercise 6 answer, p. 69 equal - -((-a + 4*a^2*(X+a)/((X+a)^2+Y^2))^2 + (4*a^2*Y/((X+a)^2+Y^2))^2 - 2*q*(4*a^2*Y/((X+a)^2+Y^2)) - a^2)*((X+a)^2+Y^2)/(8*a^2) a*(X-a) + q*Y C correction of II.E6; with u = X + a the q-form was 0 provided not u^2 + Y^2 = 0 +II.Ex7.a Ch II Sec 2 Exercise 7 zero - (l*(x^2+y^2-2*p_1*x+a^2) + m*(x^2+y^2-2*p_2*x+a^2))/(l+m) - (x^2+y^2-2*(l*p_1+m*p_2)/(l+m)*x+a^2) - C l*f + m*phi spans the hyperbolic pencil; was 0 provided not l + m = 0 +II.Ex9.a Ch II Sec 2 Exercise 9 zero - ((x+c)^2+y^2-r^2) - ((x-c)^2+y^2-q^2) - 2*(2*c)*(x - (r^2-q^2)/(4*c)) - C difference of powers = 2*OO'*KM; was 0 +II.Ex11.a Ch II Sec 2 Exercise 11 equal - 2 / ((1 + b/a)*(1 + a/c)*(1 + c/b)) 2*a*b*c/((b+c)*(c+a)*(a+b)) C bisector-feet area ratio from P1; difference did not reach 0 +II.Ex13.a Ch II Sec 2 Exercise 13 equal - 2*(1/sqrt(10))*(1/sqrt(2))*(1/sqrt(5)) 1/5 - 2cosA cosB cosC on (0,0),(4,0),(1,3), = (12/5)/12; was 1/5 +II.Ex17.a Ch II Sec 2 Exercise 17 equal - det([[-1, 2*b/(b+c), 2*c/(b+c)], [2*a/(a+c), -1, 2*c/(a+c)], [2*a/(a+b), 2*b/(a+b), -1]]) 3 + 8*a*b*c/((b+c)*(c+a)*(a+b)) C vertices reflected in bisector feet, barycentric det; difference did not reach 0 +II.Ex18.a Ch II Sec 2 Exercise 18 equal - (c^2/b^2)*(a^2/c^2)*(b^2/a^2) 1 C symmedians, Ceva product (Lemoine point); was 1 provided not a*b*c = 0 +II.Ex22.a Ch II Sec 2 Exercise 22 equal - det([[0,1,0],[1/4,1/2,1/4],[1/4,1/4,1/2]]) -1/16 - area (BMN)/(ABC); was -1/16 +II.Ex22.b Ch II Sec 2 Exercise 22 equal - det([[0,1,0],[1/4,1/4,1/2],[0,0,1]]) -1/4 - area (BNC)/(ABC); was -1/4 +II.Ex22.c Ch II Sec 2 Exercise 22 equal - abs(det([[0,1,0],[1/4,1/2,1/4],[1/4,1/4,1/2]]) + det([[0,1,0],[1/4,1/4,1/2],[0,0,1]])) 5/16 - quadrangle BMNC is 5S/16 +II.Ex23.a Ch II Sec 2 Exercise 23 equal - u/(u+v+w) + v/(u+v+w) + w/(u+v+w) 1 C OP/AP + OQ/BQ + OR/CR = 1; was 1 provided not u + v + w = 0 +II.Ex24.a Ch II Sec 2 Exercise 24 equal - 2/(q*b) + 2/(p*(q/(1-p/b))) 2/(p*q) C 1/(OAB) + 1/(OCA) is constant; was 2 / (p*q) provided ... +II.Ex25.a Ch II Sec 2 Exercise 25 zero - (1/(1+m))^2 - (1 - 1/(1+m))*(1/m - 1/(1+m)) - C AE^2 = EF*EG; was 0 provided not m^2*(1 + m)^5 = 0 +II.Ex27.a Ch II Sec 2 Exercise 27 equal - det([[0,1,p],[q,0,1],[1,r,0]]) 1 + p*q*r C Menelaus det for the transversal's points; was 1 + p*q*r +II.Ex27.b Ch II Sec 2 Exercise 27 equal - det([[0,p,1],[1,0,q],[r,1,0]]) 1 + p*q*r C the isotomic points give the same condition; was 1 + p*q*r +II.Ex38.a Ch II Sec 2 Exercise 38 zero - det([[a_2-a_1, b_2-b_1],[(0-a_2)-(0-a_1), (0-b_2)-(0-b_1)]]) - C opposite sides of the centrally symmetric hexagon are parallel; was 0 +II.Ex39.a Ch II Sec 2 Exercise 39 equal - 1 - (1 - t) t C the parallels path map t -> 1 - t applied twice; was t +II.Ex40.a Ch II Sec 2 Exercise 40 equal - det([[4/5,2/5,1],[3/5,4/5,1],[1/5,3/5,1]]) 1/5 - inner parallelogram of the unit square has area 1/5; was 1/5 +II.Ex42.a Ch II Sec 2 Exercise 42 solve t a*((x_1 + t*x_2)/(1+t)) + b*((y_1+t*y_2)/(1+t)) + c = 0 { -(a*x_1 + b*y_1 + c)/(a*x_2 + b*y_2 + c) } C ratio in which ax+by+c=0 divides M1M2; was the book's root provided not 1 + ... = 0 +II.S1.a Ch II Sec 2 Solid 1 zero - (r_1+r_2+r_3+r_4)/4 - r_1 - 3*((r_2+r_3+r_4)/3 - (r_1+r_2+r_3+r_4)/4) - C tetrahedron centroid divides a median 3:1 (scalar stand-ins); was 0 +II.S4.a Ch II Sec 2 Solid 4 1° solve t t + t + t = 1 { 1/3 } - plane ABC meets the diagonal OO' at t = 1/3; was { 1/3 } +II.S4.b Ch II Sec 2 Solid 4 2° equal - [1/3,1/3,1/3] - ([1,0,0]+[0,1,0]+[0,0,1])/3 [0, 0, 0] - the meeting point is the centroid of ABC; was [0, 0, 0] +III.P1.1.a Ch III §1 Problem 1 1° equal - (c - b)/(1/c - 1/b) -b*c C complex slope of BC on unit circle; was -b * c provided ... +III.P1.1.b Ch III §1 Problem 1 1° equal - (b + c)/(1/b + 1/c) b*c C complex slope of AH, H = a+b+c; was b * c +III.P1.1.c Ch III §1 Problem 1 1° zero - (c - b)/(1/c - 1/b) + (b + c)/(1/b + 1/c) - C AH perpendicular to BC: slopes sum to 0 (sum of P1.1.a, b); was 0 provided ... +III.P1.1.d Ch III §1 Problem 1 1° zero - (a+b+c) - 3*((a+b+c)/3) - C OH = 3 OG; was 0 +III.P1.2.a Ch III §1 Problem 1 2° equal - (a+b+c)/2 - (b+c)/2 a/2 C nine-point centre to side midpoint; was a / 2 +III.P1.2.b Ch III §1 Problem 1 2° equal - abs(a/2) 1/2 U nine-point radius R/2 with |a| = 1; was abs(a / 2), provided abs(a) = 1 changed nothing +III.P1.3.a Ch III §1 Problem 1 3° solve z z - a = b*c*(1/z - 1/a) { a, -b*c/a } C altitude meets circle again at N = -bc/a; was quadratic formula, square discriminant unrecognised +III.P1.3.b Ch III §1 Problem 1 3° zero - b + c - b*c*(1/a + 1/b + 1/c) + b*c/a - C N is the reflection of H in BC; was 0 +III.P2.a Ch III §1 Problem 2 solve x x^3 = a*b*c { (a*b*c)^(1/3), (-1/2 + i*sqrt(3)/2)*(a*b*c)^(1/3), (-1/2 - i*sqrt(3)/2)*(a*b*c)^(1/3) } C cube roots of sigma3 form an equilateral triangle; was all three roots +III.P2.b Ch III §1 Problem 2 equal - ((-1 + i*sqrt(3))/2)^3 1 - epsilon is a cube root of unity; was 1 +III.P2.c Ch III §1 Problem 2 zero - cos(2*pi/3) + i*sin(2*pi/3) - (-1 + i*sqrt(3))/2 - - epsilon = cos 120 deg + i sin 120 deg; was 0 +III.P2.d Ch III §1 Problem 2 zero - 1 + ((-1 + i*sqrt(3))/2)^2 + ((-1 + i*sqrt(3))/2)^4 - - 1 + eps^2 + eps^4 = 0, eps written out; was 0 +III.P2.e Ch III §1 Problem 2 zero - (a/w)*(b/w)*(c/w) - a*b*c/w^3 - C change of unit point divides sigma3 by w^3; was 0 +III.P3b.a Ch III §1 Problem 3 equal - ((m+b+c-b*c/m)/2) - ((m+c+a-c*a/m)/2) (b-a)*(m-c)/(2*m) C numerator of slope of A1B1 (feet from m); reading's separate simplify gave this +III.P3b.b Ch III §1 Problem 3 equal - ((1/m+1/b+1/c-m/(b*c))/2) - ((1/m+1/c+1/a-m/(c*a))/2) (b-a)*(m-c)/(2*a*b*c) C denominator (conjugate difference) of slope of A1B1; reading's separate simplify gave this +III.P3b.c Ch III §1 Problem 3 equal - (((m+b+c-b*c/m)/2) - ((m+c+a-c*a/m)/2))/(((1/m+1/b+1/c-m/(b*c))/2) - ((1/m+1/c+1/a-m/(c*a))/2)) a*b*c/m C slope of A1B1 is sigma3 conj(z0); slope minus abc/m was unchanged after 2 passes +III.P3b.d Ch III §1 Problem 3 zero - (2 * (a * (2 * b + (-2) * m) + (-2) * b * m + (-2) * m ^ 2) + 4 * m * (a * (1 + -b / m) + b + m)) / (8 * m) - C C1 on Simson line (1), residue form; was b * (-a + a) / (2 * m), then 0 +III.P4.a Ch III §1 Problem 4 zero - (a + b + 1/(a*b)) - (a*b + b/(a*b) + a/(a*b)) + (1/a + 1/b + a*b) - (1/(a*b) + a*b/b + a*b/a) - C sigma3 = 1 (c = 1/(ab)): sigma1 - sigma2 purely imaginary; was 0 provided ... +III.P5.1.a Ch III §1 Problem 5 1° zero - 1/a + 1/b + 1/c - (a*b+b*c+c*a)/(a*b*c) - C conj(sigma1) = sigma2/sigma3; was 0 +III.P5.2.a Ch III §1 Problem 5 2° solve z z - 1 = s*(z - 1)/z { 1, s } C perpendicular meets unit circle at 1 and sigma3; was quadratic formula, (s-1)^2 unrecognised +III.P6.1.a Ch III §1 Problem 6 1° zero - (((R*(b+c) + p - b*c*q)/2)*(((R*(1/c+1/a) + q - p/(c*a))/2) - ((R*(1/a+1/b) + q - p/(a*b))/2)) - ((R*(1/b+1/c) + q - p/(b*c))/2)*(((R*(c+a) + p - c*a*q)/2) - ((R*(a+b) + p - a*b*q)/2)) + ((R*(c+a) + p - c*a*q)/2)*((R*(1/a+1/b) + q - p/(a*b))/2) - ((R*(a+b) + p - a*b*q)/2)*((R*(1/c+1/a) + q - p/(c*a))/2)) - 1/4*(1 - p*q/R^2)*((R*a)*((R/b) - (R/c)) - (R/a)*((R*b) - (R*c)) + (R*b)*(R/c) - (R*c)*(R/b)) - C pedal area = -power/(4R^2) * (ABC), q = conj(p); was 0 provided ... in 1 pass +III.P6.2.a Ch III §1 Problem 6 2° zero - R^2 - R^2*(a+b)*(1/a+1/b)/4 - R^2*(a-b)*(1/a-1/b)/4 - C minimal form of OG^2 identity; was R ^ 2 + -1/2 * (R ^ 2 + R ^ 2) provided ..., 0 on 2nd pass +III.P6.3.a Ch III §1 Problem 6 3° zero - (2*S/(x+y+v))/(2*x*y*v/(4*S)) - 4*S^2/(x*y*v*(x+y+v)) - P r/(2R) = 4S^2/(abc(a+b+c)) for incentre pedal; was 0 provided ... +III.P6.5.a Ch III §1 Problem 6 5° zero - sin(x)^2 + sin(y)^2 + sin(pi - x - y)^2 - 2 - 2*cos(x)*cos(y)*cos(pi - x - y) - R sum sin^2 - 2 = 2cosAcosBcosC; was unchanged after 2 passes, sin(pi - x - y) not reduced +III.P9.a Ch III §1 Problem 9 (26) zero - ((((u+v+w)-(u*v*w)/u^2)/(2*t) + (t-1)/t*u)*((((u*v+v*w+w*u)/(u*v*w)-v^2/(u*v*w))/(2*t) + (t-1)/(t*v)) - (((u*v+v*w+w*u)/(u*v*w)-w^2/(u*v*w))/(2*t) + (t-1)/(t*w))) - (((u*v+v*w+w*u)/(u*v*w)-u^2/(u*v*w))/(2*t) + (t-1)/(t*u))*((((u+v+w)-(u*v*w)/v^2)/(2*t) + (t-1)/t*v) - (((u+v+w)-(u*v*w)/w^2)/(2*t) + (t-1)/t*w)) + (((u+v+w)-(u*v*w)/v^2)/(2*t) + (t-1)/t*v)*(((u*v+v*w+w*u)/(u*v*w)-w^2/(u*v*w))/(2*t) + (t-1)/(t*w)) - (((u+v+w)-(u*v*w)/w^2)/(2*t) + (t-1)/t*w)*(((u*v+v*w+w*u)/(u*v*w)-v^2/(u*v*w))/(2*t) + (t-1)/(t*v))) - ((1 - (u+v+w)*(u*v+v*w+w*u)/(u*v*w))/(4*t^2) + (1 - 1/t)*(1 - 2/t))*(u*((1/v) - (1/w)) - (1/u)*(v - w) + v*(1/w) - w*(1/v)) - C determinant identity (26), built from appendix A2 recipe; was residue on pass 1, 0 on pass 2 +III.P9.b Ch III §1 Problem 9 zero - (u+v+w)*(1/u+1/v+1/w) - 1 - (2 + u/v + v/u + v/w + w/v + w/u + u/w) - C sigma1 conj(sigma1) - 1 = 2 + sum(zj/zk + zk/zj); was 0 +III.P9.c1 Ch III §1 Problem 9 (27) zero - 2*K/(1)^2 + (1 - 1/(1))*(1 - 2/(1)) - (2*K) - C (27) at lambda = 1 gives 2K; was 0 +III.P9.c2 Ch III §1 Problem 9 (27) zero - 2*K/(-1)^2 + (1 - 1/(-1))*(1 - 2/(-1)) - (6 + 2*K) - C (27) at lambda = -1 gives 6+2K; was 0 +III.P9.c3 Ch III §1 Problem 9 (27) zero - 2*K/(1/2)^2 + (1 - 1/(1/2))*(1 - 2/(1/2)) - (3 + 8*K) - C (27) at lambda = 1/2 gives 3+8K; was 0 +III.P9.c4 Ch III §1 Problem 9 (27) zero - 2*K/(-1/2)^2 + (1 - 1/(-1/2))*(1 - 2/(-1/2)) - (15 + 8*K) - C (27) at lambda = -1/2 gives 15+8K; was 0 +III.P9.c5 Ch III §1 Problem 9 (27) zero - 2*K/(2)^2 + (1 - 1/(2))*(1 - 2/(2)) - (K/2) - C (27) at lambda = 2 gives K/2; was 0 +III.P9.c6 Ch III §1 Problem 9 (27) zero - 2*K/(-2)^2 + (1 - 1/(-2))*(1 - 2/(-2)) - (3 + K/2) - C (27) at lambda = -2 gives 3+K/2; was 0 +III.P9.E2 Ch III §1 Problem 9 p. 101 erratum - det([[1/a^2, 1/a, 1], [1/b^2, 1/b, 1], [1/c^2, 1/c, 1]]) det([[1/a, 1, a], [1/b, 1, b], [1/c, 1, c]])/(a*b*c)^3 C book prints 1/sigma3^3; true factor 1/sigma3; difference 899/135000 at (2,3,5) +III.P9.E2c Ch III §1 Problem 9 p. 101 zero - det([[1/a^2, 1/a, 1], [1/b^2, 1/b, 1], [1/c^2, 1/c, 1]]) - det([[1/a, 1, a], [1/b, 1, b], [1/c, 1, c]])/(a*b*c) - C correction of III.P9.E2; was 0 provided ... +III.P10a.a Ch III §1 Problem 10 zero - b * (-a * c / b + c) + c * (a - b) - C B' on AB' residue; with provided not a*c = 0 unchanged, without it 0 +III.P10a.b Ch III §1 Problem 10 zero - ((b)*((a^2*b)*(b^2 + c*a) - (a^2 + b*c)*(b^2*c)) - (c^2*a)*((c)*(b^2 + c*a) - (a^2 + b*c)*(a)) + (c^2 + a*b)*((c)*(b^2*c) - (a^2*b)*(a))) - (b-a)*(c-a)*(c-b)*((a+b+c)*(a*b+b*c+c*a) - 2*a*b*c) - C Delta = Vandermonde * (sigma1 sigma2 - 2 sigma3), appendix A3; was 0, factor refused +III.P10a.c Ch III §1 Problem 10 zero - (c-b)*(c-a)*(b-a) - a*b*c*det([[a, 1/a, 1], [b, 1/b, 1], [c, 1/c, 1]]) - C Vandermonde = abc det[z 1/z 1]; was unchanged after 2 passes (det expanded by hand) +III.P10b.E1 Ch III §1 Problem 10 p. 107 erratum - 2*arccos(-1/(2*sqrt(2))) arccos(9/16) - admissible arc of A: book prints arccos(9/16) (55.77 deg); true 2arccos(-1/(2sqrt2)) = 221.41 deg +III.P10b.E1c Ch III §1 Problem 10 p. 107 equal - cos(2*arccos(-1/(2*sqrt(2)))) -3/4 - correction of III.P10b.E1: the true arc has cosine -3/4; was -3/4 +III.P10c.a Ch III §1 Problem 10 zero - (7/4 - 2)/2 + 1/8 - - sum sin^2 = 7/4 iff cosAcosBcosC = -1/8; was 0 +III.P11.1.a Ch III §1 Problem 11 1° zero - cos(2*pi/7)+cos(4*pi/7)+cos(6*pi/7) + 1/2 - - x = 2(cos2pi/7+cos4pi/7+cos6pi/7) = -1; was 0 in 1 pass +III.P11.1.b Ch III §1 Problem 11 1° zero - abs(1 + e^(2*pi*i/7) + e^(6*pi*i/7))^2 - 2 - - OH^2 = 2R^2; was 0 in 1 pass +III.P11.1.c Ch III §1 Problem 11 1° zero - abs(1 + cos(2*pi/7)/(2*cos(pi/7)) + i*sin(pi/7))^2 - 2 - - OIa^2 = 2R^2, tau_a written out; was 0 in 1 pass +III.P11.2.a Ch III §1 Problem 11 2° zero - sin(pi/7) + sin(2*pi/7) + sin(3*pi/7) - cot(pi/14)/2 - - sin pi/7 + sin 2pi/7 + sin 3pi/7 = cot(pi/14)/2; was 0 +III.P11.2.b Ch III §1 Problem 11 2° zero - tan(pi/14)*(sin(pi/7) + sin(2*pi/7) + sin(3*pi/7)) - 1/2 - - R = 2 r_a; was 0 +III.P11.3.a Ch III §1 Problem 11 3° zero - (1 + e^(2*pi*i/7) + e^(6*pi*i/7)) - (1 + cos(2*pi/7)/(2*cos(pi/7)) + i*sin(pi/7)) - (cos(5*pi/7) + i*sin(5*pi/7)) - - IaH = R since h - tau_a = a6 (also 5°: IaH = OA6); was 0 +III.P11.4.a Ch III §1 Problem 11 4° zero - 4*sin(pi/7)^2 + 4*sin(2*pi/7)^2 + 4*sin(3*pi/7)^2 - 7 - - a^2+b^2+c^2 = 7R^2; was 0 +III.P11.6.a Ch III §1 Problem 11 6° zero - abs(((1 + e^(2*pi*i/7) + e^(6*pi*i/7)) + (cos(5*pi/7) + i*sin(5*pi/7)))/2) - 1 - - midpoint of HA6 lies on (O); was 0 +III.P11.7.a Ch III §1 Problem 11 7° zero - det([[e^(6*pi*i/7), (1 + e^(2*pi*i/7) + e^(6*pi*i/7)), 1], [(1 + cos(2*pi/7)/(2*cos(pi/7)) + i*sin(pi/7)), 1, 1], [(1 + e^(2*pi*i/7) + e^(6*pi*i/7)), (1 + cos(2*pi/7)/(2*cos(pi/7)) + i*sin(pi/7)), 1]]) - - AIaH and HBIa directly similar, a7 = e^(6pi i/7) inferred; was 0 +III.P11.9.a Ch III §1 Problem 11 9° zero - abs((1 + cos(2*pi/7)/(2*cos(pi/7)) + i*sin(pi/7)) - (cos(5*pi/7) + i*sin(5*pi/7)))^2 - 4 - - squared side IaA6 is 4; was 0 +III.P11.n.a Ch III §1 Problem 11 note zero - abs(1 - e^(i*2*pi/7)) - 2*sin(pi/7) - - chord of arc alpha is 2 sin(alpha/2); was 0 +III.P12a.a Ch III §1 Problem 12 zero - x/c + (y*c - x*d)/(c^2*(z + d/c)) - (x*z + y)/(c*z + d) - C Mobius decomposition; was unchanged after 2 passes (nested fraction), 0 with c*(c*z+d) +III.P12b.a Ch III §1 Problem 12 zero - (1/((d*D - c*C)/(c*C)))*(D/C) - c*D/(d*D - c*C) - C centre of inverted circle via homothety (O, 1/sigma), C = conj c, D = conj d; was 0 +III.P12c.a Ch III §1 Problem 12 zero - ((x*z + y)/(c*z + d) - (y*D - x*C)/(d*D - c*C))*((X/z + Y)/(C/z + D) - (Y*d - X*c)/(d*D - c*C)) - (y*c - x*d)*(Y*C - X*D)/(d*D - c*C)^2 - C |u - omega6|^2 = R6^2 for conj z = 1/z, appendix A4; was unchanged after 2 passes +III.P12c.b Ch III §1 Problem 12 zero - (x*z + y)/(c*z + d) - (y*D - x*C)/(d*D - c*C) - (x*d - y*c)*(D*z + C)/((c*z + d)*(d*D - c*C)) - C u - omega6 split by hand as (xd - yc)(Dz + C)/((cz+d)(dD - cC)); was 0 +III.P13.1.pqr Ch III §1 Problem 13 1° zero - (2*c + (i-1)/2*a - (1+i)/2*b) + (2*a + (i-1)/2*b - (1+i)/2*c) + (2*b + (i-1)/2*c - (1+i)/2*a) - (a + b + c) - C sum of square centres p+q+r = sigma1; was 0 +III.P13.1.forces Ch III §1 Problem 13 1° zero - 1/2*(a + b - (2*c + (i-1)/2*a - (1+i)/2*b) - a*b*(2/c + (-i-1)/2/a - (1-i)/2/b)) + 1/2*(b + c - (2*c + (i-1)/2*a - (1+i)/2*b) - b*c*(2/c + (-i-1)/2/a - (1-i)/2/b)) + 1/2*(c + a - (2*c + (i-1)/2*a - (1+i)/2*b) - c*a*(2/c + (-i-1)/2/a - (1-i)/2/b)) + 1/2*(a + b - (2*a + (i-1)/2*b - (1+i)/2*c) - a*b*(2/a + (-i-1)/2/b - (1-i)/2/c)) + 1/2*(b + c - (2*a + (i-1)/2*b - (1+i)/2*c) - b*c*(2/a + (-i-1)/2/b - (1-i)/2/c)) + 1/2*(c + a - (2*a + (i-1)/2*b - (1+i)/2*c) - c*a*(2/a + (-i-1)/2/b - (1-i)/2/c)) + 1/2*(a + b - (2*b + (i-1)/2*c - (1+i)/2*a) - a*b*(2/b + (-i-1)/2/c - (1-i)/2/a)) + 1/2*(b + c - (2*b + (i-1)/2*c - (1+i)/2*a) - b*c*(2/b + (-i-1)/2/c - (1-i)/2/a)) + 1/2*(c + a - (2*b + (i-1)/2*c - (1+i)/2*a) - c*a*(2/b + (-i-1)/2/c - (1-i)/2/a)) - (1/2*(3*(a + b + c) - (a*b + b*c + c*a)*(1/a + 1/b + 1/c))) - C nine-force sum = h' (orthocentre of orthic triangle), hand-conjugated; was 0 provided a,b,c != 0 (395 ms) +III.P13.1.slope Ch III §1 Problem 13 1° zero - ((1/2*(b + c + a - c*a/b)) - (1/2*(c + a + b - a*b/c)))/((1/2*(1/b + 1/c + 1/a - b/(c*a))) - (1/2*(1/c + 1/a + 1/b - c/(a*b)))) + a^2 - C complex slope of B_hC_h (feet of altitudes) is -a^2; was 0 +III.P13.1.alt.a Ch III §1 Problem 13 1° zero - ((1/2*(3*(a + b + c) - (a*b + b*c + c*a)*(1/a + 1/b + 1/c))) - (1/2*(a + b + c - b*c/a)))*((1/2*(1/b + 1/c + 1/a - b/(c*a))) - (1/2*(1/c + 1/a + 1/b - c/(a*b)))) + ((1/2*(3*(1/a + 1/b + 1/c) - (1/(a*b) + 1/(b*c) + 1/(c*a))*(a + b + c))) - (1/2*(1/a + 1/b + 1/c - a/(b*c))))*((1/2*(b + c + a - c*a/b)) - (1/2*(c + a + b - a*b/c))) - C h' on the altitude from the orthic vertex at a (u*conj v + conj u*v = 0); was 0 +III.P13.1.alt.b Ch III §1 Problem 13 1° zero - ((1/2*(3*(a + b + c) - (a*b + b*c + c*a)*(1/a + 1/b + 1/c))) - (1/2*(b + c + a - c*a/b)))*((1/2*(1/c + 1/a + 1/b - c/(a*b))) - (1/2*(1/a + 1/b + 1/c - a/(b*c)))) + ((1/2*(3*(1/a + 1/b + 1/c) - (1/(a*b) + 1/(b*c) + 1/(c*a))*(a + b + c))) - (1/2*(1/b + 1/c + 1/a - b/(c*a))))*((1/2*(c + a + b - a*b/c)) - (1/2*(a + b + c - b*c/a))) - C h' on the altitude from the orthic vertex at b (u*conj v + conj u*v = 0); was 0 +III.P13.1.alt.c Ch III §1 Problem 13 1° zero - ((1/2*(3*(a + b + c) - (a*b + b*c + c*a)*(1/a + 1/b + 1/c))) - (1/2*(c + a + b - a*b/c)))*((1/2*(1/a + 1/b + 1/c - a/(b*c))) - (1/2*(1/b + 1/c + 1/a - b/(c*a)))) + ((1/2*(3*(1/a + 1/b + 1/c) - (1/(a*b) + 1/(b*c) + 1/(c*a))*(a + b + c))) - (1/2*(1/c + 1/a + 1/b - c/(a*b))))*((1/2*(a + b + c - b*c/a)) - (1/2*(b + c + a - c*a/b))) - C h' on the altitude from the orthic vertex at c (u*conj v + conj u*v = 0); was 0 +III.P13.1.nested Ch III §1 Problem 13 1° zero - 1/(1 - (b/a)^2) - a^2/(a^2 - b^2) - C nested denominator from h' in (36); was unchanged, also simplifyn::8 +III.P13.1.line Ch III §1 Problem 13 1° (37) zero - (4*(a + b + c))*((2/c + (-i-1)/2/a - (1-i)/2/b) - ((1/a + 1/b + 1/c) - (2/c + (-i-1)/2/a - (1-i)/2/b)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*(2*c + (i-1)/2*a - (1+i)/2*b)/2)) - (4*(1/a + 1/b + 1/c))*((2*c + (i-1)/2*a - (1+i)/2*b) - ((a + b + c) - (2*c + (i-1)/2*a - (1+i)/2*b)/2 - (a*b + b*c + c*a)*(2/c + (-i-1)/2/a - (1-i)/2/b)/2)) + ((2*c + (i-1)/2*a - (1+i)/2*b)*((1/a + 1/b + 1/c) - (2/c + (-i-1)/2/a - (1-i)/2/b)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*(2*c + (i-1)/2*a - (1+i)/2*b)/2) - (2/c + (-i-1)/2/a - (1-i)/2/b)*((a + b + c) - (2*c + (i-1)/2*a - (1+i)/2*b)/2 - (a*b + b*c + c*a)*(2/c + (-i-1)/2/a - (1-i)/2/b)/2)) + (4*(a + b + c))*((2/a + (-i-1)/2/b - (1-i)/2/c) - ((1/a + 1/b + 1/c) - (2/a + (-i-1)/2/b - (1-i)/2/c)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*(2*a + (i-1)/2*b - (1+i)/2*c)/2)) - (4*(1/a + 1/b + 1/c))*((2*a + (i-1)/2*b - (1+i)/2*c) - ((a + b + c) - (2*a + (i-1)/2*b - (1+i)/2*c)/2 - (a*b + b*c + c*a)*(2/a + (-i-1)/2/b - (1-i)/2/c)/2)) + ((2*a + (i-1)/2*b - (1+i)/2*c)*((1/a + 1/b + 1/c) - (2/a + (-i-1)/2/b - (1-i)/2/c)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*(2*a + (i-1)/2*b - (1+i)/2*c)/2) - (2/a + (-i-1)/2/b - (1-i)/2/c)*((a + b + c) - (2*a + (i-1)/2*b - (1+i)/2*c)/2 - (a*b + b*c + c*a)*(2/a + (-i-1)/2/b - (1-i)/2/c)/2)) + (4*(a + b + c))*((2/b + (-i-1)/2/c - (1-i)/2/a) - ((1/a + 1/b + 1/c) - (2/b + (-i-1)/2/c - (1-i)/2/a)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*(2*b + (i-1)/2*c - (1+i)/2*a)/2)) - (4*(1/a + 1/b + 1/c))*((2*b + (i-1)/2*c - (1+i)/2*a) - ((a + b + c) - (2*b + (i-1)/2*c - (1+i)/2*a)/2 - (a*b + b*c + c*a)*(2/b + (-i-1)/2/c - (1-i)/2/a)/2)) + ((2*b + (i-1)/2*c - (1+i)/2*a)*((1/a + 1/b + 1/c) - (2/b + (-i-1)/2/c - (1-i)/2/a)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*(2*b + (i-1)/2*c - (1+i)/2*a)/2) - (2/b + (-i-1)/2/c - (1-i)/2/a)*((a + b + c) - (2*b + (i-1)/2*c - (1+i)/2*a)/2 - (a*b + b*c + c*a)*(2/b + (-i-1)/2/c - (1-i)/2/a)/2)) - C resultant line (sum of 3 dets) passes through 4*OH; was 0 provided a,b,c != 0 (3.2 s) +III.P13.1.sq Ch III §1 Problem 13 1° zero - (2*c + (i-1)/2*a - (1+i)/2*b)^2 + (2*a + (i-1)/2*b - (1+i)/2*c)^2 + (2*b + (i-1)/2*c - (1+i)/2*a)^2 - (4*(a + b + c)^2 - 11*(a*b + b*c + c*a)) - C p^2+q^2+r^2 = 4 sigma1^2 - 11 sigma2; was 0 (also by expand) +III.P13.R.det Ch III §1 Problem 13 Remark (37) equal - det([[x, y, 1], [p, q, 1], [r, s, 1]]) p*(s - y) + q*(x - r) + r*y - s*x C line through two points as a 3x3 determinant; det_s gave this form +III.P13.2.sq Ch III §1 Problem 13 2° zero - ((1-i)/2*b + (1+i)/2*a)^2 + ((1-i)/2*c + (1+i)/2*b)^2 + ((1-i)/2*a + (1+i)/2*c)^2 - (a*b + b*c + c*a) - C p*^2+q*^2+r*^2 = sigma2; was 0 +III.P13.2.lineh Ch III §1 Problem 13 2° zero - (1/2*(3*(a + b + c) - (a*b + b*c + c*a)*(1/a + 1/b + 1/c)))*(((1+i)/2/b + (1-i)/2/a) - ((1/a + 1/b + 1/c) - ((1+i)/2/b + (1-i)/2/a)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*((1-i)/2*b + (1+i)/2*a)/2)) - (1/2*(3*(1/a + 1/b + 1/c) - (1/(a*b) + 1/(b*c) + 1/(c*a))*(a + b + c)))*(((1-i)/2*b + (1+i)/2*a) - ((a + b + c) - ((1-i)/2*b + (1+i)/2*a)/2 - (a*b + b*c + c*a)*((1+i)/2/b + (1-i)/2/a)/2)) + (((1-i)/2*b + (1+i)/2*a)*((1/a + 1/b + 1/c) - ((1+i)/2/b + (1-i)/2/a)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*((1-i)/2*b + (1+i)/2*a)/2) - ((1+i)/2/b + (1-i)/2/a)*((a + b + c) - ((1-i)/2*b + (1+i)/2*a)/2 - (a*b + b*c + c*a)*((1+i)/2/b + (1-i)/2/a)/2)) + (1/2*(3*(a + b + c) - (a*b + b*c + c*a)*(1/a + 1/b + 1/c)))*(((1+i)/2/c + (1-i)/2/b) - ((1/a + 1/b + 1/c) - ((1+i)/2/c + (1-i)/2/b)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*((1-i)/2*c + (1+i)/2*b)/2)) - (1/2*(3*(1/a + 1/b + 1/c) - (1/(a*b) + 1/(b*c) + 1/(c*a))*(a + b + c)))*(((1-i)/2*c + (1+i)/2*b) - ((a + b + c) - ((1-i)/2*c + (1+i)/2*b)/2 - (a*b + b*c + c*a)*((1+i)/2/c + (1-i)/2/b)/2)) + (((1-i)/2*c + (1+i)/2*b)*((1/a + 1/b + 1/c) - ((1+i)/2/c + (1-i)/2/b)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*((1-i)/2*c + (1+i)/2*b)/2) - ((1+i)/2/c + (1-i)/2/b)*((a + b + c) - ((1-i)/2*c + (1+i)/2*b)/2 - (a*b + b*c + c*a)*((1+i)/2/c + (1-i)/2/b)/2)) + (1/2*(3*(a + b + c) - (a*b + b*c + c*a)*(1/a + 1/b + 1/c)))*(((1+i)/2/a + (1-i)/2/c) - ((1/a + 1/b + 1/c) - ((1+i)/2/a + (1-i)/2/c)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*((1-i)/2*a + (1+i)/2*c)/2)) - (1/2*(3*(1/a + 1/b + 1/c) - (1/(a*b) + 1/(b*c) + 1/(c*a))*(a + b + c)))*(((1-i)/2*a + (1+i)/2*c) - ((a + b + c) - ((1-i)/2*a + (1+i)/2*c)/2 - (a*b + b*c + c*a)*((1+i)/2/a + (1-i)/2/c)/2)) + (((1-i)/2*a + (1+i)/2*c)*((1/a + 1/b + 1/c) - ((1+i)/2/a + (1-i)/2/c)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*((1-i)/2*a + (1+i)/2*c)/2) - ((1+i)/2/a + (1-i)/2/c)*((a + b + c) - ((1-i)/2*a + (1+i)/2*c)/2 - (a*b + b*c + c*a)*((1+i)/2/a + (1-i)/2/c)/2)) - C resultant line of the reversed triplet passes through H'; was 0 +III.P13.2.line0 Ch III §1 Problem 13 2° zero - 0*(((1+i)/2/b + (1-i)/2/a) - ((1/a + 1/b + 1/c) - ((1+i)/2/b + (1-i)/2/a)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*((1-i)/2*b + (1+i)/2*a)/2)) - 0*(((1-i)/2*b + (1+i)/2*a) - ((a + b + c) - ((1-i)/2*b + (1+i)/2*a)/2 - (a*b + b*c + c*a)*((1+i)/2/b + (1-i)/2/a)/2)) + (((1-i)/2*b + (1+i)/2*a)*((1/a + 1/b + 1/c) - ((1+i)/2/b + (1-i)/2/a)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*((1-i)/2*b + (1+i)/2*a)/2) - ((1+i)/2/b + (1-i)/2/a)*((a + b + c) - ((1-i)/2*b + (1+i)/2*a)/2 - (a*b + b*c + c*a)*((1+i)/2/b + (1-i)/2/a)/2)) + 0*(((1+i)/2/c + (1-i)/2/b) - ((1/a + 1/b + 1/c) - ((1+i)/2/c + (1-i)/2/b)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*((1-i)/2*c + (1+i)/2*b)/2)) - 0*(((1-i)/2*c + (1+i)/2*b) - ((a + b + c) - ((1-i)/2*c + (1+i)/2*b)/2 - (a*b + b*c + c*a)*((1+i)/2/c + (1-i)/2/b)/2)) + (((1-i)/2*c + (1+i)/2*b)*((1/a + 1/b + 1/c) - ((1+i)/2/c + (1-i)/2/b)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*((1-i)/2*c + (1+i)/2*b)/2) - ((1+i)/2/c + (1-i)/2/b)*((a + b + c) - ((1-i)/2*c + (1+i)/2*b)/2 - (a*b + b*c + c*a)*((1+i)/2/c + (1-i)/2/b)/2)) + 0*(((1+i)/2/a + (1-i)/2/c) - ((1/a + 1/b + 1/c) - ((1+i)/2/a + (1-i)/2/c)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*((1-i)/2*a + (1+i)/2*c)/2)) - 0*(((1-i)/2*a + (1+i)/2*c) - ((a + b + c) - ((1-i)/2*a + (1+i)/2*c)/2 - (a*b + b*c + c*a)*((1+i)/2/a + (1-i)/2/c)/2)) + (((1-i)/2*a + (1+i)/2*c)*((1/a + 1/b + 1/c) - ((1+i)/2/a + (1-i)/2/c)/2 - (1/(a*b) + 1/(b*c) + 1/(c*a))*((1-i)/2*a + (1+i)/2*c)/2) - ((1+i)/2/a + (1-i)/2/c)*((a + b + c) - ((1-i)/2*a + (1+i)/2*c)/2 - (a*b + b*c + c*a)*((1+i)/2/a + (1-i)/2/c)/2)) - C resultant line of the reversed triplet passes through O; was not reduced (1.8 s), 0 at exact points +III.P14.c0 Ch III §1 Problem 14 zero - (m + (-m^2 + m*(a + b) + (m*n - 2)*a*b)/(m + n*a*b - a - b))/2 - (m*n - 1)*a*b/(m + n*a*b - a - b) - C c0 = (mu + c)/2, mu and conj(mu)=n free; was TIMEOUT (>20 s) +III.P14.area1 Ch III §1 Problem 14 zero - (i/4*det([[((m + n*b*c - b - c)/(m*n - 1)), ((n + m/(b*c) - 1/b - 1/c)/(m*n - 1)), 1], [((m + n*c*a - c - a)/(m*n - 1)), ((n + m/(c*a) - 1/c - 1/a)/(m*n - 1)), 1], [((m + n*a*b - a - b)/(m*n - 1)), ((n + m/(a*b) - 1/a - 1/b)/(m*n - 1)), 1]]))*(1 - m*n) - (i/4*det([[a, 1/a, 1], [b, 1/b, 1], [c, 1/c, 1]])) - C (A'B'C')(1 - mu conj mu) = (PQR), oriented areas; was not reduced, 0 at exact points +III.P14.area2 Ch III §1 Problem 14 zero - (i/4*det([[(2*(m - a)/(m*n - 1)), (2*(n - 1/a)/(m*n - 1)), 1], [(2*(m - b)/(m*n - 1)), (2*(n - 1/b)/(m*n - 1)), 1], [(2*(m - c)/(m*n - 1)), (2*(n - 1/c)/(m*n - 1)), 1]]))*(1 - m*n)^2 - 4*(i/4*det([[a, 1/a, 1], [b, 1/b, 1], [c, 1/c, 1]])) - C (A''B''C'')(1 - mu conj mu)^2 = 4(PQR); was not reduced, 0 at exact points +III.P14.final Ch III §1 Problem 14 zero - (i/4*det([[((m + n*b*c - b - c)/(m*n - 1)), ((n + m/(b*c) - 1/b - 1/c)/(m*n - 1)), 1], [((m + n*c*a - c - a)/(m*n - 1)), ((n + m/(c*a) - 1/c - 1/a)/(m*n - 1)), 1], [((m + n*a*b - a - b)/(m*n - 1)), ((n + m/(a*b) - 1/a - 1/b)/(m*n - 1)), 1]]))^2 - 1/4*(i/4*det([[(2*(m - a)/(m*n - 1)), (2*(n - 1/a)/(m*n - 1)), 1], [(2*(m - b)/(m*n - 1)), (2*(n - 1/b)/(m*n - 1)), 1], [(2*(m - c)/(m*n - 1)), (2*(n - 1/c)/(m*n - 1)), 1]]))*(i/4*det([[a, 1/a, 1], [b, 1/b, 1], [c, 1/c, 1]])) - C (A'B'C')^2 = 1/4 (A''B''C'')(PQR); was not reduced, 0 at exact points +III.P15.1.foot Ch III §1 Problem 15 1° zero - 1/2*(c*a + a*b + a - c*a*a*b/a) - 1/2*(a - b*c + (a*b + b*c + c*a) - a*b*c) - C foot of A on B'C' (P = 1, a' = bc); was 0 provided a != 0 +III.P15.1.mod Ch III §1 Problem 15 1° equal - (-b*c)*(-1/(b*c)) 1 C |a'' - o''|^2 hand-conjugated; was 1 provided b*c != 0 +III.P15.2 Ch III §1 Problem 15 2° zero - ((a*b + b*c + c*a) - a*b*c)*((1/(a*b) + 1/(b*c) + 1/(c*a)) - 1/(a*b*c)) - ((a + b + c) - 1)*((1/a + 1/b + 1/c) - 1) - C OO'' = PH: |s2 - s3|^2 - |s1 - 1|^2, hand-conjugated; was an unreduced Laurent expression +III.P15.V2.det Ch III §1 Problem 15 Version Two zero - det([[a, p*(b + (1/(a*b))) - p^2, 1], [b, p*((1/(a*b)) + a) - p^2, 1], [(1/(a*b)), p*(a + b) - p^2, 1]]) - C opposite-orientation determinant with sigma3 = 1 (c = 1/(ab)); was 0 provided a, b != 0 +III.P16.centroid Ch III §1 Problem 16 zero - (a*(x*b + (1 - x)*c) + b*(x*c + (1 - x)*a) + c*(x*a + (1 - x)*b))/3 - (a*b + b*c + c*a)/3 - C centroid of A''B''C'' (a'' = a*(x*b + (1-x)*c), x = alpha free) is sigma2/3; was 0 +III.P16.g Ch III §1 Problem 16 zero - (a*b+b*c+c*a)/3 - (a*b*c)*(1/a+1/b+1/c)/3 - C g'' - sigma3*conj(g''); was ((-a + a) * (b + c) + c * (-b + b)) / 3; expand left -1/3/a*a*b*c +III.P16.g2 Ch III §1 Problem 16 zero - a*b*c*(1/a+1/b+1/c) - (a*b+b*c+c*a) - C sigma3*conj(sigma1) - sigma2; was a*b + b*(-a + c) + -b*c (reversed order gave 0) +III.P16.g3 Ch III §1 Problem 16 zero - (a*b+b*c+c*a) - a*b*c*(1/a+1/b+1/c) - C reversed operand order of III.P16.g2; was 0 +III.P16.sqrt Ch III §1 Problem 16 zero - (a+b+c)/3/sqrt(a*b*c) - sqrt(a*b*c)*(1/(a*b)+1/(b*c)+1/(c*a))/3 - C centroid reflected in the Simson-direction diameter, via sqrt(sigma3); was 0 provided ... +III.P17.solve Ch III §1 Problem 17 solve z z - a = b*c*(1/z - 1/a) { a, -b*c/a } C second intersection of an altitude with (O); was quadratic formula keeping sqrt((bc/a + a)^2) +III.P17.factor Ch III §1 Problem 17 equal - a*z^2 + (b*c - a^2)*z - a*b*c (a - z)*(-a*z - b*c) C the quadratic factorised; collapse gave this, factor::z:: refused +III.P17.solvef Ch III §1 Problem 17 solve z (a - z)*(-a*z - b*c) = 0 { a, -b*c/a } C the factored form solved; was { a, -b * c / a } +III.P18.1.p1 Ch III §1 Problem 18 1° zero - s*((u - L*r/s + L*t/(s*u))/(1 - L)) + t*((1/u - r/(L*t) + s*u/(L*t))/(1 - 1/L)) - r - C P1 on the line s*z + t*conj(z) = r (s, t = conj s, r real, L = lambda); was 0 provided ... +III.P18.1.trig Ch III §1 Problem 18 1° zero - (cos(2*x) - 1)^2 + sin(2*x)^2 - 4*sin(x)^2 - C |e^(2ix) - 1|^2 = 4 sin^2 x; was 2 + (-2)*cos(2x) + (-4)*sin(x)^2, no further +III.P18.1.trig2 Ch III §1 Problem 18 1° zero - 2 - 2*cos(2*x) - 4*sin(x)^2 - C respelling of III.P18.1.trig; was 0 +III.P18.2 Ch III §1 Problem 18 2° zero - (cos(2*(x + pi - x)) + i*sin(2*(x + pi - x)))*1 - 1 - - lambda*mu = 1 for beta = pi - alpha, so m = 0 (concurrent); correction of III.P18.2.err; was 0 +III.P18.2.err Ch III §1 Problem 18 2° (p. 148) erratum - cos(2*(x + x)) + i*sin(2*(x + x)) 1 R book's theorem says beta = alpha; then lambda*mu = e^(4ix) != 1, lines do not concur; true beta = -alpha = pi - alpha +III.P18.3 Ch III §1 Problem 18 3° equal - (L*1 - 1)/(1 - L) -1 C m for beta = 0 (half-turn); was -1 provided L != 1 +III.P19.b1 Ch III §1 Problem 19 zero - (1 + u^2)/u - (u + 1/u) - C the residual of b1 in (52)/(53); was 0 provided u != 0 alone, the full b1 was not reduced +III.P20.a1 Ch III §1 Problem 20 zero - (v + w - v*w*(1/(v + w))) - ((u + v + w) - (u*v + v*w + w*u)/(v + w)) - C a1 = A0 (centre of OBC, a0 = vw/(v+w)) reflected in BC equals s1 - s2/(v+w); was 0 provided v + w != 0 +III.P21.r Ch III §1 Problem 21 (59) zero - 2*p*(((u + v - u*v*q) + (w + y - w*y*q))/2) - 2*q*(u*v*w*y)*(((1/u + 1/v - p/(u*v)) + (1/w + 1/y - p/(w*y)))/2) + (v*w*y + u*w*y + u*v*y + u*v*w)*q - p*(u + v + w + y) - C midpoint R of P_uvP_wy on line (59), q = conj p; was not reduced, 0 at exact points +III.P21.s Ch III §1 Problem 21 (59) zero - 2*p*(((u + w - u*w*q) + (v + y - v*y*q))/2) - 2*q*(u*v*w*y)*(((1/u + 1/w - p/(u*w)) + (1/v + 1/y - p/(v*y)))/2) + (v*w*y + u*w*y + u*v*y + u*v*w)*q - p*(u + v + w + y) - C midpoint S of P_uwP_vy on line (59), q = conj p; was not reduced, 0 at exact points +III.P21.t Ch III §1 Problem 21 (59) zero - 2*p*(((u + y - u*y*q) + (v + w - v*w*q))/2) - 2*q*(u*v*w*y)*(((1/u + 1/y - p/(u*y)) + (1/v + 1/w - p/(v*w)))/2) + (v*w*y + u*w*y + u*v*y + u*v*w)*q - p*(u + v + w + y) - C midpoint T of P_uyP_vw on line (59), q = conj p; was not reduced, 0 at exact points +III.P21.o Ch III §1 Problem 21 (59) zero - 2*p*((u + v + w + y)/2) - 2*q*(u*v*w*y)*((1/u + 1/v + 1/w + 1/y)/2) + (v*w*y + u*w*y + u*v*y + u*v*w)*q - p*(u + v + w + y) - C O' (O reflected in the centroid) on line (59); was not reduced, 0 at exact points +III.P21.o2 Ch III §1 Problem 21 (59) zero - q * (u * (v * (w + y) + w * y) + v * w * y) - q * u * v * w * y * (1 / u + 1 / v + 1 / w + 1 / y) - C the residual of III.P21.o, q*(sigma3 - sigma4*conj sigma1); was printed unreduced +III.P22.1 Ch III §1 Problem 22 zero - ((u + 1/u)/2*v*w + (v + w)/2)/2 - (u*v*w/4 + (u*v + v*w + w*u)/(4*u)) - C a4 = sigma3/4 + sigma2/(4 z1); was 0 provided u != 0 +III.P22.R Ch III §1 Problem 22 Remark (62) zero - (i/4*det([[(u*v*w/4 + (u*v + v*w + w*u)/(4*u)), (1/(4*u*v*w) + (u + v + w)*u/(4*u*v*w)), 1], [(v*w*u/4 + (v*w + w*u + u*v)/(4*v)), (1/(4*v*w*u) + (v + w + u)*v/(4*v*w*u)), 1], [(w*u*v/4 + (w*u + u*v + v*w)/(4*w)), (1/(4*w*u*v) + (w + u + v)*w/(4*w*u*v)), 1]])) + (u + v + w)*(1/u + 1/v + 1/w)/16*(i/4*det([[u, 1/u, 1], [v, 1/v, 1], [w, 1/w, 1]])) - C (A4B4C4)/(ABC) = -OH^2/16 for R = 1, hand-conjugated; was not reduced, 0 at exact points +III.P22.2.err1 Ch III §1 Problem 22 (p. 159) erratum - (u/b)*(v/b)*(w/b)/4 u*v*w/b^3 C centre in the frame turned by beta (=b): book prints sigma3/beta^3, true sigma3/(4 beta^3) +III.P22.2.err2 Ch III §1 Problem 22 (p. 159) erratum - b*((u/b)*(v/b)*(w/b)/4) u*v*w/b^2 C same centre in the old frame: book prints sigma3/beta^2, true sigma3/(4 beta^2) +III.P22.2.cor Ch III §1 Problem 22 zero - b*((u/b)*(v/b)*(w/b)/4) - u*v*w/(4*b^2) - C correction of III.P22.2.err2: centre sigma3/(4 beta^2), checked against the rebuilt A4B4C4 +III.P23.1.A Ch III §1 Problem 23 1° equal - pi / (7/4) 4*pi/7 - angle A from solvesys A - 2B, B - 2C, A + B + C = pi; printed unsimplified +III.P23.1.B Ch III §1 Problem 23 1° equal - -pi / (7/4) / (-2) 2*pi/7 - angle B from the same solvesys; printed unsimplified +III.P23.1.C Ch III §1 Problem 23 1° equal - --pi / (7/4) / (-2) / (-2) pi/7 - angle C from the same solvesys; printed unsimplified +III.P23.2.sum Ch III §1 Problem 23 2° zero - 1 + (e^(2*pi*i/7)) + (e^(2*pi*i/7))^2 + (e^(2*pi*i/7))^3 + (e^(2*pi*i/7))^4 + (e^(2*pi*i/7))^5 + (e^(2*pi*i/7))^6 - - 1 + alpha + ... + alpha^6 = 0, alpha a primitive 7th root of unity; was 0 +III.P23.2.pow Ch III §1 Problem 23 equal - (e^(2*pi*i/7))^7 1 - alpha^7 = 1 (bracketed power); was 1 +III.P23.4.slope Ch III §1 Problem 23 4° zero - (e^(2*pi*i/7))^5/((e^(2*pi*i/7))^6)^5 - (e^(2*pi*i/7))^3 - - complex slope of O-Omega (omega = alpha^5, conj alpha = alpha^6) is alpha^3; was 0 +III.P24.setup.a Ch III §3 Problem 24 solve x x^3 + 1 = 0 { -1, ((1+sqrt(3)*i)/2), ((1-sqrt(3)*i)/2) } C alpha, conj(alpha) are the non-real roots of x^3+1; was right but roots printed as (..)*(-1) +III.P24.setup.b Ch III §3 Problem 24 zero - ((1+sqrt(3)*i)/2)^2 - ((1+sqrt(3)*i)/2) + 1 - - alpha^2 - alpha + 1 = 0; was 0 +III.P24.setup.c Ch III §3 Problem 24 zero - ((1+sqrt(3)*i)/2) - (cos(pi/3)+i*sin(pi/3)) - - alpha = cis(pi/3); was 0 +III.P24.1 Ch III §3 Problem 24 1° (69) zero - ((((1-sqrt(3)*i)/2)*a_3+((1+sqrt(3)*i)/2)*a_2)-(((1-sqrt(3)*i)/2)*a_6+((1+sqrt(3)*i)/2)*a_5)) - ((((1-sqrt(3)*i)/2)*a_5+((1+sqrt(3)*i)/2)*a_4)-(((1-sqrt(3)*i)/2)*a_2+((1+sqrt(3)*i)/2)*a_1)) - ((1+sqrt(3)*i)/2)*(((((1-sqrt(3)*i)/2)*a_1+((1+sqrt(3)*i)/2)*a_6)-(((1-sqrt(3)*i)/2)*a_4+((1+sqrt(3)*i)/2)*a_3)) - ((((1-sqrt(3)*i)/2)*a_5+((1+sqrt(3)*i)/2)*a_4)-(((1-sqrt(3)*i)/2)*a_2+((1+sqrt(3)*i)/2)*a_1))) - C diagonal vectors p'_k=a'_{k+3}-a'_k form equilateral triangle; a'_k=conj(al)a_{k+1}+al*a_k; was 0 +III.P24.2.pivot Ch III §3 Problem 24 2° equal - a_1 + (((1-sqrt(3)*i)/2)*(((1-sqrt(3)*i)/2)*(((1-sqrt(3)*i)/2)*a_1 + ((1+sqrt(3)*i)/2)*c_1) + ((1+sqrt(3)*i)/2)*c_2) + ((1+sqrt(3)*i)/2)*c_3) ((1-sqrt(3)*i)/2)*c_1 + c_2 + ((1+sqrt(3)*i)/2)*c_3 C a_1+a_4 independent of a_1 via chain a_{k+1}=conj(al)a_k+al*c_k (pivot O_1); was right +III.P24.3 Ch III §3 Problem 24 3° (71) zero - ((1+sqrt(3)*i)/2)*((((1-sqrt(3)*i)/2)*a_3+((1+sqrt(3)*i)/2)*a_2) - ((1+sqrt(3)*i)/2)*(((1-sqrt(3)*i)/2)*a_2+((1+sqrt(3)*i)/2)*a_1)) - (a_1 - a_2 + a_3) - C a''_1 = a_1 - a_2 + a_3 from a''_k = al(a'_{k+1} - al a'_k); was 0 +III.P24.4 Ch III §3 Problem 24 4° zero - (a_4-a_5+a_6) - (a_1-a_2+a_3) - (a_4-a_1+a_6-a_3+a_2-a_5) - C A''_1A''_4 = 3 OG; was 0 +III.P24.5 Ch III §3 Problem 24 5° zero - (a_1-a_2+a_3) + (a_2-a_3+a_4) - (a_1+a_4) - C a''_1 + a''_2 = a_1 + a_4 (common midpoint); linear +III.E1 Ch III §3 Problem 24 1°, p. 169 erratum - ((((1-sqrt(3)*i)/2)*a_3+((1+sqrt(3)*i)/2)*a_2)-(((1-sqrt(3)*i)/2)*a_6+((1+sqrt(3)*i)/2)*a_5)) ((1+sqrt(3)*i)/2)*((((1-sqrt(3)*i)/2)*a_1+((1+sqrt(3)*i)/2)*a_6)-(((1-sqrt(3)*i)/2)*a_4+((1+sqrt(3)*i)/2)*a_3)) + (1 - ((1+sqrt(3)*i)/2)) C printed p'5 = al p'3 + (1-al); true: al p'3 + (1-al) p'1 (see III.P24.1) +III.E1.corr Ch III §3 Problem 24 1°, p. 169 zero - ((((1-sqrt(3)*i)/2)*a_3+((1+sqrt(3)*i)/2)*a_2)-(((1-sqrt(3)*i)/2)*a_6+((1+sqrt(3)*i)/2)*a_5)) - (((1+sqrt(3)*i)/2)*((((1-sqrt(3)*i)/2)*a_1+((1+sqrt(3)*i)/2)*a_6)-(((1-sqrt(3)*i)/2)*a_4+((1+sqrt(3)*i)/2)*a_3)) + (1 - ((1+sqrt(3)*i)/2))*((((1-sqrt(3)*i)/2)*a_5+((1+sqrt(3)*i)/2)*a_4)-(((1-sqrt(3)*i)/2)*a_2+((1+sqrt(3)*i)/2)*a_1))) - C correction of III.E1; was 0 +III.P25.setup.chord Ch III §3 Problem 25 (73)-(74) zero - ((z_2+z_3+p-z_2*z_3*pc)/2) + z_2*z_3*((1/z_2+1/z_3+pc-p/(z_2*z_3))/2) - z_2 - z_3 - C foot a_1 lies on chord BC (z + z2 z3 conj(z) = z2 + z3); was 0 +III.P25.setup.perp Ch III §3 Problem 25 (74) zero - ((z_2+z_3+p-z_2*z_3*pc)/2-p)/(z_3-z_2) + ((1/z_2+1/z_3+pc-p/(z_2*z_3))/2-pc)/(1/z_3-1/z_2) - C PA_1 perpendicular to BC; was unchanged (not 0), exact 0 +III.P25.Q1.ratio Ch III §3 Problem 25 Q_1 zero - ((((z_1*z_2*z_3)*pc^2-(z_1*z_2+z_2*z_3+z_3*z_1)*pc+p+(z_1+z_2+z_3))/2)-((z_1+z_2+p-z_1*z_2*pc)/2))/(((z_3+z_1+p-z_3*z_1*pc)/2)-((z_1+z_2+p-z_1*z_2*pc)/2)) - (pc-1/z_2)/(1/z_3-1/z_2) - C C1B1Q1 ~ BCP opposite orientation, ratio form; was 0 +III.P25.Q1.det Ch III §3 Problem 25 Q_1 zero - det([[1/z_2, ((z_1+z_2+p-z_1*z_2*pc)/2), 1],[1/z_3, ((z_3+z_1+p-z_3*z_1*pc)/2), 1],[pc, (((z_1*z_2*z_3)*pc^2-(z_1*z_2+z_2*z_3+z_3*z_1)*pc+p+(z_1+z_2+z_3))/2), 1]]) - C similarity determinant for Q_1; was 0 only on a second pass +III.P25.1 Ch III §3 Problem 25 1° zero - ((((z_1*z_2*z_3)*pc^2-(z_1*z_2+z_2*z_3+z_3*z_1)*pc+p+(z_1+z_2+z_3))/2)-((z_2+z_3+p-z_2*z_3*pc)/2))/(((z_1+z_2+p-z_1*z_2*pc)/2)-((z_2+z_3+p-z_2*z_3*pc)/2)) - (pc-1/z_3)/(1/z_1-1/z_3) - C A1C1Q1 ~ CAP opposite orientation; was not 0 (relabelled 25-2° passed), exact 0 +III.P25.2 Ch III §3 Problem 25 2° zero - ((((z_1*z_2*z_3)*pc^2-(z_1*z_2+z_2*z_3+z_3*z_1)*pc+p+(z_1+z_2+z_3))/2)-((z_3+z_1+p-z_3*z_1*pc)/2))/(((z_2+z_3+p-z_2*z_3*pc)/2)-((z_3+z_1+p-z_3*z_1*pc)/2)) - (pc-1/z_1)/(1/z_2-1/z_1) - C B1A1Q1 ~ ABP opposite orientation; was 0 +III.P25.3.line Ch III §3 Problem 25 3° zero - ((-(1/z_1)*(p-z_1)/(pc-1/z_1))-p)/(z_1-p) - ((-z_1*(pc-1/z_1)/(p-z_1))-pc)/(1/z_1-pc) - C second intersection a' lies on line PA; was 0 only on a second pass +III.P25.3.lam Ch III §3 Problem 25 3° zero - (-(1/z_2)*(p-z_2)/(pc-1/z_2)) - (-(1/z_1)*(p-z_1)/(pc-1/z_1)) - (2*(p*pc-1)/((z_1*z_2*z_3)*pc^3-(z_1*z_2+z_2*z_3+z_3*z_1)*pc^2+(z_1+z_2+z_3)*pc-1))*(((z_3+z_1+p-z_3*z_1*pc)/2) - ((z_2+z_3+p-z_2*z_3*pc)/2)) - C b'-a' = lambda(b1-a1), lambda symmetric; was not 0, exact 0 +III.P25.3.75 Ch III §3 Problem 25 3° (75) zero - (z_1*z_2*z_3)*(pc-1/z_1)*(pc-1/z_2)*(pc-1/z_3) - ((z_1*z_2*z_3)*pc^3-(z_1*z_2+z_2*z_3+z_3*z_1)*pc^2+(z_1+z_2+z_3)*pc-1) - C Vieta with conjugates; was 0 only on a second pass +III.P25.4.equi Ch III §3 Problem 25 4° zero - (((p^2*pc-(z_1*z_2*z_3)*pc^2+(z_1*z_2+z_2*z_3+z_3*z_1)*pc-(z_1+z_2+z_3))/(2*(p*pc-1)))-((z_2+z_3+p-z_2*z_3*pc)/2))*(((pc^2*p-(1/(z_1*z_2*z_3))*p^2+(1/(z_1*z_2)+1/(z_2*z_3)+1/(z_3*z_1))*p-(1/z_1+1/z_2+1/z_3))/(2*(p*pc-1)))-((1/z_2+1/z_3+pc-p/(z_2*z_3))/2)) - (((p^2*pc-(z_1*z_2*z_3)*pc^2+(z_1*z_2+z_2*z_3+z_3*z_1)*pc-(z_1+z_2+z_3))/(2*(p*pc-1)))-((z_3+z_1+p-z_3*z_1*pc)/2))*(((pc^2*p-(1/(z_1*z_2*z_3))*p^2+(1/(z_1*z_2)+1/(z_2*z_3)+1/(z_3*z_1))*p-(1/z_1+1/z_2+1/z_3))/(2*(p*pc-1)))-((1/z_3+1/z_1+pc-p/(z_3*z_1))/2)) - C O_1 equidistant from A_1 and B_1; was not 0, exact 0 +III.P25.4.79 Ch III §3 Problem 25 4° (79) zero - (-(1/z_1)*(p-z_1)/(pc-1/z_1)) + (-(1/z_2)*(p-z_2)/(pc-1/z_2)) + (-(1/z_3)*(p-z_3)/(pc-1/z_3)) + ((z_1*z_2+z_2*z_3+z_3*z_1)*p*pc^2-2*(z_1+z_2+z_3)*p*pc+3*p-3*(z_1*z_2*z_3)*pc^2+2*(z_1*z_2+z_2*z_3+z_3*z_1)*pc-(z_1+z_2+z_3))/((z_1*z_2*z_3)*(pc-1/z_1)*(pc-1/z_2)*(pc-1/z_3)) - C a'+b'+c' = -X/(s3 Y), Y=prod(pc-1/z_k); was 0 +III.E3 Ch III §3 Problem 25 4°, p. 178 erratum - ((z_1*z_2+z_2*z_3+z_3*z_1)*p*pc^2-2*(z_1+z_2+z_3)*p*pc+3*p-3*(z_1*z_2*z_3)*pc^2+2*(z_1*z_2+z_2*z_3+z_3*z_1)*pc-(z_1+z_2+z_3)) p*pc^2*(z_1*z_2*z_3) - 2*(z_1+z_2+z_3)*p*pc + 3*p - 3*(z_1*z_2*z_3)*pc^2 - 2*(z_1*z_2+z_2*z_3+z_3*z_1)*pc - (z_1+z_2+z_3) C printed X has -2 s2 pc (and s3 p pc^2); true X = s2 p pc^2 - 2 s1 p pc + 3p - 3 s3 pc^2 + 2 s2 pc - s1 +III.P25.4.inv Ch III §3 Problem 25 4° inversion zero - ((((z_1*z_2*z_3)*pc^2-(z_1*z_2+z_2*z_3+z_3*z_1)*pc+p+(z_1+z_2+z_3))/2)-((p^2*pc-(z_1*z_2*z_3)*pc^2+(z_1*z_2+z_2*z_3+z_3*z_1)*pc-(z_1+z_2+z_3))/(2*(p*pc-1))))*(((p*pc+1)/(2*p))-((pc^2*p-(1/(z_1*z_2*z_3))*p^2+(1/(z_1*z_2)+1/(z_2*z_3)+1/(z_3*z_1))*p-(1/z_1+1/z_2+1/z_3))/(2*(p*pc-1)))) - (((p^2*pc-(z_1*z_2*z_3)*pc^2+(z_1*z_2+z_2*z_3+z_3*z_1)*pc-(z_1+z_2+z_3))/(2*(p*pc-1)))-((z_2+z_3+p-z_2*z_3*pc)/2))*(((pc^2*p-(1/(z_1*z_2*z_3))*p^2+(1/(z_1*z_2)+1/(z_2*z_3)+1/(z_3*z_1))*p-(1/z_1+1/z_2+1/z_3))/(2*(p*pc-1)))-((1/z_2+1/z_3+pc-p/(z_2*z_3))/2)) - C Q_1 is the inverse of T in (A1B1C1); was not 0, exact 0 +III.P25.5.solve Ch III §3 Problem 25 5° solve z l*z + m = z { -m/(l-1) } C fixed point of z -> lambda z + mu; was right +III.P25.5 Ch III §3 Problem 25 5° zero - ((p^2*pc-(z_1*z_2*z_3)*pc^2+(z_1*z_2+z_2*z_3+z_3*z_1)*pc-(z_1+z_2+z_3))/(2*(p*pc-1)))/(1 - pc*(((p*pc+1)/(2*pc)) - ((p^2*pc-(z_1*z_2*z_3)*pc^2+(z_1*z_2+z_2*z_3+z_3*z_1)*pc-(z_1+z_2+z_3))/(2*(p*pc-1))))) - ((-(1/z_1)*(p-z_1)/(pc-1/z_1)) - (2*(p*pc-1)/((z_1*z_2*z_3)*pc^3-(z_1*z_2+z_2*z_3+z_3*z_1)*pc^2+(z_1+z_2+z_3)*pc-1))*((z_2+z_3+p-z_2*z_3*pc)/2))/(1 - (2*(p*pc-1)/((z_1*z_2*z_3)*pc^3-(z_1*z_2+z_2*z_3+z_3*z_1)*pc^2+(z_1+z_2+z_3)*pc-1))) - C fixed point omega closed form vs (a'-lambda a1)/(1-lambda); was 20 s timeout, exact 0 +III.P25.6 Ch III §3 Problem 25 6° zero - ((z_1*z_2*z_3)*(1/z_1+1/z_2+1/z_3)^2-(z_1*z_2+z_2*z_3+z_3*z_1)*(1/z_1+1/z_2+1/z_3)+(z_1+z_2+z_3)+(z_1+z_2+z_3))/2 - (z_1+z_2+z_3) - C q_1 at P = H (p = s1) equals H; was not 0, exact 0 +III.E4 Ch III §3 Problem 25 6°, p. 180 erratum - 2*((z_2+z_3+p-z_2*z_3*pc)/2) z_2 - z_3 + p - z_2*z_3*pc C second numerator of a'-a_1 printed z2 - z3 + ...; true z2 + z3 + p - z2 z3 pc (= 2 a_1) +III.E5 Ch III §3 Problem 25 6°, p. 181 erratum - (1/(z_1*z_2*z_3))*p^2 - (1/(z_1*z_2)+1/(z_2*z_3)+1/(z_3*z_1))*p - pc + (1/z_1+1/z_2+1/z_3) (1/(z_1*z_2*z_3))*p^2 - (1/(z_1*z_2)+1/(z_2*z_3)+1/(z_3*z_1))*p - pc - (1/z_1+1/z_2+1/z_3) C conjugate of (80) printed with -conj(s1); true +conj(s1) = +s2/s3 +III.P26.82 Ch III §3 Problem 26 (82) zero - b + (1/(a*b)) - b*(1/(a*b))*(a^2/p^3) - ((a+b+(1/(a*b))) - (1+p^(-3))*a) - C a'' = s1 - (1+p^-3) a, reflection of p^3/a^2 in BC, c = 1/(ab); was 0 +III.P26.2 Ch III §3 Problem 26 2° zero - (a-((a+b+(1/(a*b)))-(1+p^(-3))*b))/(a-((a+b+(1/(a*b)))-(1+p^(-3))*(1/(a*b)))) - (1/a-((1/a+1/b+a*b)-(1+p^3)/b))/(1/a-((1/a+1/b+a*b)-(1+p^3)*a*b)) - C (a-b'')/(a-c'') is real, c = 1/(ab); was not 0, exact 0 +III.P26.3 Ch III §3 Problem 26 3° equal - apply(lambda(z, q - (1 + p^(-3))*z), 0) q C orthocentre s1 = q is the centre of (A"B"C"); was q provided not p = 0 +III.P26.5.a Ch III §3 Problem 26 5° equal - (1+cos(t))^2 + sin(t)^2 2 + 2*cos(t) C modulus squared of 1 + cis(t); was 2 + 2cos(t) +III.P26.5.b Ch III §3 Problem 26 5° zero - 2 + 2*cos(t) - 4*cos(t/2)^2 - C half-angle step; was unchanged +III.P26.5.c Ch III §3 Problem 26 5° equal - sqrt((1+cos(3*x))^2 + sin(3*x)^2) 2*abs(cos(3*x/2)) R R" = 2|cos(3 phi/2)|; was unchanged (also AM_REAL) +III.E6 Ch III §3 Problem 26 5°, p. 185 erratum - sqrt((1+cos(3*x))^2 + sin(3*x)^2) sqrt((1+cos(3*x))^2 + sin(x)^2) R printed sin^2(phi); true sin^2(3 phi); at phi = pi/9 printed - 2|cos(3phi/2)| = -0.1935 +III.P26.7 Ch III §3 Problem 26 7° solve x 2*cos(3*x/2) = 1 { 2/9*pi + 4/3*pi*n_1, -2/9*pi + 4/3*pi*n_1 } R one branch of |1+p^3| = 1; was right but unnormalised +III.E7 Ch III §3 Problem 26 7°, p. 186 erratum - abs(1 + e^(7/3*i*pi)) 1 - book: OT2 (60 deg) rotated 80 deg is a solution; true |1+e^(7i pi/3)| = sqrt(3); solutions 40,80,160,200,280,320 deg +III.E7.corr Ch III §3 Problem 26 7°, p. 186 zero - abs(1 + e^(4/3*i*pi)) - 1 - - correction of III.E7: OT1 rotated 80 deg, p^3 at 240 deg +III.P26.8 Ch III §3 Problem 26 8° solve z q - (1+p^(-3))*z = z { q/(2+p^(-3)) } C fixed point omega' = s1/(2+p^-3); was right, unnormalised +III.P26.9 Ch III §3 Problem 26 9° zero - ((q/(2+p^(-3)))-2*q/3)*((qc/(2+p^3))-2*qc/3) - q*qc/9 - C Omega' runs over circle (GH), conj p = 1/p; was 0 +III.P26.10 Ch III §3 Problem 26 10° solve p 1/(2+p^(-3)) = 1/3 { 1, -1/2 + sqrt(3)/2*i, -1/2 - sqrt(3)/2*i } C Omega' = G iff p^3 = 1; was { } (wrong answer, solver bug) +III.P26.11 Ch III §3 Problem 26 11° solve p 1/(2+p^(-3)) = 1 { -1, 1/2 + sqrt(3)/2*i, 1/2 - sqrt(3)/2*i } C Omega' = H iff p^3 = -1; was { } (wrong answer, solver bug) +III.P26.12 Ch III §3 Problem 26 12° zero - ((q/3*(2-p^(-3)))-2*q/3)*((qc/3*(2-p^3))-2*qc/3) - q*qc/9 - C G" runs over circle (GH); was 0 +III.P26.13 Ch III §3 Problem 26 13° zero - 3*(q/3*(2-p^(-3)))*(q/(2+p^(-3))) - 4*(q/(2+p^(-3)))*q + q^2 - C eliminating p: 3 g'' w' - 4 w' s1 + s1^2 = 0; was 0 +III.P26.13.factor Ch III §3 Problem 26 13° equal - 3*z^2 - 4*q*z + q^2 (q - 3*z)*(q - z) C fixed points H and G of the Moebius map; factor was right +III.P26.13.solve Ch III §3 Problem 26 13° solve z 3*z^2 - 4*q*z + q^2 = 0 { q, q/3 } C fixed points H and G; was 2/3 q -+ sqrt(q^2)/3, sqrt(q^2) unresolved +III.P26.14 Ch III §3 Problem 26 14° zero - q*qc*(-1/3 + (1 + (-2)/(p^3 + 2))/3) + 2/3*q*qc/(p^3 + 2) - C residual of the O1-Omega*-G" collinearity det; was left non-zero after re-simplifying +III.P27.Ap Ch III §3 Problem 27 zero - 1/((1/(z_2*z_3))*(z_0*z_0c-1)/(z_0c+z_0/(z_2*z_3)-1/z_2-1/z_3)) - (1/(z_0*z_0c-1))*(z_0 + z_0c*(1/z_1)*(z_1*z_2*z_3) + z_1 - (z_1+z_2+z_3)) - C a' = 1/conj(a0) = (1/sigma)(z0 + conj(z0) conj(z1) s3 + z1 - s1); was 0 only on a second pass +III.P29.alpha Ch III §3 Problem 29 zero - 2*z_1 - z_1^2*(z_2+z_3-z_2*z_3*p) - ((z_1*z_2*z_3) + z_1*(2 - (z_1*z_2+z_2*z_3+z_3*z_1) + p*(z_1*z_2*z_3))) - C alpha = s3 + z1(2 - s2 + p s3); was 0 +III.P29.simson Ch III §3 Problem 29 zero - (((z_2+z_3+(z_1*z_2*z_3)-z_2*z_3*(1/(z_1*z_2*z_3)))/2) - ((z_1+z_2+(z_1*z_2*z_3)-z_1*z_2*(1/(z_1*z_2*z_3)))/2)) - (((1/z_2+1/z_3+(1/(z_1*z_2*z_3))-(z_1*z_2*z_3)/(z_2*z_3))/2) - ((1/z_1+1/z_2+(1/(z_1*z_2*z_3))-(z_1*z_2*z_3)/(z_1*z_2))/2)) - C Simson line of Q = s3 w.r.t. DEF is parallel to the real axis; was 0 +III.P29.radius Ch III §3 Problem 29 zero - (2-(z_1*z_2+z_2*z_3+z_3*z_1)+p*(z_1*z_2*z_3))*(2-(1/(z_1*z_2)+1/(z_2*z_3)+1/(z_3*z_1))+pc*(1/(z_1*z_2*z_3))) - (2*(z_1*z_2*z_3)+pc-(z_1+z_2+z_3))*(2*(1/(z_1*z_2*z_3))+p-(1/z_1+1/z_2+1/z_3)) - C radius of (alpha beta gamma) = 2 IN; was not 0, exact 0 +III.E8 Ch III §3 Problem 29, p. 198 erratum - 1/z_3 - 1/z_2 (1/(z_2*z_3))*(z_3 - z_2) C F' on line E'F' as printed (slope +1/(z2 z3)); true slope -1/(z2 z3), residual 2(1/z3 - 1/z2) +III.E8.corr Ch III §3 Problem 29, p. 198 zero - 1/z_3 - 1/z_2 + (1/(z_2*z_3))*(z_3 - z_2) - C correction of III.E8: F' on z - conj(z2) = -(1/(z2 z3))(conj(z) - z2); was 0 +III.P30 Ch III §3 Problem 30 zero - z_3 + z_4 + z_3*z_4*(1/z_1+1/z_2) - z_3*z_4*(1/z_1+1/z_2+1/z_3+1/z_4) - C apex A12 reflected in A3A4 is z3 z4 conj(s1); was 0 +III.P31.dstar Ch III §3 Problem 31 zero - (-z_2*z_3/z_1 - z_1)/(z_3 - z_2) + (-z_1/(z_2*z_3) - 1/z_1)/(1/z_3 - 1/z_2) - C d* = -z2 z3/z1 lies on the altitude from D; was 0 +III.P31.aprime Ch III §3 Problem 31 zero - (z_1/(z_2*z_3) + z_2*z_3/z_1) - (z_2*z_3/z_1 + z_1/(z_2*z_3)) - C a' - d* is real (D*A' parallel to delta); was 0 +III.P31.astar Ch III §3 Problem 31 zero - 2*z_1 - z_1^2*(z_2*z_3/z_1) - (2*z_1 - (z_1*z_2*z_3)) - C a* = 2 z1 - s3, reflection of a' in the tangent at D; was 0 +III.P31.mid Ch III §3 Problem 31 zero - ((z_1+z_2+z_3)/3 + (2*(z_1+z_2+z_3)/3 - (z_1*z_2*z_3)))/2 - ((z_1+z_2+z_3) - (z_1*z_2*z_3))/2 - C midpoint of g and g* is (s1 - s3)/2, the orthopole of delta; was 0 +III.P31.remark Ch III §3 Problem 31 zero - z_1^2*(z_2*z_3/z_1) - (z_1*z_2*z_3) - C reflection of a' in DI is s3: z1^2 conj(a') = s3 +III.P32.1.equi Ch III §3 Problem 32 1° zero - ((2*(z_1+z_2+z_3)*(z_1*z_2*z_3)/((z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)-(z_1*z_2*z_3)))-(2/(1/z_2+1/z_3)))*((2*(z_1*z_2+z_2*z_3+z_3*z_1)/((z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)-(z_1*z_2*z_3)))-(2/(z_2+z_3))) - ((2*(z_1+z_2+z_3)*(z_1*z_2*z_3)/((z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)-(z_1*z_2*z_3)))-(2/(1/z_3+1/z_1)))*((2*(z_1*z_2+z_2*z_3+z_3*z_1)/((z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)-(z_1*z_2*z_3)))-(2/(z_3+z_1))) - C circumcentre o = 2 s1 s3/(s1 s2 - s3) equidistant from a and b; was not 0, exact 0 +III.P32.1.conj Ch III §3 Problem 32 1° zero - 2*(1/z_1+1/z_2+1/z_3)*(1/(z_1*z_2*z_3))/((1/z_1+1/z_2+1/z_3)*(1/(z_1*z_2)+1/(z_2*z_3)+1/(z_3*z_1))-(1/(z_1*z_2*z_3))) - (2*(z_1*z_2+z_2*z_3+z_3*z_1)/((z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)-(z_1*z_2*z_3))) - C conj(o) = 2 s2/(s1 s2 - s3); was not 0, exact 0 +III.P32.2.R Ch III §3 Problem 32 2° zero - ((2*(z_1+z_2+z_3)*(z_1*z_2*z_3)/((z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)-(z_1*z_2*z_3)))-(2/(1/z_2+1/z_3)))*((2*(z_1*z_2+z_2*z_3+z_3*z_1)/((z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)-(z_1*z_2*z_3)))-(2/(z_2+z_3))) - (2*(z_1*z_2*z_3)/((z_1*z_2*z_3)-(z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)))^2 - C R = 2 s3/(s3 - s1 s2); was not 0, exact 0 +III.P32.2.lam Ch III §3 Problem 32 2° zero - ((z_1*z_2*z_3)/((z_1*z_2*z_3)-(z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1))) - (1/(z_1*z_2*z_3))/((1/(z_1*z_2*z_3))-(1/z_1+1/z_2+1/z_3)*(1/(z_1*z_2)+1/(z_2*z_3)+1/(z_3*z_1))) - C lambda = s3/(s3 - s1 s2) is real; was not 0, exact 0 +III.P32.4 Ch III §3 Problem 32 4° zero - (2/(1/z_2+1/z_3)) + (2/(1/z_3+1/z_1)) + (2/(1/z_1+1/z_2)) - 2*(2*(z_1+z_2+z_3)*(z_1*z_2*z_3)/((z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)-(z_1*z_2*z_3))) - 2*((z_1*z_2+z_2*z_3+z_3*z_1)^2-(z_1+z_2+z_3)*(z_1*z_2*z_3))/((z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)-(z_1*z_2*z_3)) - C h = a+b+c-2o = 2(s2^2 - s1 s3)/(s1 s2 - s3); was not 0, exact 0 +III.P32.5 Ch III §3 Problem 32 5° zero - (1/(z_1*z_2)+1/(z_2*z_3)+1/(z_3*z_1))^2/((1/z_1+1/z_2+1/z_3)*(1/(z_1*z_2)+1/(z_2*z_3)+1/(z_3*z_1))-(1/(z_1*z_2*z_3))) - ((z_1+z_2+z_3)^2/((z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)-(z_1*z_2*z_3))) - C conj(eps) = s1^2/(s1 s2 - s3); was not 0, exact 0 +III.P32.6.dist Ch III §3 Problem 32 6° zero - ((z_1*z_2+z_2*z_3+z_3*z_1)^2/((z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)-(z_1*z_2*z_3)))*((z_1+z_2+z_3)^2/((z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)-(z_1*z_2*z_3))) - (((z_1*z_2*z_3)/((z_1*z_2*z_3)-(z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)))-1)^2 - C |eps| = rho - 1, incircle touches Euler circle; was 0 +III.P32.6.phi0 Ch III §3 Problem 32 6° zero - ((z_1*z_2+z_2*z_3+z_3*z_1)/(z_1+z_2+z_3) - ((z_1*z_2+z_2*z_3+z_3*z_1)^2/((z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)-(z_1*z_2*z_3))))*((z_1+z_2+z_3)/(z_1*z_2+z_2*z_3+z_3*z_1) - ((z_1+z_2+z_3)^2/((z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)-(z_1*z_2*z_3)))) - ((z_1*z_2*z_3)/((z_1*z_2*z_3)-(z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)))^2 - C Feuerbach point phi0 = s2/s1 on the Euler circle; was not 0, exact 0 +III.E9 Ch III §3 Problem 32 6°, p. 211 erratum - 2*(z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)/((z_1*z_2*z_3) - (z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)) ((z_1*z_2*z_3) - (z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1))/((z_1*z_2*z_3) - (z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)) - 1 C printed (s3 - s1 s2)/(s3 - s1 s2) - 1; true (s3 + s1 s2)/(s3 - s1 s2) - 1 = 2 s1 s2/(s3 - s1 s2) +III.E9.corr Ch III §3 Problem 32 6°, p. 211 zero - ((z_1*z_2*z_3) + (z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1))/((z_1*z_2*z_3) - (z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)) - 1 - 2*(z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)/((z_1*z_2*z_3) - (z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)) - C correction of III.E9; was 0 +III.P32.7.conj Ch III §3 Problem 32 7° zero - 4*(1/(z_1*z_2*z_3))/((1/z_1+1/z_2)*(1/z_1+1/z_3)) - (4*z_1/((z_1+z_2)*(z_1+z_3))) - C conj(tau_a) = 4 z1/((z1+z2)(z1+z3)); was 0 +III.E10 Ch III §3 Problem 32 7° (112), p. 212 erratum - (4*(z_1*z_2*z_3)/((z_1+z_2)*(z_1+z_3))) + z_1*z_2*(4*z_1/((z_1+z_2)*(z_1+z_3))) 4*z_1*z_3/(z_1+z_3) C printed line (112) z + z1 z2 conj(z); true z + z1 z3 conj(z) (slope -b/conj(b) = -z1 z3) +III.E10.corr Ch III §3 Problem 32 7° (112), p. 212 zero - (4*(z_1*z_2*z_3)/((z_1+z_2)*(z_1+z_3))) + z_1*z_3*(4*z_1/((z_1+z_2)*(z_1+z_3))) - 4*z_1*z_3/(z_1+z_3) - C correction of III.E10: tau_a on the corrected (112); was 0 only on a second pass +III.P32.7.ta Ch III §3 Problem 32 7° zero - (4*(z_1*z_2*z_3)/((z_1+z_2)*(z_1+z_3))) + (2*(z_1*z_2*z_3)/((z_1*z_2*z_3)-(z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)))*2*((z_1+z_2+z_3) - z_1) - C tau_a = -2R(s1 - z1); was 0 +III.P32.7.t1 Ch III §3 Problem 32 7° zero - (2/(1/z_3+1/z_1)) + (2/(1/z_1+1/z_2)) - z_1 - ((2*(z_1*z_2*z_3)+z_1*(z_1*z_2+z_2*z_3+z_3*z_1)-z_1^3)/((z_1+z_3)*(z_1+z_2))) - C contact point t1 = b + c - z1 = (2 s3 + z1 s2 - z1^3)/((z1+z3)(z1+z2)); was not 0, exact 0 +III.P32.7.ra Ch III §3 Problem 32 7° zero - ((4*(z_1*z_2*z_3)/((z_1+z_2)*(z_1+z_3))) - ((2*(z_1*z_2*z_3)+z_1*(z_1*z_2+z_2*z_3+z_3*z_1)-z_1^3)/((z_1+z_3)*(z_1+z_2))))/z_1 - ((z_1-z_2)*(z_1-z_3)/((z_1+z_2)*(z_1+z_3))) - C exradius r_a = (tau_a - t1)/z1 = (z1-z2)(z1-z3)/((z1+z2)(z1+z3)); was not 0, exact 0 +III.P32.7.u1 Ch III §3 Problem 32 7° zero - ((z_1*z_2+z_1*z_3-z_2*z_3)/(z_2+z_3-z_1))*((1/(z_1*z_2)+1/(z_1*z_3)-1/(z_2*z_3))/(1/z_2+1/z_3-1/z_1)) - 1 - C |u1| = 1 for u1 = (z1 z2 + z1 z3 - z2 z3)/(z2 + z3 - z1); was 0 +III.P32.7.lemma Ch III §3 Problem 32 7° zero - (z_1-z_2)*(z_1-z_3)*(z_2+z_3) - (z_1*z_2*z_3) - (z_1-z_2-z_3)*(z_1*z_2+z_1*z_3-z_2*z_3) - C factorisation lemma for the tangency double root; was 0 +III.P32.7.phi1 Ch III §3 Problem 32 7° zero - (((z_1*z_2+z_2*z_3+z_3*z_1)^2/((z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)-(z_1*z_2*z_3))) + ((z_1*z_2*z_3)/((z_1*z_2*z_3)-(z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)))*((z_1*z_2+z_1*z_3-z_2*z_3)/(z_2+z_3-z_1)) - (4*(z_1*z_2*z_3)/((z_1+z_2)*(z_1+z_3))))*(((z_1+z_2+z_3)^2/((z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)-(z_1*z_2*z_3))) + ((z_1*z_2*z_3)/((z_1*z_2*z_3)-(z_1+z_2+z_3)*(z_1*z_2+z_2*z_3+z_3*z_1)))*((1/(z_1*z_2)+1/(z_1*z_3)-1/(z_2*z_3))/(1/z_2+1/z_3-1/z_1)) - (4*z_1/((z_1+z_2)*(z_1+z_3)))) - ((z_1-z_2)*(z_1-z_3)/((z_1+z_2)*(z_1+z_3)))^2 - C Feuerbach point phi1 = eps + rho u1 lies on the excircle (I_a); was not 0, exact 0 +III.P33.a Ch III §1 Problem 33 zero - R^2*(1-(u-s*t)/u) - R^2*(1 - 2/R*(R*(u-s*t)/(2*u))) - C Euler d^2=R^2-2Rr, last line via R, conj sigma_1 by hand; was 0 provided R*u!=0 +III.P33.b Ch III §1 Problem 33 zero - 4*s*t*u/(s*t-u)^2 - 4*u^2/(u-s*t)^2 - 4*u/(s*t-u) - C Euler formula with R expanded; was returned unchanged +III.P33.c Ch III §1 Problem 33 zero - (2*s*u/(s*t-u))*(2*t/(s*t-u)) - ((2*u/(u-s*t))^2 - 2*(2*u/(u-s*t))) - C Euler formula, o*conj(o) vs R^2-2R; was not reduced to 0 +III.P34.a Ch III §1 Problem 34 zero - det([[a, 1/a, 1], [b, 1/b, 1], [c, 1/c, 1]]) - (c-a)*(c-b)*(b-a)/(a*b*c) - C oriented-area determinant on unit circle (conj = 1/z); was 0 provided +III.P34.b Ch III §1 Problem 34 equal - a^2 * (c - b) + a * (b ^ 2 - c ^ 2) + b * c ^ 2 - b ^ 2 * c (b - c) * -1 * (a - b) * (a - c) C area determinant cleared of denominators; collapse gave this product +III.P34.c Ch III §1 Problem 34 equal - b*c/(b^2+c^2) + b*c/(b^2+c^2) - 1 -(b-c)^2/(b^2+c^2) C f(a_0); was 2*b*c/(b^2+c^2) - 1, never the book's form +III.P34.d Ch III §1 Problem 34 equal - (b*c)^2/(a^2*(b^2+c^2)) + a^2/(b^2+c^2) - 1 (a^2-b^2)*(a^2-c^2)/(a^2*(b^2+c^2)) C f(z_1), expected as used in the ratio probe p9; was (a^4+(b*c)^2)/(a^2*(b^2+c^2)) - 1 +III.P34.e Ch III §1 Problem 34 zero - (1/(b*c))/(1/b - 1/c)^2 - b*c/(b-c)^2 - C u = b0c0/(b0-c0)^2 equals its conjugate (reciprocals); was 0 provided +III.P34.f Ch III §1 Problem 34 zero - (a^2-b^2)*(a^2-c^2)/(a^2*(b^2+c^2)) / (-(b-c)^2/(b^2+c^2)) + (a-b)*(a-c)*(b-c)*(a+b)*(a+c)/(a^2*(b-c)^3) - C ratio f(z_1)/f(a_0) before (121); correction of III.E1.a; was 0 provided +III.P34.g Ch III §1 Problem 34 (altitudes) solve z z - a = b*c*(1/z - 1/a) { a, -b*c/a } C second intersection z_1 = -b0c0/a0; was quadratic formula with a perfect square under sqrt +III.P34.h Ch III §1 Problem 34 (altitudes) solve z a*z^2 - (a^2 - b*c)*z - a*b*c = 0 { a, -b*c/a } C cleared form of the second intersection; was quadratic formula, unsimplified (D5) +III.P34.i Ch III §1 Problem 34 (altitudes) equal - a*z^2 - (a^2 - b*c)*z - a*b*c (a - z) * (-a * z - b * c) C factored second-intersection quadratic; collapse gave this, factor refused +III.P35.a Ch III §1 Problem 35 solve z z - c = a*b*(1/z - 1/c) { c, -a*b/c } C second intersection of altitude with circle; was the same unsimplified quadratic-formula pair +III.P35.b Ch III §1 Problem 35 solve z z^2 = b*c { sqrt(b)*sqrt(c), -sqrt(b)*sqrt(c) } C z_1 = +-sqrt(b1)sqrt(c1); was { sqrt(b*c), -sqrt(b*c) } +III.P35.c Ch III §1 Problem 35 (127) equal - -((-y*z)*(-z*x))/(-x*y) z^2 C row check of (127); was z^2 provided not x*y = 0 +III.P35.d Ch III §1 Problem 35 (126) equal - -((y*z)*(z*x))/(x*y) -z^2 C row check of (126): gives -z^2 not z^2, so (126) fails as the book says; was -z^2 provided +III.P35.e Ch III §1 Problem 35 zero - (-y*z)*(-z*x)*(-x*y) + x^2*y^2*z^2 - C compatibility a1b1c1 = -z1z2z3 (squared form); was 0 +III.P36.a Ch III §1 Problem 36 (128) equal - -(-q ^ 2 * r * p * -(-p ^ 2 + q * r) / (-p ^ 2 * q * r) + -q ^ 2 + r * p) / (1 + -q ^ 2 * r * p * (-1) * (-1) * 1 / p ^ 2 * 1 / q * 1 / r) -(p*q + q*r + r*p) C incentre from solvesys z entry (bisector lines); simplify never cancelled p - q +III.P36.b Ch III §1 Problem 36 (128) zero - (-(p ^ 2 * q - q ^ 2 * r) / p - p * r + q ^ 2) / (1 + -q / p) + (p*q + q*r + r*p) - C simplified incentre entry plus pq+qr+rp; was still nested, not 0 +III.P36.c Ch III §1 Problem 36 equal - ((a+b+c) + (a-b-c))/2 a C midpoint of I I_a is A_0; was a +III.P37.a Ch III §1 Problem 37 (1) equal - det([[1 - p/a, -b*c + a*b*c*P], [1 - p/b, -c*a + a*b*c*P]]) c*(b-a)*(1-p*P) C Cramer determinant Delta, P = conj(p); det_s gave expanded form provided a,b != 0 +III.P37.b Ch III §1 Problem 37 (1) zero - (1 - p/a)*(-c*a + a*b*c*P) - (1 - p/b)*(-b*c + a*b*c*P) - c*(b-a)*(1-p*P) - C Delta minus book form; was p*P*(-a*c + a*c + -b*c + b*c) provided, not a fixed point (D1) +III.P37.c Ch III §1 Problem 37 (2) zero - u*(1/a - 1/p)/(1 - p/a) + u/p - C reflected lines parallel, slope -sigma_3 conj(p) with |p|=1 by hand; was 0 provided +III.P37.d Ch III §1 Problem 37 (3) zero - x*b + y*c + a + a*b*c*(x/b + y/c)/a - (a + (x+y)*(b+c)) - C point on BC has A as isogonal conjugate, conj by hand; was 0 provided +III.P38.a Ch III §1 Problem 38 1° zero - (s/3 + (t/u)/3*t - s - u*((t/u)/3)^2)/((s/3)*((t/u)/3) - 1) - 2*(t*(t/u) - 3*s)/(s*(t/u) - 9) - C Lemoine point as isogonal conjugate of centroid; reading's probe had t/3 for s/3, was unchanged +III.P38.b Ch III §1 Problem 38 1° equal - s/3 + (t/u)/3*t - s - u*((t/u)/3)^2 -(2/3)*s + t^2/(3*u) - t^2/(9*u) C middle numerator of the Lemoine step; correction of III.E3.a +III.P38.c Ch III §1 Problem 38 2° zero - (s + (t/u)*t - s - u*(t/u)^2)/(s*(t/u) - 1) - C isogonal conjugate of orthocentre is O; was 0 provided not s*t/u - 1 = 0 +III.P38.d Ch III §1 Problem 38 3° zero - (s/2 + (t/u)/2*t - s - u*((t/u)/2)^2)/((s/2)*((t/u)/2) - 1) - (t*(t/u) - 2*s)/(s*(t/u) - 4) - C isogonal conjugate of nine-point centre; correction of III.E4.a; was not reduced to 0 +III.P39.a Ch III §1 Problem 39 equal - (u*P^2 - t*P - p + s)/(2*(1-p*P)) + (u*P^2 + t*P + p + s)/(2*(1-p*P)) (P^2*u + s)/(1 - p*P) C midpoint of isogonal conjugates of p, -p; was right value with spurious provided not P = 0 (D3) +III.P39.b Ch III §1 Problem 39 Remark (1) solve x x^2/(1-x^2) = 1 { sqrt(2)/2, -sqrt(2)/2 } - R_1 = R iff OP = R/sqrt(2); was { 1/2*sqrt(2), -1/2*sqrt(2) } +III.P39.c Ch III §1 Problem 39 Remark (2) solve x x^2/(1-x^2) = 1/2 { sqrt(3)/3, -sqrt(3)/3 } - R_1 = nine-point radius iff OP = R/sqrt(3); was { 1/3*sqrt(3), -1/3*sqrt(3) } +III.P39.d Ch III §1 Problem 39 Remark (3) solve x x^2/(1-x^2) = x { 0, (-1 - sqrt(5))/2, (-1 + sqrt(5))/2 } - R_1 = OP case OP < R; was exactly these three roots +III.P39.e Ch III §1 Problem 39 Remark (3) solve x x^2/(x^2-1) = x { 0, (1 + sqrt(5))/2, (1 - sqrt(5))/2 } - R_1 = OP case OP > R; was these roots written over (-2) +III.P39.f Ch III §1 Problem 39 Remark (3) solve x x^2/abs(1-x^2) = x { 0, (sqrt(5) - 1)/2, (sqrt(5) + 1)/2 } - R_1 = OP with the modulus as printed; was floats plus 2 spurious non-real roots (D4) +III.P39.g Ch III §1 Problem 39 Remark (1) solve x x^2/abs(1-x^2) = 1 { sqrt(2)/2, -sqrt(2)/2 } - R_1 = R with the modulus as printed; was { 1/2*sqrt(2), -1/2*sqrt(2) } +III.P40.a Ch III §1 Problem 40 zero - (s - u*T/t)/2 - s/2 + u*T/(2*t) - C Feuerbach point phi_0 minus nine-point centre, T = conj(tau_0); was 0 provided +III.P40.b Ch III §1 Problem 40 zero - s/2 - u*T/(2*t) - (s - u*T^2)/2 - u*T/(2*t)*(t*T - 1) - C phi_0 minus tau_0 via fixed-point relation; was 0 provided not t = 0 +III.P40.c Ch III §1 Problem 40 zero - (u*T/(2*t)*(t*T-1))/((1/u)*t/(2*T)*(t*T-1)) - u^2*T^2/t^2 - C slopes of phi_0-o_9 and phi_0-tau_0 equal (collinear centres); was 0 provided +III.P40.d Ch III §1 Problem 40 (149) solve d r/(2*R) = r^2/(d - R^2) { R^2 + 2*r*R } C lemma OI_a^2 = R^2 + 2R r_a; was { r^2/(r/(2*R)) + R^2 } unsimplified (D6) +III.P40.e Ch III §1 Problem 40 (149) equal - r ^ 2 / (r / (2 * R)) + R ^ 2 R^2 + 2*r*R C solve's answer for the lemma, simplified; was R^2 + 2*r*R provided not r = 0 +III.P41.a Ch III §1 Problem 41 1° zero - (T+u+v+w)*(T+u-v-w)*(T-u+v-w)*(T-u-v+w) - (T^4 - 2*(u^2+v^2+w^2)*T^2 + 8*u*v*w*T + (u^2+v^2+w^2)^2 - 4*(u^2*v^2+v^2*w^2+w^2*u^2)) - C incentre/excentres are the roots of the fixed-point quartic; expand gave 0 +III.P41.b Ch III §1 Problem 41 1° zero - 2*(-(q*r+r*p+p*q)) + p^2*q^2*r^2*((p+q+r)/(p*q*r))^2 - (p^2+q^2+r^2) - C tau_0 satisfies the fixed-point equation; was a zero polynomial left under provided (D2) +III.P41.c Ch III §1 Problem 41 2° zero - S ^ 2 * U ^ 2 * g ^ 4 - 4 * S * U ^ 2 * g ^ 3 - 2 * S * U ^ 2 * g ^ 2 * s - 4 * S * U - 4 * U ^ 3 * g ^ 4 * s - 4 * U ^ 2 * g * s + U ^ 2 * s ^ 2 - U^2*((S^2 - 4*s*U)*g^4 - 4*S*g^3 - 2*s*S*g^2 - 4*s*g + s^2 - 4*S/U) - C resultant (F#) of (160),(161) vs U^2 times the book's quartic for psi; Simplify gave 0 +III.P41.d Ch III §1 Problem 41 2° zero - 4*(g^3*U+1)^2*(U*((s - g^2*S)/(2*g^3*U + 2))^2 - 2*g*((s - g^2*S)/(2*g^3*U + 2))*U - S) - ((U*S^2 - 4*s*U^2)*g^4 - 4*U*S*g^3 - 2*U*s*S*g^2 - 4*s*U*g + U*s^2 - 4*S) - C book's route: tau substituted into (161) gives the psi quartic; was returned unsimplified +III.P41.e Ch III §1 Problem 41 2° zero - 4*(g^3*U+1)^2*(U*((s - g^2*S)/(2*(g^3*U + 1)))^2 - 2*g*((s - g^2*S)/(2*(g^3*U + 1)))*U - S) - ((U*S^2 - 4*s*U^2)*g^4 - 4*U*S*g^3 - 2*U*s*S*g^2 - 4*s*U*g + U*s^2 - 4*S) - C same as III.P41.d with the denominator 2*(g^3*U + 1); was returned unsimplified +III.P42.a Ch III §1 Problem 42 zero - 2*(a*b+b*c+c*a) - (a^2+b^2+c^2) - (4*(a*b+b*c+c*a) - (a+b+c)^2) - C affix q of Q; expand gave 0 +III.P42.b Ch III §1 Problem 42 zero - (c^2-(a+b)^2)*(c^2-(a-b)^2) - ((a^2+b^2+c^2)^2 - 4*(a^2*b^2+b^2*c^2+c^2*a^2)) - C tau_0 tau_1 tau_2 tau_3 = sigma_2^2 - 4 sigma_1 sigma_3; simplify 0, expand left (b^2)^2 + -b^4 +III.P42.c Ch III §1 Problem 42 equal - (b - c - a/m*(b - c))/(1/b - 1/c - m/a*(1/b - 1/c)) a*b*c/m C Simson line slope sigma_3/z_0 with conj by hand; was a*c*b/m provided (1.2 s) +III.P42.d Ch III §1 Problem 42 zero - (b - c - a/m*(b - c))/(1/b - 1/c - m/a*(1/b - 1/c)) - a*b*c/m - C Simson slope minus abc/m; was c*b*(-a + a)/m provided (3.5 s), not a fixed point (D1) +III.P43.a Ch III §1 Problem 43 zero - ((b*c+b*d+c*d)/(b+c+d) + a)/2 - (a*b+a*c+a*d+b*c+b*d+c*d)/(2*(b+c+d)) - C midpoint of A_1 and the book's phi_1 (wrong point, see E6) - algebra only; was not reduced to 0 +III.P43.b Ch III §1 Problem 43 zero - (t*2*S)/(4*s*S - 4) - t*S/(2*(s*S-1)) - C centre of the midpoint circle via Problem 12; was 0 provided +III.P44.a Ch III §1 Problem 44 equal - sqrt(x)*sqrt(y)/(1/(sqrt(x)*sqrt(y))) x*y C slope of IN is z_2 z_3, conj written as reciprocal; was x*y +III.P45.a Ch III §1 Problem 45 zero - (e^(8*pi*i/7) - e^(10*pi*i/7))/(e^(-8*pi*i/7) - e^(-10*pi*i/7)) + e^(4*pi*i/7) - - slope of BC is -alpha^2, alpha = e^(2 pi i/7); was 0 +III.P45.b Ch III §1 Problem 45 zero - e^(2*pi*i/7*9) - e^(2*pi*i/7*2) - - alpha^9 = alpha^2; was 0 +III.P45.c Ch III §1 Problem 45 zero - sum(e^(2*pi*i*k/7), k, 0, 6) - - sum of 7th roots of unity; was 0 +III.P45.d Ch III §1 Problem 45 equal - (a^4 - a^5)/(1/a^4 - 1/a^5) -a^9 C slope of BC with a bare symbol (no a^7 = 1); was -a^9 provided +III.P45.e Ch III §1 Problem 45 equal - abs(e^(i*pi/7)) 1 - a unit complex number; was 1 +III.P45.f Ch III §1 Problem 45 equal - arccos(((1 - e^(8*pi*i/7))*(1 - e^(-10*pi*i/7)) + (1 - e^(-8*pi*i/7))*(1-e^(10*pi*i/7)))/(2*abs(1 - e^(8*pi*i/7))*abs(1-e^(10*pi*i/7))))/pi 1/7 - angle A of (1, alpha^4, alpha^5) over pi; correction of III.E7.a; eval gave 1/7 +III.E1.a Ch III §1 Problem 34, pp. 219-220 erratum - (a^2-b^2)*(a^2-c^2)/(a^2*(b^2+c^2)) / (-(b-c)^2/(b^2+c^2)) 4*i*a*b*c*(i/4)*det([[a, 1/a, 1], [b, 1/b, 1], [c, 1/c, 1]])*(a+b)*(a+c)*(b-c)/(a^2*(b-c)^4) C E1: book prints +4i; true value is -4i a0b0c0(A0B0C0)(a0+b0)(a0+c0)(b0-c0)/(a0^2(b0-c0)^4) +III.E1.b Ch III §1 Problem 34, pp. 219-220 equal - (a^2-b^2)*(a^2-c^2)/(a^2*(b^2+c^2)) / (-(b-c)^2/(b^2+c^2)) -4*i*a*b*c*(i/4)*det([[a, 1/a, 1], [b, 1/b, 1], [c, 1/c, 1]])*(a+b)*(a+c)*(b-c)/(a^2*(b-c)^4) C correction of III.E1.a: the -4i sign +III.E1.c Ch III §1 Problem 34, p. 220 erratum - (a+b)*(a+c)*(b-c) 4*i*a*b*c*(i/4)*det([[-a, 1/-a, 1], [b, 1/b, 1], [c, 1/c, 1]]) C E1: book prints +4i a0b0c0(A0*B0C0), A0* = -a0; true value is -4i a0b0c0(A0*B0C0) +III.E1.d Ch III §1 Problem 34, p. 220 equal - (a+b)*(a+c)*(b-c) -4*i*a*b*c*(i/4)*det([[-a, 1/-a, 1], [b, 1/b, 1], [c, 1/c, 1]]) C correction of III.E1.c +III.E3.a Ch III §1 Problem 38 1°, p. 233 erratum - s/3 + (t/u)/3*t - s - u*((t/u)/3)^2 (2/3)*s + t^2/(3*u) - t^2/(9*u) C E3: printed +(2/3)sigma_1; true numerator is -(2/3)sigma_1 + sigma_2^2/(3sigma_3) - sigma_2^2/(9sigma_3) +III.E4.a Ch III §1 Problem 38 3°, p. 233 erratum - (s/2 + (t/u)/2*t - s - u*((t/u)/2)^2)/((s/2)*((t/u)/2) - 1) (t*(t/u) - 2*v)/(s*(t/u) - 4) C E4: printed 2tau_1 (v here) for 2sigma_1; true value (sigma_2 conj(sigma_1) - 2sigma_1)/(sigma_1 conj(sigma_1) - 4) +III.E5.a Ch III §1 Problem 42, p. 248 erratum - (s/u)^2 - 4*(t/u)*(1/u) s^2/t^2 - 4*t/t^2 C E5: conj(tau0tau1tau2tau3) printed over sigma_2^2; true (sigma_1^2 - 4sigma_2)/sigma_3^2 +III.E5.b Ch III §1 Problem 42, p. 248 equal - (s/u)^2 - 4*(t/u)*(1/u) (s^2 - 4*t)/u^2 C correction of III.E5.a; the book's final form +III.E7.a Ch III §1 Problem 45, p. 251 erratum - arccos(((1 - e^(8*pi*i/7))*(1 - e^(-10*pi*i/7)) + (1 - e^(-8*pi*i/7))*(1-e^(10*pi*i/7)))/(2*abs(1 - e^(8*pi*i/7))*abs(1-e^(10*pi*i/7)))) 2*pi/7 - E7: book says A = 2pi/7; true A = pi/7 (A + 2A + 4A = pi) +III.Ex1.1 Ch III §2 Exercise 1 1° zero - -2*cos(3*pi/13)*cos(9*pi/13) - 2*cos(9*pi/13)*cos(pi/13) - 2*cos(pi/13)*cos(3*pi/13) - 1/2 - - HA'+HB'-HC' = R/2, A = pi/13 (p01); was 0 +III.Ex1.2 Ch III §2 Exercise 1 2° zero - 1 - 8*sin(pi/26)*sin(3*pi/26)*sin(9*pi/26) + 9 - 4*(sin(pi/13)^2 + sin(3*pi/13)^2 + sin(9*pi/13)^2) - 5 - - OI^2 + OH^2 = 5R^2 (p02); was 0 +III.Ex1.3 Ch III §2 Exercise 1 3° zero - 4*(sin(3*pi/13)*sin(9*pi/13) + sin(9*pi/13)*sin(pi/13) + sin(pi/13)*sin(3*pi/13)) - sqrt(13) - - bc + ca + ab = R^2 sqrt(13) (p03); was 0 +III.Ex1.4 Ch III §2 Exercise 1 4° zero - cos(pi/13) + cos(3*pi/13) + cos(9*pi/13) - (1 + sqrt(13))/4 - - sum of cosines (p04); was 0, exact (a 10^-400 offset survived) +III.Ex1.5 Ch III §2 Exercise 1 5° zero - 1 - 8*sin(pi/26)*sin(3*pi/26)*sin(9*pi/26) - (5 - sqrt(13))/2 - - OI^2/R^2 closed form (p05); was 0 +III.Ex1.6 Ch III §2 Exercise 1 6° zero - 4*sin(pi/26)*sin(3*pi/26)*sin(9*pi/26) - (sqrt(13) - 3)/4 - - r/R closed form (p05); was 0 +III.Ex1.7 Ch III §2 Exercise 1 7° zero - 1 - 8*cos(pi/13)*cos(3*pi/13)*cos(9*pi/13) - (5 + sqrt(13))/2 - - OH^2/R^2 closed form (p05); was 0 +III.Ex1.8 Ch III §2 Exercise 1 8° zero - cos(pi/13)*cos(3*pi/13)*cos(9*pi/13) + (3 + sqrt(13))/16 - - product of cosines (p05); was 0 +III.Ex1.9 Ch III §2 Exercise 1 9° zero - sin(pi/13)*sin(3*pi/13)*sin(9*pi/13) - sqrt((13 - 3*sqrt(13))/128) - - product of sines (p05); was 0 +III.Ex1.10 Ch III §2 Exercise 1 10° zero - sin(pi/13) + sin(3*pi/13) + sin(9*pi/13) - sqrt((13 + 3*sqrt(13))/8) - - sum of sines (p05); was 0 +III.Ex1.8.alone Ch III §2 Exercise 1 8° equal - cos(pi/13)*cos(3*pi/13)*cos(9*pi/13) -(3 + sqrt(13))/16 - product of cosines asked alone (p06); was unchanged +III.Ex1.9.alone Ch III §2 Exercise 1 9° equal - sin(pi/13)*sin(3*pi/13)*sin(9*pi/13) sqrt((13 - 3*sqrt(13))/128) - product of sines asked alone (p06); was unchanged +III.Ex1.10.alone Ch III §2 Exercise 1 10° equal - sin(pi/13) + sin(3*pi/13) + sin(9*pi/13) sqrt((13 + 3*sqrt(13))/8) - sum of sines asked alone (p06); was unchanged +III.Ex1.s1 Ch III §2 Exercise 1 solution zero - 4*(cos(2*pi/13)+cos(6*pi/13)+cos(8*pi/13))^2 + 2*(cos(2*pi/13)+cos(6*pi/13)+cos(8*pi/13)) - 3 - - Gauss period x solves 4x^2 + 2x - 3 = 0 (p07); was 0 +III.Ex1.s2 Ch III §2 Exercise 1 solution equal - cos(2*pi/13) + cos(4*pi/13) + cos(6*pi/13) + cos(8*pi/13) + cos(10*pi/13) + cos(12*pi/13) -1/2 - x + y = -1/2, six-cosine sum (p07, written with … in the log); was -1/2 +III.Ex1.s3 Ch III §2 Exercise 1 solution solve x 4*x^2 + 2*x - 3 = 0 { (-1 - sqrt(13))/4, (-1 + sqrt(13))/4 } - the quadratic for the Gauss periods (p08); solve gave (-2 ± 2sqrt(13))/8 unreduced +III.Ex1.c Ch III §2 Exercise 1 complex form equal - (cos(pi/13) + i*sin(pi/13))^26 1 - vertices are 26th roots of unity (p09); was 1 +III.Ex2.1a Ch III §2 Exercise 2 1° zero - ((a+b+c-b*c/a)/2 - (a+c+d-c*d/a)/2)/((1/a+1/b+1/c-a/(b*c))/2 - (1/a+1/c+1/d-a/(c*d))/2) - b*c*d/a - C Langer, (a1-a2)/conj(a1-a2) = bcd/a, conj by hand (p10); was quotient with zero numerator unexpanded +III.Ex2.1b Ch III §2 Exercise 2 1° zero - a*((a+b+c-b*c/a)/2 - (a+c+d-c*d/a)/2) - b*c*d*((1/a+1/b+1/c-a/(b*c))/2 - (1/a+1/c+1/d-a/(c*d))/2) - C same, cross-multiplied (p11); was ((-a + a)*(b + d) + ...)/2, not idempotent: 2nd pass gave 0 +III.Ex2.1c Ch III §2 Exercise 2 1° zero - ((a-c)*(b-d)/(2*a))/((1/a-1/c)*(1/b-1/d)/(2/a)) - b*c*d/a - C same ratio, factored form (p12); was 0 +III.Ex2.1d Ch III §2 Exercise 2 1° zero - ((a*d+b*c)/(2*a))/((1/(a*d)+1/(b*c))*a/2) - b*c*d/a - C same ratio, second factored form (p12); was 0 +III.Ex2.1e Ch III §2 Exercise 2 1° zero - ((a+b+c+d)/2 - (a+b+c-b*c/a)/2) - (a*d+b*c)/(2*a) - C f - a1 = (ad + bc)/(2a) (p13); was 0 +III.Ex2.2 Ch III §2 Exercise 2 2° zero - (a+b+c-b*c/a)/2 - (b+c+d-b*c/d)/2 - (a-d)*(a*d+b*c)/(2*a*d) - C a1 - d1 = (a - d)(ad + bc)/(2ad) (p13); was 0 +III.Ex3 Ch III §2 Exercise 3 zero - (b + c)/a - (1 + c/b)*(b/a) - C cevian ratio, barycentric form (p14); was 0 provided a, b nonzero +III.Ex4.2a Ch III §2 Exercise 4 2° equal - det([[0, 1/(1+l), l/(1+l)], [l/(1+l), 0, 1/(1+l)], [1/(1+l), l/(1+l), 0]]) (l^2 - l + 1)/(l + 1)^2 C oriented-area ratio (p15); det_s gave (1/(l+1))^3 + (l/(l+1))^3 +III.Ex4.2b Ch III §2 Exercise 4 2° equal - (1 + l^3)/(1 + l)^3 (l^2 - l + 1)/(l + 1)^2 C the same ratio (p15); was unchanged, common factor l + 1 not cancelled +III.Ex4.2c Ch III §2 Exercise 4 2° zero - (1 + l^3)/(1 + l)^3 - (l^2 - l + 1)/(l + 1)^2 - C the same ratio as a difference (p15); was unchanged +III.Ex4.3 Ch III §2 Exercise 4 3° zero - ((1/l)^2 - 1/l + 1)/(1/l + 1)^2 - (l^2 - l + 1)/(l + 1)^2 - C Deaux, ratio 1/l gives the same area ratio (p16; needs parallel sides, E1); was 0 +III.Ex6 Ch III §2 Exercise 6 equal - x^3 - (a - x)*(b - x)*(c - x) 2*x^3 - (a + b + c)*x^2 + (a*b + b*c + c*a)*x - a*b*c C Vatricant cubic (p17); expand gave it +III.Ex8.a Ch III §2 Exercise 8 zero - (b + i*(a+b) - i*a)*(1/b - i/a - i/b + i/a) - 2 - C b_a lies on circle (170), conj by hand (p18); was 0 +III.Ex8.b Ch III §2 Exercise 8 zero - (b + i*(a + b)) + a*b*(1/b - i*(1/a + 1/b)) - (a + b) - C b_a lies on AB, conj by hand (p18); was 0 +III.Ex9.a Ch III §2 Exercise 9 equal - det([[0, 0, 1], [2, 2, 1], [2*i, -2*i, 1]]) -8*i - det[z, conj z, 1] on a numeric triangle, gives z0 = 1 + i (p19); was -8i +III.Ex9.b Ch III §2 Exercise 9 equal - det([[z, w, 1], [u, v, 1], [p, q, 1]]) p*(w - v) + q*(u - z) - u*w + v*z C det[z, conj z, 1] with conjugates as symbols (p19); det_s gave this +III.Ex12 Ch III §2 Exercise 12 equal - (2*b^2 + 2*c^2 - a^2)*(b + c)^2 - 4*b*c*((b + c)^2 - a^2) (b - c)^2*(-a^2 + 2*b^2 + 4*b*c + 2*c^2) C m_a = l_a numerator (p21); collapse gave (b^2-2bc+c^2)(...), factor::b refused +III.Ex14.1 Ch III §2 Exercise 14 1° zero - 4*(sin(pi/7)^2+sin(2*pi/7)^2+sin(4*pi/7)^2) - 7 - - heptagonal triangle a^2+b^2+c^2 = 7R^2 (p22); was 0 +III.Ex14.2 Ch III §2 Exercise 14 2° zero - 9 - 4*(sin(pi/7)^2+sin(2*pi/7)^2+sin(4*pi/7)^2) - 2 - - OH^2 = 9R^2 - sum a^2 = 2R^2 (p22, … in the log); was 0 +III.Ex14.cosA Ch III §2 Exercise 14 4°–13° zero - cos(pi/7) - sin(2*pi/7)/(2*sin(pi/7)) - - cos A = b/2a (p22); was 0 +III.Ex14.cosB Ch III §2 Exercise 14 4°–13° zero - cos(2*pi/7) - sin(4*pi/7)/(2*sin(2*pi/7)) - - cos B = c/2b (p22); was 0 +III.Ex14.cosC1 Ch III §2 Exercise 14 4°–13° zero - cos(4*pi/7) - (sin(pi/7) - sin(2*pi/7))/(2*sin(2*pi/7)) - - cos C = (a - b)/2b (p22); was 0 +III.Ex14.cosC2 Ch III §2 Exercise 14 4°–13° zero - cos(4*pi/7) + sin(pi/7)/(2*sin(4*pi/7)) - - cos C = -a/2c (p22); was 0 +III.Ex14.bc1 Ch III §2 Exercise 14 4°–13° zero - sin(2*pi/7)*sin(4*pi/7) - sin(pi/7)*(sin(2*pi/7) + sin(4*pi/7)) - - bc = a(b + c) (p22); was 0 +III.Ex14.bc2 Ch III §2 Exercise 14 4°–13° zero - sin(2*pi/7)*sin(4*pi/7) - (sin(4*pi/7)^2 - sin(pi/7)^2) - - bc = c^2 - a^2 (p22); was 0 +III.Ex14.ac Ch III §2 Exercise 14 4°–13° zero - sin(pi/7)*sin(4*pi/7) - (sin(2*pi/7)^2 - sin(pi/7)^2) - - ac = b^2 - a^2 (p22); was 0 +III.Ex14.psin Ch III §2 Exercise 14 4°–13° zero - sin(pi/7)*sin(2*pi/7)*sin(4*pi/7) - sqrt(7)/8 - - product of sines (p22); was 0 +III.Ex14.scos1 Ch III §2 Exercise 14 4°–13° zero - cos(pi/7) + cos(2*pi/7) + cos(4*pi/7) - (sin(2*pi/7)/sin(pi/7) - 1/2) - - sum of cosines = b/a - 1/2 (p22); was 0 +III.Ex14.scos2 Ch III §2 Exercise 14 4°–13° zero - cos(pi/7) + cos(2*pi/7) + cos(4*pi/7) - (sin(4*pi/7) + sin(pi/7))/(2*(sin(4*pi/7) - sin(pi/7))) - - sum of cosines = (c + a)/(2(c - a)) (p22, left side … in the log); was 0 +III.Ex14.ptan Ch III §2 Exercise 14 4°–13° zero - tan(pi/7)*tan(2*pi/7)*tan(4*pi/7) + sqrt(7) - - product of tangents (p22); was 0 +III.Ex14.pcos.alone Ch III §2 Exercise 14 4°–13° equal - cos(pi/7)*cos(2*pi/7)*cos(4*pi/7) -1/8 - product of cosines asked alone (p22); was -1/8 +III.Ex14.sq.alone Ch III §2 Exercise 14 4°–13° equal - (sin(pi/7)*sin(2*pi/7)*sin(4*pi/7))^2 + (cos(pi/7)*cos(2*pi/7)*cos(4*pi/7))^2 1/8 - asked alone (p22); was 1/8 +III.Ex14.scos2.alone Ch III §2 Exercise 14 4°–13° equal - cos(pi/7)^2 + cos(2*pi/7)^2 + cos(4*pi/7)^2 5/4 - sum of cos^2 asked alone (p22); was 5/4 +III.Ex14.ssin2.alone Ch III §2 Exercise 14 4°–13° equal - sin(pi/7)^2 + sin(2*pi/7)^2 + sin(4*pi/7)^2 7/4 - sum of sin^2 asked alone (p22); was 7/4 +III.Ex14.scc.alone Ch III §2 Exercise 14 4°–13° equal - (cos(2*pi/7)*cos(4*pi/7))^2 + (cos(4*pi/7)*cos(pi/7))^2 + (cos(pi/7)*cos(2*pi/7))^2 3/8 - sum of cos^2 cos^2 asked alone (p22); was 3/8 +III.Ex14.psin.alone Ch III §2 Exercise 14 4°–13° equal - sin(pi/7)*sin(2*pi/7)*sin(4*pi/7) sqrt(7)/8 - product of sines asked alone (p23); was a larger casus-irreducibilis radical form, value right +III.Ex14.ptan.alone Ch III §2 Exercise 14 4°–13° equal - tan(pi/7)*tan(2*pi/7)*tan(4*pi/7) -sqrt(7) - product of tangents asked alone (p23); was a casus-irreducibilis radical form +III.Ex14.14 Ch III §2 Exercise 14 14° zero - 1/sin(pi/7) - 1/sin(2*pi/7) - 1/sin(4*pi/7) - - h_a = h_b + h_c (p22); was 0 +III.Ex14.15 Ch III §2 Exercise 14 15° zero - (sin(2*pi/7)*sin(4*pi/7))^2 + (sin(4*pi/7)*sin(pi/7))^2 + (sin(pi/7)*sin(2*pi/7))^2 - 7/8 - - sum h^2 = sum a^2/2 (p22); was 0 +III.Ex14.16a Ch III §2 Exercise 14 16° zero - sin(4*pi/7)*cos(2*pi/7)*sin(2*pi/7)*cos(4*pi/7) + sin(pi/7)*sin(4*pi/7)/4 - - BA'*A'C = ac/4, signed (p24); was 0 +III.Ex14.16b Ch III §2 Exercise 14 16° zero - sin(pi/7)*cos(4*pi/7)*sin(4*pi/7)*cos(pi/7) + sin(pi/7)*sin(2*pi/7)/4 - - CB'*B'A = ab/4, signed (p24); was 0 +III.Ex14.16.err Ch III §2 Exercise 14 16° erratum - sin(4*pi/7)*cos(pi/7)*sin(pi/7)*cos(2*pi/7) sin(2*pi/7)*sin(4*pi/7)/4 - E5: printed AB'*C'B = bc/4; true difference 0.0470637747676583 (p24) +III.Ex14.16c Ch III §2 Exercise 14 16° zero - sin(2*pi/7)*cos(pi/7)*sin(pi/7)*cos(2*pi/7) - sin(2*pi/7)*sin(4*pi/7)/4 - - AC'*C'B = bc/4; correction of III.Ex14.16.err (p24); was 0 +III.Ex14.17.err Ch III §2 Exercise 14 17° erratum - sin(2*pi/7)*sin(4*pi/7)*(1 - sin(pi/7)^2/(sin(2*pi/7)+sin(4*pi/7))^2) (sin(2*pi/7)^2*sin(pi/7)^2 - sin(pi/7)^4)/(sin(2*pi/7)*sin(4*pi/7)) - E6: printed AQa^2 = (b^2a^2-a^4)/bc; true (b^2c^2-a^4)/bc, difference 0.611260466978157 (p25) +III.Ex14.17 Ch III §2 Exercise 14 17° zero - sin(2*pi/7)*sin(4*pi/7)*(1 - sin(pi/7)^2/(sin(2*pi/7)+sin(4*pi/7))^2) - (sin(2*pi/7)^2*sin(4*pi/7)^2 - sin(pi/7)^4)/(sin(2*pi/7)*sin(4*pi/7)) - - AQa^2 = (b^2c^2 - a^4)/bc; correction of III.Ex14.17.err (p25); was 0 +III.Ex14.18a Ch III §2 Exercise 14 18° zero - sin(pi/7)*sin(4*pi/7)*(1 - sin(2*pi/7)^2/(sin(pi/7)+sin(4*pi/7))^2) - (sin(4*pi/7) - sin(pi/7))^2 - - BQb = c - a (p25); was 0 +III.Ex14.18b Ch III §2 Exercise 14 18° zero - sin(pi/7)*sin(2*pi/7)*(1 - sin(4*pi/7)^2/(sin(pi/7)+sin(2*pi/7))^2) - (sin(2*pi/7) - sin(pi/7))^2 - - CQc = b - a (p25); was 0 +III.Ex14.19 Ch III §2 Exercise 14 19° zero - sin(2*pi/7)*sin(4*pi/7)*(1 - sin(pi/7)^2/(sin(2*pi/7)+sin(4*pi/7))^2) + sin(pi/7)*sin(4*pi/7)*(1 - sin(2*pi/7)^2/(sin(pi/7)+sin(4*pi/7))^2) + sin(pi/7)*sin(2*pi/7)*(1 - sin(4*pi/7)^2/(sin(pi/7)+sin(2*pi/7))^2) - 6*sin(pi/7)^2 - - sum AQ^2 = 6a^2 (p25, sum written out from its terms); was 0 +III.Ex14.20 Ch III §2 Exercise 14 20° zero - 2*sin(2*pi/7)*sin(4*pi/7)*sin(pi/14)/(sin(4*pi/7) - sin(2*pi/7)) - (sin(2*pi/7) + sin(4*pi/7)) - - external bisector AQ'a = b + c (p25); was 0 +III.Ex14.21 Ch III §2 Exercise 14 21° zero - (2*sin(pi/7)*sin(4*pi/7)*sin(pi/7)/(sin(4*pi/7) - sin(pi/7)))^2 - (sin(pi/7)^2 - sin(pi/7)*sin(2*pi/7) + sin(2*pi/7)^2) - - BQ'b^2 = a^2 - ab + b^2 (p25); was 0 +III.Ex14.22 Ch III §2 Exercise 14 22° zero - (2*sin(pi/7)*sin(2*pi/7)*sin(2*pi/7)/(sin(2*pi/7) - sin(pi/7)))^2 - (sin(2*pi/7)^2 + sin(2*pi/7)*sin(4*pi/7) + sin(4*pi/7)^2) - - CQ'c^2 = b^2 + bc + c^2 (p25); was 0 +III.Ex14.24a Ch III §2 Exercise 14 24° zero - sin(pi/7)*sin(2*pi/7)*sin(4*pi/7)/(sin(4*pi/7)^2 - sin(2*pi/7)^2) - sin(4*pi/7) - - Apollonius circle radius = c (p25); was 0 +III.Ex14.24b Ch III §2 Exercise 14 24° zero - sin(pi/7)*sin(2*pi/7)*sin(4*pi/7)/(sin(4*pi/7)^2 - sin(pi/7)^2) - sin(pi/7) - - Apollonius circle radius = a (p25); was 0 +III.Ex14.24c Ch III §2 Exercise 14 24° zero - sin(pi/7)*sin(2*pi/7)*sin(4*pi/7)/(sin(2*pi/7)^2 - sin(pi/7)^2) - sin(2*pi/7) - - Apollonius circle radius = b (p25); was 0 +III.Ex15.a Ch III §2 Exercise 15 zero - (1/2 - sqrt(3)/2*i)*((1/2 + sqrt(3)/2*i)*b + (1/2 - sqrt(3)/2*i)*a) + (1/2 + sqrt(3)/2*i)*((1/2 + sqrt(3)/2*i)*a + (1/2 - sqrt(3)/2*i)*c) - (b + c - a) - C Deaux, conj(alpha) c' + alpha b' = b + c - a, alpha explicit (p26); was 0 +III.Ex15.b Ch III §2 Exercise 15 equal - (1/2 + sqrt(3)/2*i)^3 -1 - alpha is a cube root of -1 (p26); was -1 +III.Ex16 Ch III §2 Exercise 16 equal - sin(y)*cos(x)/(cos(x)*tan(y)*cos(y)) 1 C Ceva product for altitude, median, bisector (p27); was 1 provided cos(x) sin(y), cos(y) nonzero +III.Ex17 Ch III §2 Exercise 17 zero - det([[(q*v + r*w)/(q + r), (q*V + r*W)/(q + r), 1], [(r*w + p*u)/(r + p), (r*W + p*U)/(r + p), 1], [(p*u + q*v)/(p + q), (p*U + q*V)/(p + q), 1]])/(u*(V - W) + v*(W - U) + w*(U - V)) - 2*p*q*r/((q + r)*(r + p)*(p + q)) - C cevian-triangle area ratio, conjugates as symbols (p28); det_s 115 nodes, difference unchanged after 4.5 s +III.Ex18 Ch III §2 Exercise 18 zero - (v - w)*(1/v - 1/w) - (2 - v/w - w/v) - C hint z2 conj z3 + conj z2 z3 = 2 - a^2, conj by hand (p29); was 0 +III.Ex19 Ch III §2 Exercise 19 zero - (u - v)*(1/u - 1/v) - (u - u^2/v)*(1/u - v/u^2) - C z1^2 = z2 z3 gives AB = AC, conj by hand (p30); was 0 +III.Ex20.a Ch III §2 Exercise 20 zero - ((1 - i)*(i + t)/(1 + t))/(1 + i - 2*t/(1 + t)) + ((1 + i)*(1 - i*t)/(t + 1))/(1 - i - 2/(1 + t)) - C a1 satisfies the first orthogonality condition (p31); was 0 +III.Ex20.b Ch III §2 Exercise 20 zero - ((1 - i)*(i + t)/(1 + t) - 2*t/(1 + t))/(1 + i) + ((1 + i)*(1 - i*t)/(t + 1) - 2/(1 + t))/(1 - i) - C a1 satisfies the second orthogonality condition (p31); was 0 +III.Ex20.err Ch III §2 Exercise 20 erratum - 2/(1/t + i) 2*t*i/(t + i) U E8: hint a = 2/(conj(alpha) + i) lost the bar on i; differs (3.40 at alpha = e^(-2.2i)) (p31) +III.Ex20.c Ch III §2 Exercise 20 zero - 2/(1/t - i) - 2*t*i/(t + i) - C correction of III.Ex20.err (p31); was left open: 2/(-i + 1/t) - (2i + 2/(t + i)) +III.Ex22 Ch III §2 Exercise 22 zero - ((z*W - w*Z + Q*(w - z))/(W - Z) - p)/(w - z) + ((Z*w - W*z + p*(W - Z))/(w - z) - Q)/(W - Z) - C reflection p': PP' perpendicular to AB, conjugates as symbols (p32); was 0 +III.Ex23 Ch III §2 Exercise 23 zero - ((z + l*w)/(1 + l) - z)*((Z + W/l)/(1 + 1/l) - Z) - ((z + l*w)/(1 + l) - w)*((Z + W/l)/(1 + 1/l) - W) - C M(l) equidistant from A and B, conj(l) = 1/l (p33); was left unsimplified +III.Ex24 Ch III §2 Exercise 24 zero - (u + v*w/(v + w))/2 - (u*v + v*w + w*u)/(2*(v + w)) - C A1 = s2/(2(z2 + z3)) (p34); was 0 +III.Ex25 Ch III §2 Exercise 25 zero - ((b - a)*(p - c)/(2*p)) / ((1/b - 1/a)*(1/p - 1/c)/(2/p)) - a*b*c/p - C Simson-direction identity, conj by hand (p35); was unchanged after 18.8 s +III.Ex26 Ch III §2 Exercise 26 zero - (t*x/(t - s) + s*y/(s - t)) - ((t^2*x/((t - s)*(t - r)) + s^2*y/((s - t)*(s - r)) + r^2*u/((r - t)*(r - s))) - r*(t*x/((t - s)*(t - r)) + s*y/((s - t)*(s - r)) + r*u/((r - t)*(r - s)))) - C (175) at n = 2, as an equality (p36); was an unreduced partial-fraction sum +III.Ex27 Ch III §2 Exercise 27 1°–2° zero - ((r + s)/2 + i*(s - r)/2 - ((p + q)/2 + i*(q - p)/2)) - i*((s + p)/2 + i*(p - s)/2 - ((q + r)/2 + i*(r - q)/2)) - C square centres form a pseudosquare (p37); was 0 +III.Ex29 Ch III §2 Exercise 29 zero - det([[(a^2*(b + c) - 2*a*b*c)/(a^2 - b*c), (b + c - 2*a)/(b*c - a^2), 1], [(b^2*(c + a) - 2*a*b*c)/(b^2 - c*a), (c + a - 2*b)/(c*a - b^2), 1], [(c^2*(a + b) - 2*a*b*c)/(c^2 - a*b), (a + b - 2*c)/(a*b - c^2), 1]]) - C tangents meet the sides in collinear points, conj by hand (p39); det_s stayed 207 nodes (4.2 s) +III.Ex31 Ch III §2 Exercise 31 zero - det([[(a*c*(b + d) - b*d*(a + c))/(a*c - b*d), ((b + d) - (a + c))/(b*d - a*c), 1], [2*a*d/(a + d), 2/(a + d), 1], [2*b*c/(b + c), 2/(b + c), 1]]) - C P, R, S collinear for a cyclic quadrilateral, conj by hand (p40); det_s stayed 95 nodes (5.2 s) +III.Ex35 Ch III §2 Exercise 35 solve z z^2 + 2*p*z + q = 0 { -p - sqrt(p^2 - q), -p + sqrt(p^2 - q) } C roots of z^2 + 2pz + q (p41); solve gave (-2p ± sqrt((2p)^2 - 4q))/2 +III.Ex36 Ch III §2 Exercise 36 equal - a*(x - b/a)^3 + 3*b*(x - b/a)^2 + 3*c*(x - b/a) + d a*x^3 + 3*(c - b^2/a)*x + d - 3*b*c/a + 2*b^3/a^2 C Tschirnhaus shift kills x^2 (p42); expand left (-3)*1/a*a*b*x^2, simplify did not collect +III.Ex37.1 Ch III §2 Exercise 37 1°–2° zero - ((m + k)/2 + i*(n - j)/2)*(x + i*y) + ((m - k)/2 + i*(n + j)/2)*(x - i*y) - ((m*x + j*y) + i*(n*x + k*y)) - C real affine map as az + b conj z (p43); was 0 +III.Ex37.6a Ch III §2 Exercise 37 6° equal - det([[1 - 2*i - (1 + 2*i), 3 + i, 1], [3 - i - (3 + i), -1 + 4*i, 1], [-1 - 4*i - (-1 + 4*i), 1 + 2*i, 1]]) -14 - 20*i - numerator determinant on a numeric instance (p43); was -14 - 20i +III.Ex37.6b Ch III §2 Exercise 37 6° equal - det([[1 + 2*i, 1 - 2*i, 1], [3 + i, 3 - i, 1], [-1 + 4*i, -1 - 4*i, 1]]) -4*i - denominator det[z, conj z, 1] on the instance (p43); was -4i +IV.1c.d Ch IV §1 I^2 = E equal - apply(lambda(z, k*z/abs(z)^2), apply(lambda(z, k*z/abs(z)^2), w)) w R I^2 = E, complex form, k real; was k^2*w/abs(k*w^2/abs(w)^2)^2 (stuck) +IV.1c.a Ch IV §1 I^2 = E equal - k*(k*x/(x^2+y^2))/((k*x/(x^2+y^2))^2+(k*y/(x^2+y^2))^2) x C involution, real form; was x provided not k^2*(x^4+2*(x*y)^2+y^4) = 0 +IV.1c.b Ch IV §1 I^2 = E equal - k*(k*z/abs(z)^2)/abs(k*z/abs(z)^2)^2 z R involution, complex form, k real; was k^2*z/abs(k*z^2/abs(z)^2)^2 (stuck) +IV.1c.c Ch IV §1 I^2 = E equal - abs(z^2)/abs(z)^2 1 C step of the complex involution; was unchanged +IV.1d.a Ch IV §1 positive inversion; §6 (E6) equal - k*x/(x^2 + (k - x^2)) x C K (x^2+y^2 = k) fixed pointwise; also S0 invariant (erratum E6); was x provided not k = 0 +IV.1g.a Ch IV §1 negative inversion equal - apply(lambda(z, -2*z/abs(z)^2), sqrt(2)*(3+4*i)/5) (-3/5 - 4/5*i)*sqrt(2) - k = -2 sends abs(z) = sqrt(2) to the antipode; was (-3/5 - 4/5*i)*sqrt(2) +IV.1g.b Ch IV §1 negative inversion equal - apply(lambda(z, -2*z/abs(z)^2), 3 + 4*i) -6/25 - 8/25*i - correction of IV.E1: M' = -(positive image); was -6/25 - 8/25*i +IV.E1 Ch IV §1 p. 282 erratum - apply(lambda(z, -2*z/abs(z)^2), 3 + 4*i) 6/25 + 8/25*i - book: M* by the "negative" inversion [O, abs(k)], reflected; true M' = -6/25 - 8/25*i +IV.1n.a Ch IV §1 Remark (motion along a ray) equal - derivative(k/r, r) -k/r^2 C M' approaches O as M recedes; was -k/r^2 +IV.1p.a Ch IV §1 Remark (linear fractional map) zero - (a*z+b)/(c*z+d) - (a/c + ((b*c - a*d)/c^2)/(z + d/c)) - C Mobius decomposition, needs c != 0 (erratum E2); was 0 provided not c^3*(c*z+d)*(d/c+z) = 0 +IV.1p.b Ch IV §1 Remark (linear fractional map) zero - 1/(x + y*i) - (x - y*i)/(x^2+y^2) - C 1/z as inversion then reflection; was 0 provided ... +IV.1p.c Ch IV §1 Remark, footnote equal - abs(1/z)*abs(z) 1 C abs(z2)*abs(z1) = 1; was 1 provided not z = 0 +IV.2.2.a Ch IV §2 Problem 2 I (Ptolemy) zero - (BC/(AB*AC) + CD/(AC*AD) - BD/(AB*AD))*AB*AC*AD - (BC*AD + CD*AB - BD*AC) - C Ptolemy via inversion [A, 1] and Problem 1; was 0 provided ... +IV.2.2.b Ch IV §2 Problem 2 I (Ptolemy) zero - (a - c)*(b - d) - ((a - b)*(c - d) + (b - c)*(a - d)) - C Ptolemy algebraic core; was 0 +IV.2.2.c Ch IV §2 Problem 2 I (Ptolemy) zero - 2*sqrt(18/5) - sqrt(2)*sqrt(16/5) - sqrt(2)*sqrt(4/5) - - Ptolemy on a unit-circle quadrilateral; was 0 +IV.2.3.a Ch IV §2 Problem 3 (Pompeiu) zero - -2*sin(u) + 2*sin(u + pi/3) - 2*sin(pi/3 - u) - C OB = OA + OC for O on the arc (with erratum E3 fixed); was 0 +IV.2.4.a Ch IV §2 Problem 4 solve a a^2 + (P - Q)^2 = (P + Q)^2 { 2*sqrt(P*Q), -2*sqrt(P*Q) } P tangency of two circles on a line; was +-sqrt(-((P-Q)^2 + -(P+Q)^2)) +IV.2.4.b Ch IV §2 Problem 4 equal - sqrt(-((P - Q)^2 + -(P + Q)^2)) 2*sqrt(P*Q) P the solve answer simplified; was sqrt(4*P*Q), radical not pulled out +IV.2.4.c Ch IV §2 Problem 4 equal - 4*P*Q/(2*P) 2*Q C image line at the diameter of C2; was 2*Q provided not P = 0 +IV.2.5.a Ch IV §2 Problem 5 equal - (3 - sqrt(3))*(3 + sqrt(3)) 6 - power of C = (1, 3) w.r.t. C1, C2; was 6 +IV.2.6.a Ch IV §2 Problem 6 (Euler) solve d r/(2*R) = r^2/(R^2 - d^2) { sqrt(R^2 - 2*R*r), -sqrt(R^2 - 2*R*r) } P d^2 = R^2 - 2Rr; was { sqrt(R^2 - r^2/(r/(2*R))), -... } +IV.2.6.b Ch IV §2 Problem 6 (Euler) equal - sqrt(R^2 - r^2/(r/(2*R))) sqrt(R^2 - 2*R*r) P the solve answer simplified; was sqrt(R^2 - 2*R*r) provided not r = 0 +IV.2.6.c Ch IV §2 Problem 6 (Euler) zero - (2 - 1)^2 + (3/2 - 1)^2 - ((5/2)^2 - 2*(5/2)*1) - - Euler on the 3-4-5 triangle, O = (2, 3/2), I = (1, 1); was 0 +IV.2.7.a Ch IV §2 Problem 7 equal - (2/(3 - 2*sqrt(2)) + 2/(3 + 2*sqrt(2)))/2 6 - projection of O is the midpoint of the tangency projections; was 6 +IV.2.8.a Ch IV §2 Problem 8 zero - (-3 + 2*sqrt(2))*32/((3 - 2*sqrt(2))^2 - 1) - 4*sqrt(2) - - common centre of the concentric images, 4*sqrt(2) from A; was 0 +IV.2.10.a Ch IV §2 Problem 10 (Feuerbach) zero - sqrt((1 - 1)^2 + (3/4 - 1)^2) - (5/4 - 1) - - nine-point circle touches the incircle, 3-4-5 triangle; was 0 +IV.2.10.b Ch IV §2 Problem 10 (Feuerbach) zero - sqrt((1 + 2)^2 + (3/4 - 2)^2) - (5/4 + 2) - - nine-point circle touches the excircle I_a; was 0 +IV.2.10.c Ch IV §2 Problem 10 (Feuerbach) zero - (3/2 - 4/3)*(3/2) - (3/2 - 1)^2 - - A'Q*A'A'' = A'R^2; was 0 +IV.2.10.d Ch IV §2 Problem 10 (Feuerbach) equal - apply(lambda(a, b, c, d, ((c - a)*(d - b))/((c - b)*(d - a))), 4, 0, 1, -2) -1 - harmonic set: cross ratio -1; was -1 +IV.3.6.a Ch IV §3 Problem 6 equal - 1/(2 - sqrt(3)) 2 + sqrt(3) - near arc of C goes to its far arc, not to K (erratum E10); was 2 + sqrt(3) +IV.3.11.a Ch IV §3 Problem 11 zero - (sin(t)/(1+cos(t)))^2 - (1 - 2*cos(t)/(1+cos(t))) - C cardioid image is y^2 = 1 - 2x; was unchanged, also at level 6 +IV.3.12.a Ch IV §3 Problem 12 solve c 3/2 + c = 1/(3/2 + c) { -1/2, -5/2 } - limacon meets the ellipse where cos t = -1/2; was { -1/2, -5/2 } +IV.3.14.a Ch IV §3 Problem 14 zero - 2*(cos(t)/(2*sin(t)^2)*sin(t))^2 - cos(t)/(2*sin(t)^2)*cos(t) - C cissoid image is 2y^2 = x; was 0 provided not sin(t) = 0 +IV.3.14.c Ch IV §3 Problem 14 equal - limitleft(2*sin(t)^2, t, pi/2) 2 - cissoid asymptote x = 2; was 2 +IV.4.1.a Ch IV §4 Peaucellier cell zero - (sqrt(OP^2-SP^2) + sqrt(PM^2-SP^2))*(sqrt(OP^2-SP^2) - sqrt(PM^2-SP^2)) - (OP^2 - PM^2) - C OM*OM' = OP^2 - PM^2; was 0 +IV.4.2.a Ch IV §4 Hart cell zero - ((a-b)^2 + h^2) + (2*b)*(2*a) - ((a+b)^2 + h^2) - C Ptolemy for the isosceles trapezoid; was 0 +IV.4.2.b Ch IV §4 Hart cell zero - (2*l*b)*(2*(1-l)*a) - l*(1-l)*(((a+b)^2+h^2) - ((a-b)^2+h^2)) - C OM*OM' constant with O at fraction l of AB; was 0 +IV.5.2.a Ch IV §5 Problem 2 1° solve x (x-1/4)^2+15/16-1 = 0 { 0, 1/2 } - inverse of M = (2, 0) in the unit circle is (1/2, 0); was { 0, 1/2 } exactly +IV.5.9.a Ch IV §5 Problem 9 equal - sqrt((1 + 1/sqrt(2))^2 + (1 - 1/sqrt(2))^2) sqrt(3) - correction of IV.E5: AQ = AB*sqrt(3); was sqrt(3) +IV.5.9.b Ch IV §5 Problem 9 equal - sqrt((1/sqrt(2))^2 + (1/sqrt(2))^2) 1 - correction of IV.E5: PQ = AB; was 1 +IV.E5 Ch IV §5 Problem 9 p. 313 erratum - sqrt((1/sqrt(2))^2 + (1/sqrt(2))^2) sqrt(3) - book: PQ = AB*sqrt(3); true PQ = 1 = AB (it is AQ that is sqrt(3)) +IV.6.5.a Ch IV §6 stereographic projection zero - 4/(2*z - z^2 + (z-2)^2) - 2/(2-z) - C inversion factor = projection factor on the sphere; was 0 provided not z - 2 = 0 +IV.6.12.a Ch IV §6 parallels near the equator zero - tan(pi/4 - t/2) - cot(pi/4 + t/2) - C cofunction; was unchanged +IV.6.12.b Ch IV §6 parallels near the equator zero - cot(pi/4 + t/2) - (1 - sin(t))/cos(t) - C x = cot(pi/4 + t/2) = (1 - sin t)/cos t; was unchanged +IV.6.12.c Ch IV §6 parallels near the equator zero - cot(a) + cot(b) - sin(a+b)/(sin(a)*sin(b)) - C sum of cotangents; was 0 provided ... +IV.6.12.d Ch IV §6 parallels near the equator zero - 2*sin(a)*sin(b) - cos(a-b) + cos(a+b) - C product-to-sum; was unchanged +IV.6.12.e Ch IV §6 parallels near the equator zero - cos(t)^2 - (1 - sin(t))*(1 + sin(t)) - C Pythagorean step; was 0 +IV.6.13.a Ch IV §6 Remark (derivatives) equal - derivative(cot(pi/4 + t/2), t) -1/(2*sin(pi/4 + t/2)^2) C x'; was -1/2/sin(pi/4 + t/2)^2 +IV.6.13.b Ch IV §6 Remark (derivatives) equal - sin(2*(pi/4 + t/2))/(cos(t/2) + sin(t/2))^4 cos(pi/4 + t/2)/(2*sin(pi/4 + t/2)^3) C x'' as the library gave it vs the book's form; was difference 0 provided ... +IV.6.14.a Ch IV §6 east/west maps zero - 1/sin(t) - cot(t) - tan(t/2) - C y = cosec t - cot t = tan(t/2); was unchanged +IV.6.15.a Ch IV §6 parallels near the poles zero - tan(a) + tan(b) - sin(a+b)/(cos(a)*cos(b)) - C sum of tangents; was 0 provided ... +IV.6.15.b Ch IV §6 parallels near the poles zero - 2*cos(a)*cos(b) - cos(a+b) - cos(a-b) - C product-to-sum; was unchanged +IV.6.16.a Ch IV §6 Remark (derivatives) equal - derivative(tan(t/2), t) 1/(2*cos(t/2)^2) C y'; was 1/2/cos(t/2)^2 +IV.6.16.b Ch IV §6 Remark (derivatives) equal - 1/4*sin(t)/cos(t/2)^4 sin(t/2)/(2*cos(t/2)^3) C y'' as the library gave it vs the book's form; Simplify does not show it +V.D1.a Ch V §1 formula (1), p. 334 equal - det([[a_1, b_1, c_1], [a_2, b_2, c_2], [a_3, b_3, c_3]]) a_1 * (b_2 * c_3 + -b_3 * c_2) + a_2 * b_3 * c_1 - a_2 * b_1 * c_3 + a_3 * b_1 * c_2 - a_3 * b_2 * c_1 C 3x3 determinant expansion; det_s gave this polynomial, det(...) parsed as a product at 725481ca4 +V.D2.a Ch V §1 property 1°, p. 334 equal - det([[a_1, a_2, a_3], [b_1, b_2, b_3], [c_1, c_2, c_3]]) a_1 * (b_2 * c_3 + -b_3 * c_2) + a_2 * b_3 * c_1 - a_2 * b_1 * c_3 + a_3 * b_1 * c_2 - a_3 * b_2 * c_1 C determinant unchanged by transposition; det_s printed the same polynomial +V.D4.a Ch V §1 property 3°, p. 335 zero - det([[a_1, a_1, c_1], [a_2, a_2, c_2], [a_3, a_3, c_3]]) - C two equal columns; det_s gave 0 +V.D5.a Ch V §1 property 4°, p. 335 zero - det([[0, b_1, c_1], [0, b_2, c_2], [0, b_3, c_3]]) - C zero column; det_s gave 0 +V.D12.a Ch V §1 cofactors, p. 336 zero - a_1*(a_3*c_2 - a_2*c_3) + a_2*(a_1*c_3 - a_3*c_1) + a_3*(a_2*c_1 - a_1*c_2) - C elements times cofactors of another column sum to 0; was 0 +V.D12.b Ch V §1 cofactors, p. 336 zero - a_1*(b_3*c_1 - b_1*c_3) + b_1*(a_1*c_3 - a_3*c_1) + c_1*(a_3*b_1 - a_1*b_3) - C row form of the alien-cofactor relation; was 0 +V.V3.a Ch V §2 magnitude, p. 337 equal - abs([3, 4]) 5 - length of a vector; was 5 +V.V3.b Ch V §2 magnitude, p. 337 equal - abs([x, y]) sqrt(x^2 + y^2) R length in components; was sqrt(x ^ 2 + y ^ 2) +V.V7.a Ch V §2 vector sum, p. 337 equal - [a_1, a_2] + [b_1, b_2] - ([b_1, b_2] + [a_1, a_2]) [0, 0] C commutativity of the vector sum; was [0, 0] +V.V9.a Ch V §2 scalar multiple, p. 338 equal - l*([a_1, a_2] + [b_1, b_2]) - l*[a_1, a_2] - l*[b_1, b_2] [0, 0] C distributivity of lambda over the vector sum; was [0, 0] +V.V17.a Ch V §2 collinearity det, p. 340 zero - det([[x, y], [l*x, l*y]]) - C collinear plane vectors give a zero 2x2 det; det_s gave 0 +V.V20.a Ch V §2 scalar product, p. 340 equal - [1, 2]T * [3, 4] 11 - dot product of literals; was 11 +V.V21.a Ch V §2 scalar square, p. 340 equal - abs([1, 2])^2 5 - the book's a^2 as abs(a)^2; was 5 ([1, 2]^2 is elementwise) +V.V22.a Ch V §2 dot in orthonormal basis, p. 340 equal - [a_1, a_2]T * [b_1, b_2] a_1 * b_1 + a_2 * b_2 C ab = xx' + yy'; was a_1 * b_1 + a_2 * b_2 +V.V23.a Ch V §2 dot in arbitrary basis, pp. 340-341 equal - [x, y]T * [[g_11, g_12], [g_12, g_22]] * [u, v] u * (g_11 * x + g_12 * y) + v * (g_12 * x + g_22 * y) C metric form of the dot product; was this form +V.V27.a Ch V §2 oriented angle, p. 342 equal - arccos(([1, 0]T * [1, 1]) / (abs([1, 0]) * abs([1, 1]))) pi / 4 - angle from cos = ab/(|a||b|); was pi / 4 +V.V28.a Ch V §2 Gram determinant, p. 342 zero - (p^2 + q^2)*(r^2 + s^2) - (p*r + q*s)^2 - (p*s - q*r)^2 - C g = (e1, e2)^2 for e1 = [p, q], e2 = [r, s]; was 0 +V.V29.a Ch V §2 rotation a_phi, pp. 342-343 equal - [[cos(t), -sin(t)], [sin(t), cos(t)]] * [x, y] [x * cos(t) + -y * sin(t), y * cos(t) + x * sin(t)] C coordinates of a rotated vector; was this form +V.V29.b Ch V §2 (a, b) = [a]b, p. 343 zero - [-a_2, a_1]T * [b_1, b_2] - (a_1*b_2 - a_2*b_1) - C pseudoscalar as the dot with the rotated vector; was 0 +V.V30.a Ch V §2 pseudoscalar, arbitrary basis, p. 343 zero - (x*p + y*r)*(u*q + v*s) - (x*q + y*s)*(u*p + v*r) - (p*s - q*r)*(x*v - y*u) - C (a, b) = sqrt(g) * det of components; was 0 +V.V31.a Ch V §2 dual basis, p. 343 equal - [-s, r]T * [p, q] / (r*q - s*p) 1 C e1 dot e^1 = 1; was 1 provided not p * s - q * r = 0 +V.V31.b Ch V §2 dual basis, p. 343 zero - [-s, r]T * [r, s] / (r*q - s*p) - C e2 dot e^1 = 0 (V31.a with [r, s]); was 0 provided not ... = 0 +V.V31.c Ch V §2 Gram inverse g^ij, p. 343 equal - [[0, b], [b, d]]^(-1) [[-d / b^2, 1 / b], [1 / b, 0]] C inverse Gram matrix; was this with provided not b = 0 on one entry only +V.G4.a Ch V §3 segment length, p. 348 equal - abs([x_2, y_2] - [x_1, y_1]) sqrt((x_2 - x_1)^2 + (y_2 - y_1)^2) R distance between two points; was this form +V.G6.a Ch V §3 polar coordinates, p. 349 equal - sqrt((r*cos(t))^2 + (r*sin(t))^2) r P rho from x = rho cos phi, y = rho sin phi; was unchanged, AM_REAL too +V.G7.a Ch V §3 division ratio, pp. 349-350 equal - ([x_1, y_1] + l*[x_2, y_2])/(1 + l) - [x_1, y_1] - l*([x_2, y_2] - ([x_1, y_1] + l*[x_2, y_2])/(1 + l)) [0, 0] C M1M = l*MM2 for r = (r1 + l r2)/(1 + l); was [0, 0] each provided not 1 + l = 0 +V.G8.a Ch V §3 collinear points, p. 350 zero - det([[x_1 - x_3, y_1 - y_3], [x_2 - x_3, y_2 - y_3]]) - det([[x_1, y_1, 1], [x_2, y_2, 1], [x_3, y_3, 1]]) - C 2x2 and 3x3 collinearity dets agree; det_s printed the same polynomial +V.G11.a Ch V §3 oriented area, pp. 350-351 equal - det([[0, 0, 1], [1, 0, 1], [0, 1, 1]]) 1 - twice the area of (0,0), (1,0), (0,1); det_s gave 1 +V.G15.a Ch V §3 area in space, p. 354 equal - 1/2*abs([0*(-1) - (-1)*1, (-1)*0 - 1*(-1), 1*1 - 0*0]) sqrt(3) / 2 - area via the cross product in components; was sqrt(3) / 2 +V.G19.a Ch V §3 line through a point with direction, p. 355 equal - det([[x - x_1, y - y_1], [l, m]]) l * (y_1 - y) + m * (x - x_1) C det form of the line equation; det_s gave this form +V.G22.a Ch V §3 line through two points, p. 357 equal - det([[x, y, 1], [x_1, y_1, 1], [x_2, y_2, 1]]) x_1 * (y_2 - y) + x_2 * (y - y_1) + x * (y_1 - y_2) C 3x3 det form; det_s gave this form +V.G25.a Ch V §3 pencil of lines, p. 358 zero - det([[1, 1, -2], [1, -1, 0], [2, -1, -1]]) - - three lines through (1, 1) have zero coefficient det; det_s gave 0 +V.G27.a Ch V §3 angle from slopes, p. 360 zero - (tan(b) - tan(a))/(1 + tan(a)*tan(b)) - tan(b - a) - C tan of the angle between lines; was unchanged +V.G27.b Ch V §3 perpendicular iff 1 + kk' = 0, p. 360 solve k_2 k_1*k_2 = -1 { (-1) / k_1 } C perpendicular slope; was { (-1) / k_1 } +V.G28.a Ch V §3 point-line distance, p. 360 equal - abs(3*1 + 4*1 - 2)/abs([3, 4]) 1 - |Ax0 + By0 + C|/sqrt(A^2 + B^2); was 1 +V.G28.b Ch V §3 point-line distance derivation, pp. 360-361 zero - A*(x_0 - A*(A*x_0 + B*y_0 + C)/(A^2 + B^2)) + B*(y_0 - B*(A*x_0 + B*y_0 + C)/(A^2 + B^2)) + C - C foot of the perpendicular lies on the line; was unchanged (collapse too) +V.G29.a Ch V §3 area from side equations, pp. 362-363 equal - det([[1, 1, -1], [1, 0, 0], [0, 1, 0]]) -1 - coefficient det of x + y - 1, x, y; det_s gave -1 +V.G29.b Ch V §3 area from side equations, pp. 362-363 equal - 1/2 * (-1)^2 / ((1*1 - 0*0) * (0*1 - 1*1) * (1*0 - 1*1)) 1/2 - oriented area of (0,0), (1,0), (0,1) from its sides; was 1/2 +V.G38.a Ch V §3 two planes, pp. 366-367 zero - A*(B*F - C*E) + B*(C*D - A*F) + C*(A*E - B*D) - C direction of the common line is orthogonal to the first normal; was 0 +V.G38.b Ch V §3 two planes, pp. 366-367 zero - D*(B*F - C*E) + E*(C*D - A*F) + F*(A*E - B*D) - C same with the second normal (D, E, F); was 0 +V.G41.a Ch V §3 point-plane distance, p. 368 equal - abs(1*0 + 2*0 + 2*0 - 6)/abs([1, 2, 2]) 2 - origin to x + 2y + 2z - 6 = 0; was 2 +V.G42.a Ch V §3 angle between planes, p. 370 equal - arccos(abs([1, 2, 2]T * [2, -1, 0])/(abs([1, 2, 2])*abs([2, -1, 0]))) pi / 2 - angle between normals; was pi / 2 +V.G49.a Ch V §3 line meets plane, p. 374 solve t 1*(1 + 2*t) + 2*(0 + 1*t) + 2*(0 + 0*t) - 6 = 0 { 5/4 } - parameter of the intersection point; was { 5/4 } +V.G50.a Ch V §3 angle line-plane, pp. 374-375 equal - arcsin(abs([1, 0, 1]T * [0, 0, 1])/(abs([1, 0, 1])*abs([0, 0, 1]))) pi / 4 - sin phi = |an|/(|a||n|); was pi / 4 +V.G53.a Ch V §3 power of a point, p. 376 equal - ((x_0 - a)^2 + (y_0 - b)^2 - r^2)/(cos(u)^2 + sin(u)^2) (x_0 - a)^2 + (y_0 - b)^2 - r^2 C Vieta product on a chord through M is sigma; was this form +V.C1.a Ch V §4 complex product, p. 377 equal - (x + y*i)*(u + v*i) u * x + i * v * x + i * u * y + -v * y C product of x + yi and u + vi; expand gave this form +V.C3.a Ch V §4 modulus, p. 377 equal - abs(3 + 4*i) 5 - |3 + 4i|; was 5 +V.C3.b Ch V §4 modulus, p. 377 equal - abs(x + y*i) sqrt(x^2 + y^2) R |z| = sqrt(x^2 + y^2) for real x, y; was unchanged, AM_REAL too +V.C7.a Ch V §4 product in trig form, p. 378 zero - (cos(a) + i*sin(a))*(cos(b) + i*sin(b)) - (cos(a + b) + i*sin(a + b)) - C arguments add under multiplication; was unchanged +V.C7.b Ch V §4 |z/z'|, p. 378 zero - abs((1 + 2*i)/(3 - i)) - abs(1 + 2*i)/abs(3 - i) - - modulus of a quotient; was 0 +V.C8.a Ch V §4 de Moivre, p. 379 zero - (cos(t) + i*sin(t))^3 - (cos(3*t) + i*sin(3*t)) - C de Moivre for n = 3; was 0 +V.C9.a Ch V §4 nth roots, p. 379 solve z z^4 = -1 { (-1)^(1/4), i * (-1)^(1/4), -(-1)^(1/4), (-i) * (-1)^(1/4) } - four fourth roots of -1; was this set +V.C12.a Ch V §4 area by affixes, p. 379 equal - det([[0, 0, 1], [1, 1, 1], [i, -i, 1]]) -2*i - det[z conj(z) 1] for 0, 1, i (conjugates by hand); det_s gave -2i +V.C12.b Ch V §4 area by affixes, p. 379 equal - i/4*det([[0, 0, 1], [1, 1, 1], [i, -i, 1]]) 1/2 - (ABC) = (i/4) det for 0, 1, i; reading: -2i times i/4 is 1/2 +V.C13.a Ch V §4 similarities, p. 380 zero - apply(lambda(z, k*(z - o) + o), apply(lambda(z, m*(z - o) + o), w)) - (k*m*(w - o) + o) - C homotheties with one centre compose; was 0 +V.C14.a Ch V §4 similar triangles, p. 380 zero - det([[0, 2, 1], [1, 3 + i, 1], [i, 1 + i, 1]]) - - same orientation, u = (1+i)z + 2; det_s gave 0 +V.C14.b Ch V §4 similar triangles, p. 380 zero - det([[0, 2, 1], [1, 3 + i, 1], [-i, 3 - i, 1]]) - - opposite orientation, u = (1+i)conj(z) + 2; det_s gave 0 +V.C14.c Ch V §4 similar triangles, p. 380 equal - det([[0, 2, 1], [1, 3 + i, 1], [i, 3 - i, 1]]) 2 - 2*i - same-orientation test on the opposite pair is nonzero; det_s gave 2 - 2i +V.C15.a Ch V §4 line through two points, p. 381 equal - det([[x + y*i, x - y*i, 1], [0, 0, 1], [1 + i, 1 - i, 1]]) 2*i*x + (-2*i)*y C line through 0 and 1 + i (y = x); det_s gave 2i * x + (-2i) * y +V.C15.b Ch V §4 complex slope, p. 381 equal - (1 + i)/(1 - i) i - slope of the line through 0 and 1 + i; was i +V.C15.c Ch V §4 |slope| = 1, p. 381 equal - abs((2 + 3*i)/(2 - 3*i)) 1 - complex slope has modulus 1; was 1 +V.C16.a Ch V §4 z = kappa conj(z), p. 382 zero - sqrt(i) - i*(1 - i)/sqrt(2) - - kappa = i meets the unit circle at sqrt(i); was 0 +V.C18.a Ch V §4 perpendicular iff kappa + kappa' = 0, p. 382 zero - 1/1 + i/(-i) - - x-axis and y-axis slopes sum to 0; was 0 +V.C19.a Ch V §4 remark, p. 383 zero - (1 - e^(i*t))/(1 + e^(i*t)) + i*tan(t/2) - C (1 - kappa)/(1 + kappa) = -i tan(phi/2); was unchanged +V.C19.b Ch V §4 remark, p. 383 zero - (1 - (cos(t) + i*sin(t)))/(1 + (cos(t) + i*sin(t))) + i*tan(t/2) - C C19.a with cos(t) + i*sin(t); was unchanged +V.C19.c Ch V §4 remark, p. 383 equal - i*(1 - (i - k)/(i + k))/(1 + (i - k)/(i + k)) k C k = i(1 - kappa)/(1 + kappa) at kappa = (i - k)/(i + k); was (k + i) * (2 + (-2i) / (k + i)) / 2 +V.C21.a Ch V §4 self-conjugate line equation, p. 384 equal - (P - Q*i)*(x + y*i) + (P + Q*i)*(x - y*i) 2 * P * x + 2 * Q * y C A z + conj(A) conj(z) in rectangular form; expand gave this +V.C22.a Ch V §4 distance to a line, p. 385 zero - sqrt(2)/2 - 1/abs(1 - i) - - distance from 0 to x + y - 1 = 0 by |Az0 + Bz0bar + C|/(2|A|); was 0 +V.C22.b Ch V §4 distance to a line, p. 385 equal - abs(-2)/(2*abs(1 - i)) sqrt(2)/2 - same distance, A = 1 - i, C = -2, z0 = 0; was 1 / abs(1 - i) +V.C23.a Ch V §4 half-planes, p. 386 equal - (1 - i)*(1 + (1 + i)) + (1 + i)*(1 + (1 - i)) - 2 4 - value at z0 + B is 2|B|^2 = 4; was 4 +V.C24.a Ch V §4 area from side equations, p. 386 equal - det([[1 - i, 1 + i, -2], [1, 1, 0], [-i, i, 0]]) -4*i - coefficient det for the triangle 0, 1, i; det_s gave -4i +V.C24.b Ch V §4 area from side equations, p. 386 equal - i/4*(-4*i)^2/((2*i)*(-2*i)*(-2*i)) 1/2 - (i/4) Delta^2 / product of minors 2i, -2i, -2i; was 1/2 +V.L.crossratio Ch V List of symbols, cross ratio, p. 389 equal - ((2 - 0)/(2 - 1)) / ((3 - 0)/(3 - 1)) 4/3 - cross ratio of affixes 0, 1, 2, 3; was 4/3 +V.A1.a Appendix 1, p. 390 solve x x^2 + p*x + q = 0 { (-p - sqrt(p^2 - 4*q)) / 2, (-p + sqrt(p^2 - 4*q)) / 2 } C roots of the reduced quadratic; was this set +V.A1.b Appendix 1, p. 390 solve x a*x^2 + 2*k*x + c = 0 { (-k - sqrt(k^2 - a*c)) / a, (-k + sqrt(k^2 - a*c)) / a } C the 2k form; was (-2 * k ± sqrt((2 * k) ^ 2 - 4 * a * c)) / (2 * a), unreduced +V.A2.a Appendix 2, p. 390 equal - (-p - sqrt(p^2 - 4*q)) / 2 + (-p + sqrt(p^2 - 4*q)) / 2 -p C Vieta: sum of A1.a's roots; was -p +V.A2.b Appendix 2, p. 390 equal - (-p - sqrt(p^2 - 4*q)) / 2 * ((-p + sqrt(p^2 - 4*q)) / 2) q C Vieta: product of A1.a's roots; was q +V.A3.a Appendix 3, p. 390 equal - x^2 - 5*x + 6 (x - 3) * (x - 2) C factor through the roots; collapse gave (x - 3) * (x - 2) +V.A7.a Appendix 7, p. 391 equal - log(a, 1) 0 P log of 1; was 0 provided not a = 1 +V.A7.b Appendix 7, p. 391 equal - log(a, a) 1 P log of the base; was 1 provided ... +V.A7.c Appendix 7, p. 391 equal - a^log(a, N) N P definition of the logarithm; was N provided ... +V.A8.a Appendix 8 relationship 7, p. 391 zero - 1 + tan(a)^2 - sec(a)^2 - C 1 + tan^2 = sec^2; was unchanged +V.A8.b Appendix 8, p. 391 zero - 1 + cot(a)^2 - cosec(a)^2 - C 1 + cot^2 = cosec^2; was 0 provided not sin(a) = 0 +V.A9.a Appendix 9 table of values, p. 391 equal - sin(pi/6) 1/2 - was 1/2 +V.A9.b Appendix 9 table of values, p. 391 equal - cos(pi/6) sqrt(3) / 2 - was sqrt(3) / 2 +V.A9.c Appendix 9 table of values, p. 391 equal - tan(pi/3) sqrt(3) - was sqrt(3) +V.A9.d Appendix 9 table of values, p. 391 equal - cot(pi/3) sqrt(3) / 3 - was sqrt(3) / 3 +V.A9.e Appendix 9 table of values, p. 391 equal - sin(3*pi/2) -1 - was -1 +V.A10.a Appendix 10 reduction formulas, p. 392 equal - sin(pi/2 - a) cos(a) C was cos(a) +V.A10.b Appendix 10 reduction formulas, p. 392 equal - sin(3*pi/2 + a) -cos(a) C was -cos(a) +V.A10.c Appendix 10 reduction formulas, p. 392 equal - cos(pi/2 + a) -sin(a) C was unchanged +V.A10.d Appendix 10 reduction formulas, p. 392 equal - tan(pi - a) -tan(a) C was unchanged +V.A10.e Appendix 10 reduction formulas, p. 392 equal - cot(3*pi/2 - a) tan(a) C was unchanged +V.A11.1.a Appendix 11.1 addition formulas, p. 392 zero - sin(s + t) - (sin(s)*cos(t) + cos(s)*sin(t)) - C sin addition; was 0 +V.A11.3.a Appendix 11.3 half-angle, p. 392 zero - sin(a/2)^2 - (1 - cos(a))/2 - C half-angle sin^2; was unchanged +V.A11.5.a Appendix 11.5, p. 392 zero - cos(a)^2 - (1 + cos(2*a))/2 - C power reduction; was unchanged +V.A11.6.a Appendix 11.6, p. 392 zero - tan(a) + tan(b) - sin(a + b)/(cos(a)*cos(b)) - C tan a + tan b; was 0 provided ... +V.A12.a Appendix 12, p. 393 equal - sin(arcsin(x)) x C was x +V.A12.b Appendix 12, p. 393 equal - cot(arccotan(x)) x C was x +V.A12.c Appendix 12, p. 393 equal - arccotan(-1) + pi*iverson(-1 < 0) 3/4 * pi - book's arccot(-1) in (0, pi) from the library's (-pi/2, pi/2] value; was 3/4 * pi +V.A13.a Appendix 13, p. 393 solve x sin(x) = a { arcsin(a) + 2 * pi * n_1, pi - arcsin(a) + 2 * pi * n_1 } C general solution, n_1 an integer (not stated in the set); was this set +V.E1 Ch V §1 formula (1), p. 334 (E1) erratum - det([[0, 0, 1], [0, 1, 0], [1, 0, 0]]) 1 - book's six-term sum has +a3*b2*c1, giving 1; true det is -1 +V.E1.c Ch V §1 formula (1), p. 334 (E1) equal - det([[0, 0, 1], [0, 1, 0], [1, 0, 0]]) -1 - correction of V.E1; det_s gave -1 +V.E2 Ch V §2 collinearity det, p. 340 (E2) erratum - det([[1, 2], [2, 4]]) 1*4 - 1*2 - book's first row 'x x' gives 2 for collinear {1,2}, {2,4}; true 0 +V.E3 Ch V §2 pseudoscalar definition, p. 341 (E3) erratum - [1, 0]T * [2, 0] 0 - book: a || b gives ab = 0; the dot is 2, it is (a, b) that is 0 +V.E3.c Ch V §2 pseudoscalar definition, p. 341 (E3) zero - det([[1, 0], [2, 0]]) - - correction of V.E3: pseudoscalar of collinear vectors is 0 +V.E4 Ch V §2 dot in arbitrary basis, p. 341 (E4) erratum - abs([0, 2, 0])^2 0 - a = b = e2 = (0,2,0): book's g12*y*y' term gives 0; true g22 = 4 +V.E5 Ch V §2 dual basis, p. 343 (E5) erratum - [1, 0]T * [0, 1] 1 - a = {1,0}, b* = {0,1}: book prints (a, b*) = 1; true a.b* = 0 +V.E5.c Ch V §2 dual basis, p. 343 (E5) equal - [1, 1]T * [0, 1] 1 - correction of V.E5: b.b* = 1 for b = {1,1}; was 1 +V.E8 Ch V §3 segment length, p. 348 (E8) erratum - abs([3, 4] - [0, 0]) sqrt((3 - 0)^2*(4 - 0)^2) - book drops the + between the squares: 12; true 5 +V.E9 Ch V §3 distance from origin, general, p. 349 (E9) erratum - abs([2, 0, 1]) 2 - e3 = (1,0,1), x = z = 1: book's g31*zx (no 2) gives 2; true sqrt(5) = 2.2360... +V.E10 Ch V §3 midpoint, p. 350 (E10) erratum - (0 + 2)/2 (0 + 7)/2 - midpoint x of (0,5)-(2,7): book (x1 + y2)/2 = 7/2; true 1 +V.E11 Ch V §3 area in space, p. 354 (E11) erratum - 1/2*abs([1*(-2) - (-2)*3, (-2)*1 - 0*(-2), 0*3 - 1*1]) sqrt(105)/2 - r1=(0,1,0), r2=(1,3,0), r3=(0,0,2): book's Delta1 with y1 - y2 gives 5.1234...; true sqrt(21)/2 = 2.2912... +V.E12 Ch V §3 angle between lines, general, p. 359 (E12) erratum - ([1, 2]T * [2, 2])/(abs([1, 2])*abs([2, 2])) 0 - e1=(1,0), e2=(1,2), lines x = 0, x - y = 0: book's lower g_ij on A, B give cos 0; true 3/sqrt(10) +V.E13 Ch V §3 angle between lines, general, p. 359 (E13) erratum - (5*1*1 - 1*(1*(-1) + 1*0) + 1*0*(-1))/(sqrt(5*1^2 - 2*1*1*0 + 1*0^2)*sqrt(5*1^2 - 2*1*1*(-1) + 1*(-1)^2)) (5*1*1 - 2*1*(1*(-1) + 1*0) + 1*0*(-1))/(sqrt(5*1^2 - 2*1*1*0 + 1*0^2)*sqrt(5*1^2 - 2*1*1*(-1) + 1*(-1)^2)) - same lines, g11=1, g12=1, g22=5: book's -2g12 gives cos 1.1067... > 1; true 3/sqrt(10) = 0.9486... +V.E13.b Ch V §3 angle between lines, general, p. 359 (E13) erratum - 2*(1*(-1) - 1*0)/(5*1*1 - 1*(1*(-1) + 1*0) + 1*0*(-1)) 2*(1*(-1) - 1*0)/(5*1*1 - 2*1*(1*(-1) + 1*0) + 1*0*(-1)) - same lines, oriented tan: book -2/7; true -1/3 +V.E15 Ch V §3 perpendicular slopes, general, p. 360 (E15) erratum - [1, 0]T * [2, 2] 1 - 1*(0 + 1) + 5*0*1 - e1=(1,0), e2=(1,2), k = 0, k' = 1: book's g11 - g12(k + k') + g22kk' = 0 says perpendicular; true 2 (45 deg) +V.E16 Ch V §3 plane through three points, p. 365 (E16) erratum - det([[x, y, z, 1], [0, 0, 0, 1], [1, 0, 0, 1], [0, 2, 3, 1]]) (-3) * y C M1=(0,0,0), M2=(1,0,0), M3=(0,2,3): book's last row x3 x3 z3 1 gives -3y; true -3y + 2z +V.E16.c Ch V §3 plane through three points, p. 365 (E16) equal - det([[x, y, z, 1], [0, 0, 0, 1], [1, 0, 0, 1], [0, 2, 3, 1]]) (-3) * y + 2 * z C correction of V.E16; det_s gave this +V.E20 Ch V §3 point-line distance in space, p. 372 (E20) erratum - abs([1*0 - 0*0, 0*1 - 0*0, 0*0 - 1*1])/abs([1, 0, 0]) abs([0, 1, 0]T * [1, 0, 0])/abs([1, 0, 0]) - r1 - r0 = {0,1,0}, a = {1,0,0}: book's (.,.) read as a dot gives 0; true distance 1 (cross product) +V.E21 Ch V §3 skew-line distance, general, p. 373 (E21) erratum - abs(det([[0, 0, 1], [1, 0, 0], [0, 1, 0]]))/sqrt(1/4*1^2) abs(det([[0, 0, 1], [1, 0, 0], [0, 1, 0]]))/(sqrt(4)*sqrt(1/4*1^2)) - g = diag(1,1,4), lines along e1, e2 offset e3: book's extra sqrt(g) gives 1; true 2 +V.E22 Ch V §3 line parallel to a plane, p. 375 (E22) erratum - [0, 0, 1]T * [0, 0, 1] 0 - plane z = 0, direction {0,0,1} meets the book's 'parallel' test, so Al + Bm + Cn should be 0; it is 1 +V.E23 Ch V §3 circle at the origin, p. 376 (E23) erratum - 2^2 + 0^2 - 2^2 2^2 + 0^2 - (2, 0) on the radius-2 circle: book x^2 + y^2 + z^2 gives 4; true 0 +V.E24 Ch V §4 complex numbers, p. 377 (E24) erratum - 1*2 1 - book prints 1*z = 1; at z = 2 it is 2 diff --git a/Sources/Tests/Harnesses/README.md b/Sources/Tests/Harnesses/README.md index 0ed966ee7..b30bea0f0 100644 --- a/Sources/Tests/Harnesses/README.md +++ b/Sources/Tests/Harnesses/README.md @@ -16,16 +16,18 @@ Each exits non-zero when it finds a defect, or when a list of findings it keeps | `PropCheck` | does each transformation satisfy a property it must: `Simplify`, `Expand` and `Factorize` keep the value, `Differentiate` agrees with a difference quotient, `Integrate` differentiates back | any property that does not hold | | `CanonCheck` | is there a **canonical form**: idempotence, order independence over commutative operators, and agreement between writings, for `InnerSimplified` and `Simplify` alike | a change to its findings, listed in `canoncheck-baseline.tsv` | | `Confluence` | where two arms of one rule set both fire at a node, do they agree, or is the order of the arms load-bearing | a change to its conflicting pairs, listed in `confluence-baseline.tsv` | +| `ModenovCorpus` | do the computations of Modenov's *Problems in Geometry* still come out — identities, reductions, equations, each verified by value — and are the book's own errors refused rather than confirmed | a wrong answer, an erratum confirmed, a row whose claim does not hold, or a change to its verdicts, listed in `modenov-baseline.tsv` | | `DocSamples` | does every code sample in the wiki, and every annotated one on the website, compile, run, and print what its page says | a sample that does not compile, throws, or prints something else | A timeout fails none of them: a shared runner is slower than the machine a budget was set on. -`CanonCheck` and `Confluence` report findings by design. `InnerSimplified` is a normalisation, and -does not reorder operands. Some rule sets depend on the order of their arms. So each commits its -list of findings beside it, and the run fails when the list changes in either direction: a finding -that appears, or one that goes away. To record an intended change, run the harness with +`CanonCheck`, `Confluence` and `ModenovCorpus` report findings by design. `InnerSimplified` is a +normalisation, and does not reorder operands. Some rule sets depend on the order of their arms. A +row of the Modenov corpus the library does not yet reduce is unsolved, not failed. So each commits +its list of findings beside it, and the run fails when the list changes in either direction: a +finding that appears, or one that goes away. To record an intended change, run the harness with `HARNESS_UPDATE_BASELINE=1` and commit the list with the change. A finding whose case timed out -counts as unmeasured, not gone. +counts as unmeasured, not gone. A wrong answer is never a finding: it fails the run on its own. Run one by hand with `dotnet run -c Release --project Sources/Tests/Harnesses/BoundCheck`. Its report goes to this folder, where it is ignored by git, or to the directory `HARNESS_REPORTS`