30 of 40 focal problems use RatMath for a calculation or a substantive step.
Direct calculation
22 · 55%
Assisted
8 · 20%
Worked by hand
10 · 25%
Using the packages
RatMath can supply exact examples and some bounds. A general existence argument needs hypotheses and a proof. Independently check quantifiers in a returned sequence certificate before accepting a claimed threshold.
Calculator interface
Let the user specify ε, the domain and the order of quantifiers. Mark endpoints as open or closed and distinguish a checked finite prefix from a proof on an entire tail.
Each of the 40 focal problems has equal weight. Direct means the displayed package calculation answers the computational question after the inputs are set up. Assisted means it contributes a step and the worked solution supplies essential reasoning, interpretation or selection. Worked by hand means the guide relies on a construction, argument or judgment for that task. The helpful share combines direct and assisted days. Courses and instructors assign different mixes of problems. The percentages describe this syllabus.
Classroom inputs and practical limits
30 of 40 days include a checked executable example. On 10 days the measured size sweep exercises a named API used in the lesson. Each day identifies its tested inputs and the mathematical property checked. Hand-worked days give the input scale and the argument to verify.
Ranges across the five units
Days 1–8 · Real numbers and sequences. A single explicit sequence and tolerances commonly 10⁻¹–10⁻⁴ in worked estimates; the proof must cover every later index.
Unit benchmark · analytic.sequence.nFor, decimal tolerance exponent. Largest passing sample 12 (10.71 ms, 78.8 MiB peak process RSS). Library refusal at 16.
Days 9–16 · Series and rearrangements. One series and a short list of partial sums; arbitrary rearrangements require the appropriate convergence hypotheses.
Unit benchmark · analytic.sequence.nFor, decimal tolerance exponent. Largest passing sample 12 (10.71 ms, 78.8 MiB peak process RSS). Library refusal at 16.
Days 17–24 · Continuity and derivatives. One function on a stated interval with one ε, δ or derivative bound; endpoint and uniform conditions matter.
Unit benchmark · symbolic.limit, polynomial degree. Largest passing sample 128 (1,021 ms, 91.5 MiB peak process RSS). The first sampled passing call above one second used 128 (1,021 ms). The runs did not locate a ceiling for this family.
Days 25–32 · Integration. Scalar integrands with simple discontinuity sets, and introductory Darboux partitions of roughly 2–32 subintervals.
Unit benchmark · analytic.quadratureRule, Simpson panels. Largest passing sample 2,048 (120 ms, 90.9 MiB peak process RSS). The first sampled passing call above 100 ms used 2,048 (120 ms). The runs did not locate a ceiling for this family.
Days 33–40 · Function sequences. A family indexed by n and one real variable, with a specified open or closed domain; pointwise samples cannot verify a supremum over the whole domain.
Unit benchmark · analytic.sequence.nFor, decimal tolerance exponent. Largest passing sample 12 (10.71 ms, 78.8 MiB peak process RSS). Library refusal at 16.
Accuracy notes (3)
Fixed · Bisection identifies the root selected by its trace. For (x−1)(x−6)(x−9) on [0,10], the certificate now returns the root 1 inside the last displayed bracket. A sign-changing interval can still contain several roots.
Fixed · The verifier rejects a false tail index. For aₙ=1/(1+(n−50)²) and ε=1/2, changing N to 1 now fails verification. The later term a₅₀=1 proves the modified claim false.
Fixed · The first-order checker rejects variable capture. Equality substitution from x=a and ∀x P(a) to ∀x P(x) now produces errors. A two-element model with x assigned to a and P true only of a refutes the conclusion.
Enter the term in n. The sequence method works with the rule for the terms, so retain the index and its starting value when adapting the example.
JavaScript module
import * as analytic from "@ratmath/analytic";
console.log(analytic.sequence("(3n^2 + 1)/(2n^2 - n)").limit());
Checked output
3/2
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. A single explicit sequence and tolerances commonly 10⁻¹–10⁻⁴ in worked estimates; the proof must cover every later index.
For this problem type. Classroom tolerances often range from 10⁻¹ to 10⁻⁶. The associated N or δ can be orders of magnitude larger or smaller, depending on the function.
Focal example. The code above passed its displayed check in 0.335 ms on Node.
Related workload in this unit.analytic.sequence.nFor · decimal tolerance exponent. Baseline test points across courses 1, 2, 3, 4. For |1/n|<10^−d the first index is 10^d+1, including the strict-boundary case.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 12 (10.71 ms, 78.8 MiB peak process RSS). Library refusal at 16. A tiny ε may force a very large witness index. Check the whole tail when certifying an N for a nonmonotone sequence.
Measured times, memory and outcomes
decimal tolerance exponent · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
8.20
79.8
2
Baseline
Passed
10.10
79.5
3
Baseline
Passed
8.40
80.3
4
Baseline
Passed
18.49
80.5
6
Stretch
Passed
8.67
80.2
8
Stretch
Passed
8.84
80.3
12
Stretch
Passed
10.71
78.8
16
Stretch
Library refusal · AnalyticError: no index was found where the terms are within ε of the limit
10.35
80.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.sequence · 21 passing test cases, 27 distinct argument descriptions
Fixed · The verifier rejects a false tail index. For aₙ=1/(1+(n−50)²) and ε=1/2, changing N to 1 now fails verification. The later term a₅₀=1 proves the modified claim false.
Day 02 / 40 · Real numbers and sequences
An N for a given ε
Assisted@ratmath/analytic
Problem
Find the least such that for every .
Worked solution
: .
Using RatMath
Check the strict inequality at n=10000 and use monotonicity for every n≥10001. A certificate flag by itself is insufficient.
JavaScript module
import * as analytic from "@ratmath/analytic";
const r = analytic.sequence("1/sqrt(n)").nFor("1/100");
console.log([r.N, r.least, analytic.verifyCertificate(r.certificate).valid]);
Checked output
[10001, true, true]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. A single explicit sequence and tolerances commonly 10⁻¹–10⁻⁴ in worked estimates; the proof must cover every later index.
For this problem type. Classroom tolerances often range from 10⁻¹ to 10⁻⁶. The associated N or δ can be orders of magnitude larger or smaller, depending on the function.
Focal example. The code above passed its displayed check in 12.08 ms on Node.
Same API, measured input family.analytic.sequence.nFor · decimal tolerance exponent. Baseline test points across courses 1, 2, 3, 4. For |1/n|<10^−d the first index is 10^d+1, including the strict-boundary case.
Practical limit. Largest passing sample 12 (10.71 ms, 78.8 MiB peak process RSS). Library refusal at 16. A tiny ε may force a very large witness index. Check the whole tail when certifying an N for a nonmonotone sequence.
Measured times, memory and outcomes
decimal tolerance exponent · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
8.20
79.8
2
Baseline
Passed
10.10
79.5
3
Baseline
Passed
8.40
80.3
4
Baseline
Passed
18.49
80.5
6
Stretch
Passed
8.67
80.2
8
Stretch
Passed
8.84
80.3
12
Stretch
Passed
10.71
78.8
16
Stretch
Library refusal · AnalyticError: no index was found where the terms are within ε of the limit
10.35
80.5
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.sequence · 21 passing test cases, 27 distinct argument descriptions
Fixed · The verifier rejects a false tail index. For aₙ=1/(1+(n−50)²) and ε=1/2, changing N to 1 now fails verification. The later term a₅₀=1 proves the modified claim false.
Day 03 / 40 · Real numbers and sequences
Monotone sequences and the supremum
Direct calculation@ratmath/analytic
Problem
Let . Is it monotone? Find and .
Worked solution
Increasing, since decreases. (attained); (not attained).
Using RatMath
Enter the term in n. The sequence method works with the rule for the terms, so retain the index and its starting value when adapting the example.
JavaScript module
import * as analytic from "@ratmath/analytic";
const a = analytic.sequence("1 - 1/n");
const [s, i] = [a.supremum(), a.infimum()];
console.log([a.monotone().direction, s.value, s.attained, i.value, i.attained]);
Checked output
["increasing", 1, false, 0, true]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. A single explicit sequence and tolerances commonly 10⁻¹–10⁻⁴ in worked estimates; the proof must cover every later index.
For this problem type. Classroom tolerances often range from 10⁻¹ to 10⁻⁶. The associated N or δ can be orders of magnitude larger or smaller, depending on the function.
Focal example. The code above passed its displayed check in 1.80 ms on Node.
Related workload in this unit.analytic.sequence.nFor · decimal tolerance exponent. Baseline test points across courses 1, 2, 3, 4. For |1/n|<10^−d the first index is 10^d+1, including the strict-boundary case.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 12 (10.71 ms, 78.8 MiB peak process RSS). Library refusal at 16. A tiny ε may force a very large witness index. Check the whole tail when certifying an N for a nonmonotone sequence.
Measured times, memory and outcomes
decimal tolerance exponent · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
8.20
79.8
2
Baseline
Passed
10.10
79.5
3
Baseline
Passed
8.40
80.3
4
Baseline
Passed
18.49
80.5
6
Stretch
Passed
8.67
80.2
8
Stretch
Passed
8.84
80.3
12
Stretch
Passed
10.71
78.8
16
Stretch
Library refusal · AnalyticError: no index was found where the terms are within ε of the limit
10.35
80.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.sequence · 21 passing test cases, 27 distinct argument descriptions
Fixed · The verifier rejects a false tail index. For aₙ=1/(1+(n−50)²) and ε=1/2, changing N to 1 now fails verification. The later term a₅₀=1 proves the modified claim false.
Day 04 / 40 · Real numbers and sequences
Limits superior and inferior
Direct calculation@ratmath/analytic
Problem
Find and of .
Worked solution
Even terms ; odd terms . , ; no limit.
Using RatMath
Enter the term in n. The sequence method works with the rule for the terms, so retain the index and its starting value when adapting the example.
JavaScript module
import * as analytic from "@ratmath/analytic";
const a = analytic.sequence("(-1)^n*(1 + 1/n)");
console.log([a.limsup(), a.liminf(), a.accumulation().converges]);
Checked output
[1, -1, false]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. A single explicit sequence and tolerances commonly 10⁻¹–10⁻⁴ in worked estimates; the proof must cover every later index.
For this problem type. Classroom tolerances often range from 10⁻¹ to 10⁻⁶. The associated N or δ can be orders of magnitude larger or smaller, depending on the function.
Focal example. The code above passed its displayed check in 1.63 ms on Node.
Related workload in this unit.analytic.sequence.nFor · decimal tolerance exponent. Baseline test points across courses 1, 2, 3, 4. For |1/n|<10^−d the first index is 10^d+1, including the strict-boundary case.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 12 (10.71 ms, 78.8 MiB peak process RSS). Library refusal at 16. A tiny ε may force a very large witness index. Check the whole tail when certifying an N for a nonmonotone sequence.
Measured times, memory and outcomes
decimal tolerance exponent · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
8.20
79.8
2
Baseline
Passed
10.10
79.5
3
Baseline
Passed
8.40
80.3
4
Baseline
Passed
18.49
80.5
6
Stretch
Passed
8.67
80.2
8
Stretch
Passed
8.84
80.3
12
Stretch
Passed
10.71
78.8
16
Stretch
Library refusal · AnalyticError: no index was found where the terms are within ε of the limit
10.35
80.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.sequence · 21 passing test cases, 27 distinct argument descriptions
Fixed · The verifier rejects a false tail index. For aₙ=1/(1+(n−50)²) and ε=1/2, changing N to 1 now fails verification. The later term a₅₀=1 proves the modified claim false.
Day 05 / 40 · Real numbers and sequences
Euler's number
Direct calculation@ratmath/analytic
Problem
Find and show the sequence is increasing.
Worked solution
The limit is . By AM–GM on copies of and one 1, .
Using RatMath
Enter the term in n. The sequence method works with the rule for the terms, so retain the index and its starting value when adapting the example.
JavaScript module
import * as analytic from "@ratmath/analytic";
const a = analytic.sequence("(1 + 1/n)^n");
const m = a.monotone();
console.log([a.limit(), m.direction, m.proven]);
Checked output
[2.7182818284590452353[6:7], "increasing", "for every n ≥ 1"]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. A single explicit sequence and tolerances commonly 10⁻¹–10⁻⁴ in worked estimates; the proof must cover every later index.
For this problem type. Classroom tolerances often range from 10⁻¹ to 10⁻⁶. The associated N or δ can be orders of magnitude larger or smaller, depending on the function.
Focal example. The code above passed its displayed check in 3,837 ms on Node.
Related workload in this unit.analytic.sequence.nFor · decimal tolerance exponent. Baseline test points across courses 1, 2, 3, 4. For |1/n|<10^−d the first index is 10^d+1, including the strict-boundary case.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 12 (10.71 ms, 78.8 MiB peak process RSS). Library refusal at 16. A tiny ε may force a very large witness index. Check the whole tail when certifying an N for a nonmonotone sequence.
Measured times, memory and outcomes
decimal tolerance exponent · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
8.20
79.8
2
Baseline
Passed
10.10
79.5
3
Baseline
Passed
8.40
80.3
4
Baseline
Passed
18.49
80.5
6
Stretch
Passed
8.67
80.2
8
Stretch
Passed
8.84
80.3
12
Stretch
Passed
10.71
78.8
16
Stretch
Library refusal · AnalyticError: no index was found where the terms are within ε of the limit
10.35
80.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.sequence · 21 passing test cases, 27 distinct argument descriptions
Fixed · The verifier rejects a false tail index. For aₙ=1/(1+(n−50)²) and ε=1/2, changing N to 1 now fails verification. The later term a₅₀=1 proves the modified claim false.
Day 06 / 40 · Real numbers and sequences
Supremum versus maximum
Worked by hand
Problem
Does the interval (0,1) have a supremum and a maximum?
Worked solution
Its supremum is 1. Every member x has a larger member (x+1)/2, so no maximum exists.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. A single explicit sequence and tolerances commonly 10⁻¹–10⁻⁴ in worked estimates; the proof must cover every later index.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 07 / 40 · Real numbers and sequences
Quantifier order
Worked by hand
Problem
In the definition of sequence convergence, may N depend on the index n?
Worked solution
N may depend on ε. A single N must work for all n≥N. Choosing it after n changes the statement.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. A single explicit sequence and tolerances commonly 10⁻¹–10⁻⁴ in worked estimates; the proof must cover every later index.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Accuracy notes (1)
Fixed · The first-order checker rejects variable capture. Equality substitution from x=a and ∀x P(a) to ∀x P(x) now produces errors. A two-element model with x assigned to a and P true only of a refutes the conclusion.
Day 08 / 40 · Real numbers and sequences
Cauchy sequences
Worked by hand
Problem
Why does every convergent real sequence have the Cauchy property?
Worked solution
Put both sufficiently late terms within ε/2 of the limit. The triangle inequality gives distance less than ε between them.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. A single explicit sequence and tolerances commonly 10⁻¹–10⁻⁴ in worked estimates; the proof must cover every later index.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 09 / 40 · Series and rearrangements
Telescoping series
Direct calculation@ratmath/symbolic
Problem
Sum .
Worked solution
; partial sums .
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as symbolic from "@ratmath/symbolic";
console.log(String(symbolic.sum("1/(n*(n+1))", "n", 1, "inf").value));
Checked output
1
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One series and a short list of partial sums; arbitrary rearrangements require the appropriate convergence hypotheses.
Focal example. The code above passed its displayed check in 2.07 ms on Node.
Related workload in this unit.core.range · terms. Baseline test points across courses 1, 10, 100, 1,000. Check length and every consecutive integer from 1 through n.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 1,000,000 (141 ms, 277.5 MiB peak process RSS). The first sampled passing call above 100 ms used 1,000,000 (141 ms). The runs did not locate a ceiling for this family. Keeping the entire result requires storage proportional to its length. Shortening the displayed list after construction still pays that cost.
Measured times, memory and outcomes
terms · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
0.173
75.5
10
Baseline
Passed
0.192
74.9
100
Baseline
Passed
0.269
74.7
1,000
Baseline
Passed
1.52
75.6
10,000
Stretch
Passed
5.29
80.9
100,000
Stretch
Passed
11.57
109.6
1,000,000
Stretch
Passed
141
277.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
symbolic.sum · 4 passing test cases, 14 distinct argument descriptions
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One series and a short list of partial sums; arbitrary rearrangements require the appropriate convergence hypotheses.
For this problem type. Classroom tolerances often range from 10⁻¹ to 10⁻⁶. The associated N or δ can be orders of magnitude larger or smaller, depending on the function.
Focal example. The code above passed its displayed check in 1.36 ms on Node.
Related workload in this unit.core.range · terms. Baseline test points across courses 1, 10, 100, 1,000. Check length and every consecutive integer from 1 through n.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 1,000,000 (141 ms, 277.5 MiB peak process RSS). The first sampled passing call above 100 ms used 1,000,000 (141 ms). The runs did not locate a ceiling for this family. Keeping the entire result requires storage proportional to its length. Shortening the displayed list after construction still pays that cost.
Measured times, memory and outcomes
terms · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
0.173
75.5
10
Baseline
Passed
0.192
74.9
100
Baseline
Passed
0.269
74.7
1,000
Baseline
Passed
1.52
75.6
10,000
Stretch
Passed
5.29
80.9
100,000
Stretch
Passed
11.57
109.6
1,000,000
Stretch
Passed
141
277.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.sum · 10 passing test cases, 19 distinct argument descriptions
Fixed · The verifier rejects a false tail index. For aₙ=1/(1+(n−50)²) and ε=1/2, changing N to 1 now fails verification. The later term a₅₀=1 proves the modified claim false.
Day 11 / 40 · Series and rearrangements
Alternating series error
Direct calculation@ratmath/analytic
Problem
How many terms of guarantee an error below 0.001?
Worked solution
The error after terms is below ; needs , so .
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as analytic from "@ratmath/analytic";
const r = analytic.sum("(-1)^(n+1)/n^2").termsForError("1/1000");
console.log([r.terms, r.bound]);
Checked output
[31, 1/1024]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One series and a short list of partial sums; arbitrary rearrangements require the appropriate convergence hypotheses.
Focal example. The code above passed its displayed check in 0.534 ms on Node.
Related workload in this unit.core.range · terms. Baseline test points across courses 1, 10, 100, 1,000. Check length and every consecutive integer from 1 through n.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 1,000,000 (141 ms, 277.5 MiB peak process RSS). The first sampled passing call above 100 ms used 1,000,000 (141 ms). The runs did not locate a ceiling for this family. Keeping the entire result requires storage proportional to its length. Shortening the displayed list after construction still pays that cost.
Measured times, memory and outcomes
terms · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
0.173
75.5
10
Baseline
Passed
0.192
74.9
100
Baseline
Passed
0.269
74.7
1,000
Baseline
Passed
1.52
75.6
10,000
Stretch
Passed
5.29
80.9
100,000
Stretch
Passed
11.57
109.6
1,000,000
Stretch
Passed
141
277.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.sum · 10 passing test cases, 19 distinct argument descriptions
Enter the coefficient as a function of the index. Keep the centre and starting index with the series when reading the convergence result.
JavaScript module
import * as analytic from "@ratmath/analytic";
console.log(analytic.powerSeries("n^2/3^n").radius().radius);
Checked output
3
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One series and a short list of partial sums; arbitrary rearrangements require the appropriate convergence hypotheses.
Focal example. The code above passed its displayed check in 0.639 ms on Node.
Related workload in this unit.analytic.sequence.nFor · decimal tolerance exponent. Baseline test points across courses 1, 2, 3, 4. For |1/n|<10^−d the first index is 10^d+1, including the strict-boundary case.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 12 (10.71 ms, 78.8 MiB peak process RSS). Library refusal at 16. A tiny ε may force a very large witness index. Check the whole tail when certifying an N for a nonmonotone sequence.
Measured times, memory and outcomes
decimal tolerance exponent · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
8.20
79.8
2
Baseline
Passed
10.10
79.5
3
Baseline
Passed
8.40
80.3
4
Baseline
Passed
18.49
80.5
6
Stretch
Passed
8.67
80.2
8
Stretch
Passed
8.84
80.3
12
Stretch
Passed
10.71
78.8
16
Stretch
Library refusal · AnalyticError: no index was found where the terms are within ε of the limit
10.35
80.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.powerSeries · 2 passing test cases, 5 distinct argument descriptions
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as symbolic from "@ratmath/symbolic";
console.log(String(symbolic.sum("(-1)^(n+1)/n^2", "n", 1, "inf").value));
Checked output
pi^2/12
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One series and a short list of partial sums; arbitrary rearrangements require the appropriate convergence hypotheses.
Focal example. The code above passed its displayed check in 18.71 ms on Node.
Related workload in this unit.core.range · terms. Baseline test points across courses 1, 10, 100, 1,000. Check length and every consecutive integer from 1 through n.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 1,000,000 (141 ms, 277.5 MiB peak process RSS). The first sampled passing call above 100 ms used 1,000,000 (141 ms). The runs did not locate a ceiling for this family. Keeping the entire result requires storage proportional to its length. Shortening the displayed list after construction still pays that cost.
Measured times, memory and outcomes
terms · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
0.173
75.5
10
Baseline
Passed
0.192
74.9
100
Baseline
Passed
0.269
74.7
1,000
Baseline
Passed
1.52
75.6
10,000
Stretch
Passed
5.29
80.9
100,000
Stretch
Passed
11.57
109.6
1,000,000
Stretch
Passed
141
277.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
symbolic.sum · 4 passing test cases, 14 distinct argument descriptions
Direct calculation@ratmath/analytic · @ratmath/symbolic
Problem
Does converge? What is its sum?
Worked solution
Yes (a -series with ); the sum is .
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as analytic from "@ratmath/analytic";
import * as symbolic from "@ratmath/symbolic";
console.log(
[analytic.sum("1/k^2", { variable: "k" }).convergence().convergence, symbolic.sum("1/k^2", "k", 1, "inf").value]
);
Checked output
["absolutely convergent", pi^2/6]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One series and a short list of partial sums; arbitrary rearrangements require the appropriate convergence hypotheses.
Focal example. The code above passed its displayed check in 58.36 ms on Node.
Related workload in this unit.core.range · terms. Baseline test points across courses 1, 10, 100, 1,000. Check length and every consecutive integer from 1 through n.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 1,000,000 (141 ms, 277.5 MiB peak process RSS). The first sampled passing call above 100 ms used 1,000,000 (141 ms). The runs did not locate a ceiling for this family. Keeping the entire result requires storage proportional to its length. Shortening the displayed list after construction still pays that cost.
Measured times, memory and outcomes
terms · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
0.173
75.5
10
Baseline
Passed
0.192
74.9
100
Baseline
Passed
0.269
74.7
1,000
Baseline
Passed
1.52
75.6
10,000
Stretch
Passed
5.29
80.9
100,000
Stretch
Passed
11.57
109.6
1,000,000
Stretch
Passed
141
277.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.sum · 10 passing test cases, 19 distinct argument descriptions
Direct calculation@ratmath/analytic · @ratmath/symbolic
Problem
Does converge absolutely, conditionally, or not at all? What is the sum?
Worked solution
Conditionally (the harmonic series diverges; the alternating series test applies). Sum .
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as analytic from "@ratmath/analytic";
import * as symbolic from "@ratmath/symbolic";
console.log(
[analytic.sum("(-1)^(k+1)/k", { variable: "k" }).convergence().convergence, symbolic.sum("(-1)^(k+1)/k", "k", 1, "inf").value]
);
Checked output
["conditionally convergent", log(2)]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One series and a short list of partial sums; arbitrary rearrangements require the appropriate convergence hypotheses.
Focal example. The code above passed its displayed check in 24.01 ms on Node.
Related workload in this unit.core.range · terms. Baseline test points across courses 1, 10, 100, 1,000. Check length and every consecutive integer from 1 through n.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 1,000,000 (141 ms, 277.5 MiB peak process RSS). The first sampled passing call above 100 ms used 1,000,000 (141 ms). The runs did not locate a ceiling for this family. Keeping the entire result requires storage proportional to its length. Shortening the displayed list after construction still pays that cost.
Measured times, memory and outcomes
terms · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
0.173
75.5
10
Baseline
Passed
0.192
74.9
100
Baseline
Passed
0.269
74.7
1,000
Baseline
Passed
1.52
75.6
10,000
Stretch
Passed
5.29
80.9
100,000
Stretch
Passed
11.57
109.6
1,000,000
Stretch
Passed
141
277.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.sum · 10 passing test cases, 19 distinct argument descriptions
Can a sequence converge when two subsequences tend to different limits?
Worked solution
Every subsequence of a convergent sequence shares its limit. Distinct subsequential limits rule out convergence.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. One series and a short list of partial sums; arbitrary rearrangements require the appropriate convergence hypotheses.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 17 / 40 · Continuity and derivatives
Limits of functions
Direct calculation@ratmath/symbolic
Problem
Find .
Worked solution
, so the limit is .
Using RatMath
Supply the expression, variable and approach point. At jumps and endpoints the direction of approach matters.
JavaScript module
import * as symbolic from "@ratmath/symbolic";
console.log(String(symbolic.limit("(1 - cos(x))/x^2", "x", 0).value));
Checked output
1/2
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One function on a stated interval with one ε, δ or derivative bound; endpoint and uniform conditions matter.
For this problem type. Use one approach point or infinity, low-degree rational or elementary functions, and both directions when the domain permits.
Focal example. The code above passed its displayed check in 2.58 ms on Node.
Same API, measured input family.symbolic.limit · polynomial degree. Baseline test points across courses 1, 2, 3, 6. For n≥1, (x^n−1)/(x−1) tends to n at x=1.
Practical limit. Largest passing sample 128 (1,021 ms, 91.5 MiB peak process RSS). The first sampled passing call above one second used 128 (1,021 ms). The runs did not locate a ceiling for this family. Cancellation is valid on a punctured neighborhood. Left and right limits and branch choices still require checking in general.
Measured times, memory and outcomes
polynomial degree · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
9.66
76.6
2
Baseline
Passed
9.66
76.4
3
Baseline
Passed
10.35
77
6
Baseline
Passed
16.39
77.6
12
Stretch
Passed
16.71
78.7
32
Stretch
Passed
44.01
88.5
128
Stretch
Passed
1,021
91.5
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
symbolic.limit · 4 passing test cases, 18 distinct argument descriptions
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One function on a stated interval with one ε, δ or derivative bound; endpoint and uniform conditions matter.
For this problem type. Classroom tolerances often range from 10⁻¹ to 10⁻⁶. The associated N or δ can be orders of magnitude larger or smaller, depending on the function.
Focal example. The code above passed its displayed check in 9.02 ms on Node.
Related workload in this unit.analytic.sequence.nFor · decimal tolerance exponent. Baseline test points across courses 1, 2, 3, 4. For |1/n|<10^−d the first index is 10^d+1, including the strict-boundary case.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 12 (10.71 ms, 78.8 MiB peak process RSS). Library refusal at 16. A tiny ε may force a very large witness index. Check the whole tail when certifying an N for a nonmonotone sequence.
Measured times, memory and outcomes
decimal tolerance exponent · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
8.20
79.8
2
Baseline
Passed
10.10
79.5
3
Baseline
Passed
8.40
80.3
4
Baseline
Passed
18.49
80.5
6
Stretch
Passed
8.67
80.2
8
Stretch
Passed
8.84
80.3
12
Stretch
Passed
10.71
78.8
16
Stretch
Library refusal · AnalyticError: no index was found where the terms are within ε of the limit
10.35
80.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.deltaFor · 4 passing test cases, 6 distinct argument descriptions
Fixed · The verifier rejects a false tail index. For aₙ=1/(1+(n−50)²) and ε=1/2, changing N to 1 now fails verification. The later term a₅₀=1 proves the modified claim false.
Day 19 / 40 · Continuity and derivatives
Mean value theorem
Assisted@ratmath/symbolic
Problem
Find the in promised by the mean value theorem for .
Worked solution
, so .
Using RatMath
Discard the negative solution because the mean value point must belong to (0,2).
JavaScript module
import * as symbolic from "@ratmath/symbolic";
console.log(String(symbolic.solve("3x^2 = 4", "x", { assume: { x: "in (0, 2)" } })));
Checked output
x = 2*sqrt(3)/3
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One function on a stated interval with one ε, δ or derivative bound; endpoint and uniform conditions matter.
For this problem type. Start with one unknown, small signed coefficients and degree one or two. Higher-degree or parameter-dependent equations need separate cases.
Focal example. The code above passed its displayed check in 1.74 ms on Node.
Same API, measured input family.symbolic.solve · absolute coefficient. Baseline test points across courses 1, 2, 10, 100. Solve n·x+1=3n+1; the unique root is 3.
Practical limit. Largest passing sample 1,000,000,000 (6.48 ms, 75.9 MiB peak process RSS). The runs did not locate a ceiling for this family. One linear unknown has a simple root here. A vanishing coefficient may produce no solution or infinitely many. Multiple parameters require case analysis.
Measured times, memory and outcomes
absolute coefficient · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
16.76
75.8
2
Baseline
Passed
7.72
74.9
10
Baseline
Passed
29.10
75.2
100
Baseline
Passed
12.79
74.6
10,000
Stretch
Passed
28.50
76.3
1,000,000,000
Stretch
Passed
6.48
75.9
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
symbolic.solve · 21 passing test cases, 71 distinct argument descriptions
Use continuity and opposite endpoint signs for existence. The numerical root supplies the requested decimal value.
JavaScript module
import * as analytic from "@ratmath/analytic";
console.log(analytic.bisection("x^3 - x - 1", ["1", "2"]).root);
Checked output
1.3247179572447460259[6:7]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One function on a stated interval with one ε, δ or derivative bound; endpoint and uniform conditions matter.
For this problem type. Use one scalar function, one starting point or bracket and about 3–20 displayed iterations. Typical requested errors are 10⁻³ to 10⁻¹⁰.
Focal example. The code above passed its displayed check in 3.00 ms on Node. Both enclosure endpoints also met the lesson’s stated numerical tolerance.
Same API, measured input family.analytic.bisection · decimal tolerance exponent. Baseline test points across courses 2, 4, 6, 8. Both the returned root and its final bracket must contain or agree with √2 to the requested tolerance, allowing one double-precision ulp for the floating trace. Check enclosure endpoint squares.
Practical limit. Largest passing sample 24 (7.66 ms, 79.5 MiB peak process RSS). The runs did not locate a ceiling for this family. The displayed iteration trace uses doubles; precision eventually stops improving. A bracket with several roots can select different roots under different starting bounds. Compare the returned enclosure with the trace.
Measured times, memory and outcomes
decimal tolerance exponent · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
4.24
74.7
4
Baseline
Passed
4.72
77.2
6
Baseline
Passed
4.12
77
8
Baseline
Passed
6.67
76.9
10
Stretch
Passed
4.27
77.4
12
Stretch
Passed
4.18
75.9
16
Stretch
Passed
4.90
76.4
24
Stretch
Passed
7.66
79.5
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.bisection · 3 passing test cases, 3 distinct argument descriptions
Fixed · Bisection identifies the root selected by its trace. For (x−1)(x−6)(x−9) on [0,10], the certificate now returns the root 1 inside the last displayed bracket. A sign-changing interval can still contain several roots.
Day 21 / 40 · Continuity and derivatives
Taylor's remainder
Direct calculation@ratmath/analytic
Problem
Bound the error of the degree-4 Taylor polynomial of about 0 on , and compare with the true error.
Worked solution
Lagrange: . The true maximum error, at , is .
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as analytic from "@ratmath/analytic";
const T = analytic.taylorRemainder("exp(x)", { order: 4, on: ["0", "1"] });
console.log([T.bound, T.actual]);
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One function on a stated interval with one ε, δ or derivative bound; endpoint and uniform conditions matter.
For this problem type. Typical hand calculations keep 2–10 nonzero terms. Specify the expansion center and distance of the evaluation point from it.
Focal example. The code above passed its displayed check in 346 ms on Node. Both enclosure endpoints also met the lesson’s stated numerical tolerance.
Related workload in this unit.symbolic.limit · polynomial degree. Baseline test points across courses 1, 2, 3, 6. For n≥1, (x^n−1)/(x−1) tends to n at x=1.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 128 (1,021 ms, 91.5 MiB peak process RSS). The first sampled passing call above one second used 128 (1,021 ms). The runs did not locate a ceiling for this family. Cancellation is valid on a punctured neighborhood. Left and right limits and branch choices still require checking in general.
Measured times, memory and outcomes
polynomial degree · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
9.66
76.6
2
Baseline
Passed
9.66
76.4
3
Baseline
Passed
10.35
77
6
Baseline
Passed
16.39
77.6
12
Stretch
Passed
16.71
78.7
32
Stretch
Passed
44.01
88.5
128
Stretch
Passed
1,021
91.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.taylorRemainder · 1 passing test case, 1 distinct argument description
Show is a contraction on and find its fixed point.
Worked solution
maps into and . The fixed point (the Dottie number) is .
Using RatMath
Verify that cosine maps [0,1] into itself and bound its derivative by sin(1)<1 before applying the contraction theorem.
JavaScript module
import * as analytic from "@ratmath/analytic";
import { Rational } from "@ratmath/core";
// the two hypotheses, each from a certified range over [0, 1], then the fixed point
const slope = analytic.fn("sin(x)").range(["0", "1"]).exact(); // g′ = −sin x
const image = analytic.fn("cos(x)").range(["0", "1"]).exact();
const one = new Rational(1n);
// |g′| < 1 on [0, 1]; g ≥ 0 there, and cos ≤ 1 everywhere, so g maps [0, 1] into itself
console.log(
[slope.high.lessThan(one) && slope.low.greaterThan(one.negate()), image.low.greaterThan(new Rational(0n)), analytic.fixedPoint("cos(x)", "1").root]
);
Checked output
[true, true, 0.7390851332151606416[5:6]]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One function on a stated interval with one ε, δ or derivative bound; endpoint and uniform conditions matter.
For this problem type. Use one scalar function, one starting point or bracket and about 3–20 displayed iterations. Typical requested errors are 10⁻³ to 10⁻¹⁰.
Focal example. The code above passed its displayed check in 168 ms on Node.
Related workload in this unit.core.range · terms. Baseline test points across courses 1, 10, 100, 1,000. Check length and every consecutive integer from 1 through n.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 1,000,000 (141 ms, 277.5 MiB peak process RSS). The first sampled passing call above 100 ms used 1,000,000 (141 ms). The runs did not locate a ceiling for this family. Keeping the entire result requires storage proportional to its length. Shortening the displayed list after construction still pays that cost.
Measured times, memory and outcomes
terms · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
0.173
75.5
10
Baseline
Passed
0.192
74.9
100
Baseline
Passed
0.269
74.7
1,000
Baseline
Passed
1.52
75.6
10,000
Stretch
Passed
5.29
80.9
100,000
Stretch
Passed
11.57
109.6
1,000,000
Stretch
Passed
141
277.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.fn · 51 passing test cases, 88 distinct argument descriptions
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as analytic from "@ratmath/analytic";
console.log(analytic.extrema("x^3 - 3x", [0, 2]).exact().map((e) => [e.kind, e.at, e.value]));
Checked output
[["min", 1, -2]]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One function on a stated interval with one ε, δ or derivative bound; endpoint and uniform conditions matter.
Focal example. The code above passed its displayed check in 0.546 ms on Node.
Related workload in this unit.symbolic.limit · polynomial degree. Baseline test points across courses 1, 2, 3, 6. For n≥1, (x^n−1)/(x−1) tends to n at x=1.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 128 (1,021 ms, 91.5 MiB peak process RSS). The first sampled passing call above one second used 128 (1,021 ms). The runs did not locate a ceiling for this family. Cancellation is valid on a punctured neighborhood. Left and right limits and branch choices still require checking in general.
Measured times, memory and outcomes
polynomial degree · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
9.66
76.6
2
Baseline
Passed
9.66
76.4
3
Baseline
Passed
10.35
77
6
Baseline
Passed
16.39
77.6
12
Stretch
Passed
16.71
78.7
32
Stretch
Passed
44.01
88.5
128
Stretch
Passed
1,021
91.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.extrema · 10 passing test cases, 11 distinct argument descriptions
Why does a continuous real function on [a,b] attain its maximum?
Worked solution
Its image is compact in R, hence bounded and closed. It contains its supremum.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. One function on a stated interval with one ε, δ or derivative bound; endpoint and uniform conditions matter.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 25 / 40 · Integration
Darboux sums
Direct calculation@ratmath/analytic
Problem
Compute the lower and upper sums of on with four equal pieces.
Worked solution
is increasing: , .
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as analytic from "@ratmath/analytic";
const d = analytic.darboux("x^2", { interval: [0, 1], n: 4 });
console.log([d.lower, d.upper, d.exact]);
Checked output
[7/32, 15/32, true]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Scalar integrands with simple discontinuity sets, and introductory Darboux partitions of roughly 2–32 subintervals.
Focal example. The code above passed its displayed check in 1.14 ms on Node.
Related workload in this unit.symbolic.integrate · degree. Baseline test points across courses 0, 1, 2, 5, 10. The integral of x^n over [0,1] is 1/(n+1).
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 500 (195 ms, 88.7 MiB peak process RSS). The first sampled passing call above 100 ms used 500 (195 ms). The runs did not locate a ceiling for this family. Polynomial primitives are a favorable case. Singular endpoints, non-elementary primitives and unevaluated integrals need separate treatment.
Measured times, memory and outcomes
degree · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
0
Baseline
Passed
5.98
75.7
1
Baseline
Passed
8.66
75.9
2
Baseline
Passed
7.14
75.7
5
Baseline
Passed
9.22
75.5
10
Baseline
Passed
8.48
75.8
30
Stretch
Passed
56.11
88.9
100
Stretch
Passed
78.06
88.4
500
Stretch
Passed
195
88.7
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.darboux · 6 passing test cases, 6 distinct argument descriptions
Pass the integrand and variable separately. Finite bounds request a definite integral. For an antiderivative, differentiate the proposed expression on its domain.
JavaScript module
import * as symbolic from "@ratmath/symbolic";
console.log(String(symbolic.integrate("ln(x)", "x", { from: 0, to: 1 }).value));
Checked output
-1
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Scalar integrands with simple discontinuity sets, and introductory Darboux partitions of roughly 2–32 subintervals.
For this problem type. Use a low-degree or elementary integrand and one to three integration variables, with one interval per dimension or a few piecewise bounds.
Focal example. The code above passed its displayed check in 57.38 ms on Node.
Same API, measured input family.symbolic.integrate · degree. Baseline test points across courses 0, 1, 2, 5, 10. The integral of x^n over [0,1] is 1/(n+1).
Practical limit. Largest passing sample 500 (195 ms, 88.7 MiB peak process RSS). The first sampled passing call above 100 ms used 500 (195 ms). The runs did not locate a ceiling for this family. Polynomial primitives are a favorable case. Singular endpoints, non-elementary primitives and unevaluated integrals need separate treatment.
Measured times, memory and outcomes
degree · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
0
Baseline
Passed
5.98
75.7
1
Baseline
Passed
8.66
75.9
2
Baseline
Passed
7.14
75.7
5
Baseline
Passed
9.22
75.5
10
Baseline
Passed
8.48
75.8
30
Stretch
Passed
56.11
88.9
100
Stretch
Passed
78.06
88.4
500
Stretch
Passed
195
88.7
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
symbolic.integrate · 11 passing test cases, 47 distinct argument descriptions
Pass the integrand and variable separately. Finite bounds request a definite integral. For an antiderivative, differentiate the proposed expression on its domain.
JavaScript module
import * as symbolic from "@ratmath/symbolic";
console.log(String(symbolic.integrate("1/x^2", "x", { from: 1, to: "inf" }).value));
Checked output
1
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Scalar integrands with simple discontinuity sets, and introductory Darboux partitions of roughly 2–32 subintervals.
For this problem type. Use a low-degree or elementary integrand and one to three integration variables, with one interval per dimension or a few piecewise bounds.
Focal example. The code above passed its displayed check in 46.00 ms on Node.
Same API, measured input family.symbolic.integrate · degree. Baseline test points across courses 0, 1, 2, 5, 10. The integral of x^n over [0,1] is 1/(n+1).
Practical limit. Largest passing sample 500 (195 ms, 88.7 MiB peak process RSS). The first sampled passing call above 100 ms used 500 (195 ms). The runs did not locate a ceiling for this family. Polynomial primitives are a favorable case. Singular endpoints, non-elementary primitives and unevaluated integrals need separate treatment.
Measured times, memory and outcomes
degree · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
0
Baseline
Passed
5.98
75.7
1
Baseline
Passed
8.66
75.9
2
Baseline
Passed
7.14
75.7
5
Baseline
Passed
9.22
75.5
10
Baseline
Passed
8.48
75.8
30
Stretch
Passed
56.11
88.9
100
Stretch
Passed
78.06
88.4
500
Stretch
Passed
195
88.7
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
symbolic.integrate · 11 passing test cases, 47 distinct argument descriptions
Pass the integrand and variable separately. Finite bounds request a definite integral. For an antiderivative, differentiate the proposed expression on its domain.
JavaScript module
import * as symbolic from "@ratmath/symbolic";
console.log(String(symbolic.integrate("1/sqrt(x)", "x", { from: 0, to: 1 }).value));
Checked output
2
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Scalar integrands with simple discontinuity sets, and introductory Darboux partitions of roughly 2–32 subintervals.
For this problem type. Use a low-degree or elementary integrand and one to three integration variables, with one interval per dimension or a few piecewise bounds.
Focal example. The code above passed its displayed check in 85.83 ms on Node.
Same API, measured input family.symbolic.integrate · degree. Baseline test points across courses 0, 1, 2, 5, 10. The integral of x^n over [0,1] is 1/(n+1).
Practical limit. Largest passing sample 500 (195 ms, 88.7 MiB peak process RSS). The first sampled passing call above 100 ms used 500 (195 ms). The runs did not locate a ceiling for this family. Polynomial primitives are a favorable case. Singular endpoints, non-elementary primitives and unevaluated integrals need separate treatment.
Measured times, memory and outcomes
degree · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
0
Baseline
Passed
5.98
75.7
1
Baseline
Passed
8.66
75.9
2
Baseline
Passed
7.14
75.7
5
Baseline
Passed
9.22
75.5
10
Baseline
Passed
8.48
75.8
30
Stretch
Passed
56.11
88.9
100
Stretch
Passed
78.06
88.4
500
Stretch
Passed
195
88.7
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
symbolic.integrate · 11 passing test cases, 47 distinct argument descriptions
Compute the left Riemann sum for with 4 equal subintervals.
Worked solution
.
Using RatMath
Put the arithmetic inside the R tag so RatMath parses the literals. Keep fractions as ratios throughout the calculation and attach the units from the problem to the result.
JavaScript module
import { R, sum } from "@ratmath/core";
console.log(String(sum(0, 3, (i) => R`(${i}/2)^2 * 1/2`)));
Checked output
7/4
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Scalar integrands with simple discontinuity sets, and introductory Darboux partitions of roughly 2–32 subintervals.
Focal example. The code above passed its displayed check in 0.233 ms on Node.
Related workload in this unit.core.range · terms. Baseline test points across courses 1, 10, 100, 1,000. Check length and every consecutive integer from 1 through n.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 1,000,000 (141 ms, 277.5 MiB peak process RSS). The first sampled passing call above 100 ms used 1,000,000 (141 ms). The runs did not locate a ceiling for this family. Keeping the entire result requires storage proportional to its length. Shortening the displayed list after construction still pays that cost.
Measured times, memory and outcomes
terms · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
0.173
75.5
10
Baseline
Passed
0.192
74.9
100
Baseline
Passed
0.269
74.7
1,000
Baseline
Passed
1.52
75.6
10,000
Stretch
Passed
5.29
80.9
100,000
Stretch
Passed
11.57
109.6
1,000,000
Stretch
Passed
141
277.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
core.R · 2 passing test cases, 10 distinct argument descriptions
Pass the integrand and variable separately. Finite bounds request a definite integral. For an antiderivative, differentiate the proposed expression on its domain.
JavaScript module
import * as symbolic from "@ratmath/symbolic";
console.log(String(symbolic.integrate("2x + 1", "x", { from: 1, to: 3 }).value));
Checked output
10
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Scalar integrands with simple discontinuity sets, and introductory Darboux partitions of roughly 2–32 subintervals.
For this problem type. Use a low-degree or elementary integrand and one to three integration variables, with one interval per dimension or a few piecewise bounds.
Focal example. The code above passed its displayed check in 3.77 ms on Node.
Same API, measured input family.symbolic.integrate · degree. Baseline test points across courses 0, 1, 2, 5, 10. The integral of x^n over [0,1] is 1/(n+1).
Practical limit. Largest passing sample 500 (195 ms, 88.7 MiB peak process RSS). The first sampled passing call above 100 ms used 500 (195 ms). The runs did not locate a ceiling for this family. Polynomial primitives are a favorable case. Singular endpoints, non-elementary primitives and unevaluated integrals need separate treatment.
Measured times, memory and outcomes
degree · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
0
Baseline
Passed
5.98
75.7
1
Baseline
Passed
8.66
75.9
2
Baseline
Passed
7.14
75.7
5
Baseline
Passed
9.22
75.5
10
Baseline
Passed
8.48
75.8
30
Stretch
Passed
56.11
88.9
100
Stretch
Passed
78.06
88.4
500
Stretch
Passed
195
88.7
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
symbolic.integrate · 11 passing test cases, 47 distinct argument descriptions
Is a bounded function on [0,1] that is 1 only at x=1/2 and zero elsewhere Riemann integrable?
Worked solution
Isolate the one nonzero point in an arbitrarily short collection of subintervals. Upper sums tend to zero and lower sums are zero.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. Scalar integrands with simple discontinuity sets, and introductory Darboux partitions of roughly 2–32 subintervals.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 32 / 40 · Integration
A nonintegrable bounded function
Worked by hand
Problem
For the indicator of Q on [0,1], find every lower and upper Darboux sum.
Worked solution
Every nondegenerate subinterval meets rational and irrational numbers, so lower sums are 0 and upper sums are 1.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. Scalar integrands with simple discontinuity sets, and introductory Darboux partitions of roughly 2–32 subintervals.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 33 / 40 · Function sequences
Pointwise limit
Assisted@ratmath/analytic
Problem
Find the pointwise limit of on .
Worked solution
for and at : a discontinuous limit of continuous functions.
Using RatMath
The two evaluations illustrate the cases. Use geometric decay for every 0≤x<1 and handle x=1 separately.
JavaScript module
import * as analytic from "@ratmath/analytic";
const F = analytic.functionSequence("x^n");
console.log([F.pointwise("1/2"), F.pointwise("1")]);
Checked output
[0, 1]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. A family indexed by n and one real variable, with a specified open or closed domain; pointwise samples cannot verify a supremum over the whole domain.
For this problem type. Classroom tolerances often range from 10⁻¹ to 10⁻⁶. The associated N or δ can be orders of magnitude larger or smaller, depending on the function.
Focal example. The code above passed its displayed check in 0.576 ms on Node.
Related workload in this unit.analytic.sequence.nFor · decimal tolerance exponent. Baseline test points across courses 1, 2, 3, 4. For |1/n|<10^−d the first index is 10^d+1, including the strict-boundary case.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 12 (10.71 ms, 78.8 MiB peak process RSS). Library refusal at 16. A tiny ε may force a very large witness index. Check the whole tail when certifying an N for a nonmonotone sequence.
Measured times, memory and outcomes
decimal tolerance exponent · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
8.20
79.8
2
Baseline
Passed
10.10
79.5
3
Baseline
Passed
8.40
80.3
4
Baseline
Passed
18.49
80.5
6
Stretch
Passed
8.67
80.2
8
Stretch
Passed
8.84
80.3
12
Stretch
Passed
10.71
78.8
16
Stretch
Library refusal · AnalyticError: no index was found where the terms are within ε of the limit
10.35
80.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.functionSequence · 7 passing test cases, 9 distinct argument descriptions
For the half-open interval prove that the supremum is 1 for each n, although no x in the interval attains it.
JavaScript module
import * as analytic from "@ratmath/analytic";
console.log(analytic.functionSequence("x^n").uniform(["0","1/2"]).verdict);
Checked output
uniform
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. A family indexed by n and one real variable, with a specified open or closed domain; pointwise samples cannot verify a supremum over the whole domain.
For this problem type. Classroom tolerances often range from 10⁻¹ to 10⁻⁶. The associated N or δ can be orders of magnitude larger or smaller, depending on the function.
Focal example. The code above passed its displayed check in 51.65 ms on Node.
Related workload in this unit.analytic.sequence.nFor · decimal tolerance exponent. Baseline test points across courses 1, 2, 3, 4. For |1/n|<10^−d the first index is 10^d+1, including the strict-boundary case.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 12 (10.71 ms, 78.8 MiB peak process RSS). Library refusal at 16. A tiny ε may force a very large witness index. Check the whole tail when certifying an N for a nonmonotone sequence.
Measured times, memory and outcomes
decimal tolerance exponent · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
8.20
79.8
2
Baseline
Passed
10.10
79.5
3
Baseline
Passed
8.40
80.3
4
Baseline
Passed
18.49
80.5
6
Stretch
Passed
8.67
80.2
8
Stretch
Passed
8.84
80.3
12
Stretch
Passed
10.71
78.8
16
Stretch
Library refusal · AnalyticError: no index was found where the terms are within ε of the limit
10.35
80.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.functionSequence · 7 passing test cases, 9 distinct argument descriptions
For on , find the mean square error of the 3-term Fourier sum .
Worked solution
By Bessel's equality, . Half of that is .
Using RatMath
Use the period or sample convention shown. Keep the normalization when converting a coefficient or transform value back to the original signal.
JavaScript module
import * as analytic from "@ratmath/analytic";
console.log(analytic.fourier("x", [-1, 1], { terms: 3 }).exact().meanSquareError());
Checked output
0.05751455563627443977:0.0575145556456395458
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. A family indexed by n and one real variable, with a specified open or closed domain; pointwise samples cannot verify a supremum over the whole domain.
For this problem type. Keep about 2–16 harmonics, nodes or modes in a worked example. For a transform specify interval, frequency convention and sampling rate.
Focal example. The code above passed its displayed check in 88.52 ms on Node. Both enclosure endpoints also met the lesson’s stated numerical tolerance.
Same API, measured input family.analytic.fourier.exact · partial-sum order. Baseline test points across courses 1, 2, 4, 8. For odd f(x)=x, every cosine coefficient vanishes, including the constant term.
Practical limit. Largest passing sample 16 (2,617 ms, 131.8 MiB peak process RSS). Time cutoff at 32, 64. The first sampled passing call above one second used 16 (2,617 ms). Check enclosure widths as well as inclusion of the target. High harmonics require increasingly oscillatory integrals.
Measured times, memory and outcomes
partial-sum order · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
32.79
89.7
2
Baseline
Passed
109
90.9
4
Baseline
Passed
215
91
8
Baseline
Passed
764
92.7
16
Stretch
Passed
2,617
131.8
32
Stretch
Time cutoff
—
133.5
64
Stretch
Time cutoff
—
134.2
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.fourier · 4 passing test cases, 5 distinct argument descriptions
is compact by Heine–Borel. The cover , , of has no finite subcover. For any two distinct rationals choose an irrational strictly between them. Its two open half-lines separate the pair in any rational subspace containing both. Thus every connected subset of the rationals has at most one point.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. A family indexed by n and one real variable, with a specified open or closed domain; pointwise samples cannot verify a supremum over the whole domain.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 37 / 40 · Function sequences
Fixed point theorem
Assisted@ratmath/analytic
Problem
Show every continuous has a fixed point, and find the fixed point of on .
Worked solution
has , so vanishes by the intermediate value theorem. For : .
Using RatMath
The fixed-point iteration finds the cosine example. Apply the intermediate value theorem to f(x)−x to handle every continuous self-map.
JavaScript module
import * as analytic from "@ratmath/analytic";
console.log(analytic.fixedPoint("cos(x)", "1/2").root);
Checked output
0.7390851332151606416[5:6]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. A family indexed by n and one real variable, with a specified open or closed domain; pointwise samples cannot verify a supremum over the whole domain.
For this problem type. Use one scalar function, one starting point or bracket and about 3–20 displayed iterations. Typical requested errors are 10⁻³ to 10⁻¹⁰.
Focal example. The code above passed its displayed check in 8.34 ms on Node. Both enclosure endpoints also met the lesson’s stated numerical tolerance.
Related workload in this unit.analytic.bisection · decimal tolerance exponent. Baseline test points across courses 2, 4, 6, 8. Both the returned root and its final bracket must contain or agree with √2 to the requested tolerance, allowing one double-precision ulp for the floating trace. Check enclosure endpoint squares.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 24 (7.66 ms, 79.5 MiB peak process RSS). The runs did not locate a ceiling for this family. The displayed iteration trace uses doubles; precision eventually stops improving. A bracket with several roots can select different roots under different starting bounds. Compare the returned enclosure with the trace.
Measured times, memory and outcomes
decimal tolerance exponent · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
4.24
74.7
4
Baseline
Passed
4.72
77.2
6
Baseline
Passed
4.12
77
8
Baseline
Passed
6.67
76.9
10
Stretch
Passed
4.27
77.4
12
Stretch
Passed
4.18
75.9
16
Stretch
Passed
4.90
76.4
24
Stretch
Passed
7.66
79.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.fixedPoint · 2 passing test cases, 2 distinct argument descriptions
Why is a uniform limit of continuous functions continuous?
Worked solution
Split |f(x)−f(a)| into three differences. Bound the outer two uniformly by ε/3 and apply continuity of a single approximant to the middle term.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. A family indexed by n and one real variable, with a specified open or closed domain; pointwise samples cannot verify a supremum over the whole domain.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 39 / 40 · Function sequences
Interchanging limits and integrals
Worked by hand
Problem
On [0,1] let fₙ=n on (0,1/n) and zero elsewhere. Does pointwise convergence to zero force the integrals to vanish?
Worked solution
Each integral equals 1. Concentration on a shrinking interval prevents passing the limit through the integral.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. A family indexed by n and one real variable, with a specified open or closed domain; pointwise samples cannot verify a supremum over the whole domain.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 40 / 40 · Function sequences
Failure of a tail certificate
Assisted@ratmath/analytic
Problem
For aₙ=1/(1+(n−50)²), what is the least positive N with aₙ<1/2 for all n≥N?
Worked solution
Values at 49,50,51 violate the strict inequality. From 52 onward the denominator is at least 5 and increases. The pinned verifier can accept an altered N=1, so check this argument independently.
Using RatMath
Enter the term in n. The sequence method works with the rule for the terms, so retain the index and its starting value when adapting the example.
JavaScript module
import * as analytic from "@ratmath/analytic";
console.log(analytic.sequence("1/(1+(n-50)^2)").nFor("1/2").N);
Checked output
52
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. A family indexed by n and one real variable, with a specified open or closed domain; pointwise samples cannot verify a supremum over the whole domain.
For this problem type. Classroom tolerances often range from 10⁻¹ to 10⁻⁶. The associated N or δ can be orders of magnitude larger or smaller, depending on the function.
Focal example. The code above passed its displayed check in 5.59 ms on Node.
Same API, measured input family.analytic.sequence.nFor · decimal tolerance exponent. Baseline test points across courses 1, 2, 3, 4. For |1/n|<10^−d the first index is 10^d+1, including the strict-boundary case.
Practical limit. Largest passing sample 12 (10.71 ms, 78.8 MiB peak process RSS). Library refusal at 16. A tiny ε may force a very large witness index. Check the whole tail when certifying an N for a nonmonotone sequence.
Measured times, memory and outcomes
decimal tolerance exponent · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
8.20
79.8
2
Baseline
Passed
10.10
79.5
3
Baseline
Passed
8.40
80.3
4
Baseline
Passed
18.49
80.5
6
Stretch
Passed
8.67
80.2
8
Stretch
Passed
8.84
80.3
12
Stretch
Passed
10.71
78.8
16
Stretch
Library refusal · AnalyticError: no index was found where the terms are within ε of the limit
10.35
80.5
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
analytic.sequence · 21 passing test cases, 27 distinct argument descriptions
Fixed · The verifier rejects a false tail index. For aₙ=1/(1+(n−50)²) and ε=1/2, changing N to 1 now fails verification. The later term a₅₀=1 proves the modified claim false.