日本語

← WASAN home · Interactive calculators · Downloads

Calculator reference

This guide describes all 83 calculators in WASAN. It uses the same descriptions, input guidance, and precision labels as the interactive site. You do not need JavaScript to read it.

The reference follows the same six-chapter learning path as the interactive laboratory. The chapter order is for learning, not a historical timeline.

Look-and-Say and the Collatz Conjecture are explicitly modern comparison material, not historical wasan. To run a calculation, follow a calculator link and enable JavaScript. This reference does not execute calculations and is not a server-side calculation API.

Chapter 1 · Foundations

01. Cranes and Turtles

Separate two populations from heads and legs

Use the total number of heads and legs to recover the two populations exactly.

Result
Numbers of cranes and turtles (Exact integer calculation)
Formula
turtles = (legs − 2 × heads) / 2
Method
Subtract twice the number of heads from the leg count, divide by two for turtles, and take the remainder as cranes.
Conditions
The crane and turtle counts must be non-negative integers. The total leg count minus twice the head count must be even.
Historical position
Tsurukamezan is a classic East Asian problem type. The method illustrates linear equations without requiring symbolic notation.

Inputs

Open this calculator →

02. Surplus and Deficit

Infer a group size from two distributions

Compare a distribution that leaves a surplus with one that produces a deficit.

Result
Number of people and total number of items (Exact integer calculation)
Formula
people = (surplus + deficit) / (larger share − smaller share)
Method
Divide surplus plus deficit by the difference between the two per-person shares, then reconstruct the total stock.
Conditions
The larger share must exceed the smaller one, and the resulting counts must be non-negative integers.
Historical position
Kafusokuzan problems were widely used to teach practical proportional and linear reasoning.

Inputs

Open this calculator →

03. Mouse Problems and Geometric Growth

Follow repeated multiplication

Calculate a geometric progression without carrying out every multiplication separately.

Result
Final value (Exact integer calculation)
Formula
final amount = initial amount × factor^steps
Method
Raise the growth factor to the number of steps and multiply by the starting amount using exact integer arithmetic.
Conditions
The starting value, multiplier, and number of steps must lie within the stated integer ranges.
Historical position
Nezumizan, or mouse problems, dramatized rapid multiplication through a familiar story and became a standard recreational theme.

Inputs

Open this calculator →

04. The Oil-Jug Problem

Measure a quantity using only containers

Given three unmarked vessels, find a shortest sequence of legal pours that measures the target amount.

Result
Minimum number of pours (Shortest sequence, integer states)
Formula
amount poured = min(source amount, free capacity at destination)
Method
A breadth-first search explores every allowed pour between vessels until the target amount is reached.
Conditions
Capacities and target must be integers in range. No sequence exists if the target is not a multiple of the greatest common divisor of the vessel capacities.
Historical position
Oil-measuring problems appear in Japanese recreational arithmetic as practical measurement puzzles.

Inputs

Open this calculator →

05. Digit-by-Digit Square Root

Build a square root one digit at a time

Bring down the radicand two digits at a time and choose each new digit without using a floating-point square-root function.

Result
Square root √N (Exact digits and bounds)
Formula
(20p + q)q ≤ the current remainder after bringing down the next two-digit group; q ∈ {0, …, 9}
Method
If p is the root found so far, choose the largest digit q for which (20p+q)q does not exceed the current remainder after bringing down the next two-digit group.
Conditions
The result is truncated, not rounded. Inputs must be non-negative decimal numbers; complex roots and scientific notation are outside this tool.
Historical position
This is a teaching implementation of the digit-by-digit root extraction used in wasan and elsewhere; it is not presented as an exclusively Japanese invention.

Inputs

Open this calculator →

06. Digit-by-Digit Cube Root

Build a cube root one digit at a time

Extract a cube root by grouping digits in threes and choosing each new digit exactly.

Result
Cube root ∛N (Exact digits and bounds)
Formula
(300r² + 30rq + q²)q ≤ the current remainder after bringing down the next three-digit group
Method
At each stage, choose the largest q for which (300r²+30rq+q²)q fits within the current remainder after bringing down the next three-digit group.
Conditions
The result is truncated rather than rounded. This tool handles non-negative real inputs only.
Historical position
Kairitsu is the cube-root counterpart of traditional digit-by-digit root extraction.

Inputs

Open this calculator →

07. Kōkojutsu: Right Triangles

Find a side of a right triangle

Calculate the hypotenuse from the two perpendicular sides.

Result
Hypotenuse c (Approximate square root)
Formula
c² = a² + b²
Method
Form a²+b² and take its non-negative square root.
Conditions
Both legs must be positive and use the same unit. The displayed square root is a decimal approximation unless it is exact.
Historical position
The traditional terms kō and ko name the two legs of a right triangle. The relation itself belongs to the wider East Asian mathematical tradition and is not unique to Japan.

Inputs

Open this calculator →

08. Integer Right-Triangle Triples

Make a right triangle with integer sides

Generate three integer sides satisfying the right-triangle equation.

Result
Integer side lengths (Squared identity checked exactly)
Formula
2mn, m²−n², m²+n²
Method
Calculate m²−n², 2mn, and m²+n², then apply the chosen scale and verify the square identity.
Conditions
Require m>n>0. Coprimality and opposite parity are needed only when a primitive triple is desired.
Historical position
Integer right triangles were studied in many traditions; this tool connects them to the kō-ko terminology of East Asian mathematics.

Inputs

Open this calculator →

09. Area from Three Sides

Find area without knowing the altitude

Use the three side lengths to obtain the area and related quantities.

Result
Area of the triangle (Exact squared area)
Formula
area² = s(s−a)(s−b)(s−c); s = (a+b+c)/2
Method
Apply Heron’s formula in exact squared form, then take the non-negative square root for the displayed area.
Conditions
The three positive lengths must satisfy the strict triangle inequalities.
Historical position
Three-side area problems were prominent in wasan. The modern Heron formula provides a transparent equivalent calculation.

Inputs

Open this calculator →

10. Hyakugo Remainder Method

Reconstruct a number from its remainders

Find the least non-negative integer that satisfies several remainder conditions, together with the period of all solutions.

Result
Least non-negative integer satisfying the conditions (Exact large-integer arithmetic)
Formula
x ≡ r₁ (mod m₁), x ≡ r₂ (mod m₂), …
Method
Conditions are merged one row at a time with greatest common divisors and the extended Euclidean algorithm.
Conditions
Moduli need not be coprime, but incompatible conditions have no solution. Every remainder is normalized before calculation.
Historical position
The classic moduli 3, 5, and 7 come from the Chinese Remainder Problem and were also studied in wasan; arbitrary moduli are a modern extension.

Inputs

Open this calculator →

11. Mamako-date and Elimination Circles

Count around a ring to find the survivors

Remove every kth person around a circle and report the requested final survivors.

Result
Numbers of the remaining participants (Exact integer elimination order)
Formula
j₁=0; jₙ=(jₙ₋₁+k) mod n
Method
Use the Josephus recurrence for one survivor and direct indexed simulation when several survivors are requested.
Conditions
Population, step, start, and survivor count must be integers in the documented ranges.
Historical position
Mamako-date is a Japanese counting-out tale related to the wider Josephus family of problems.

Inputs

Open this calculator →

12. Magic Squares

Make rows, columns, and diagonals agree

Generate a normal magic square of any supported order and verify every row, column, and main diagonal.

Result
Common sum of rows, columns and main diagonals (Rows, columns and diagonals checked)
Formula
common line sum M = n(n²+1)/2
Method
Choose the standard construction for the order class, then recompute every required sum.
Conditions
Order two has no normal magic square; supported orders run from 3 through 16.
Historical position
Magic squares were studied across Asia, and Japanese mathematicians produced notable Edo-period work on them.

Inputs

Open this calculator →

13. Keida-seki: Stacked Sums

Sum an entire stack at once

From the triangular sum 1+2+…+n to sums of fifth powers, evaluate a whole stack exactly from its base size instead of counting layer by layer.

Result
1ᵖ + 2ᵖ + … + nᵖ (Exact integer calculation)
Formula
Σ kᵖ (p=1,…,5)
Method
For powers 1 through 5, evaluate closed-form power-sum formulas with BigInt arithmetic. The table shows selected levels and cumulative totals for inspection.
Conditions
n must be non-negative. The formulas are implemented in modern notation; this calculator does not reenact the historical counting-rod or tenzan procedures.
Historical position
Wasan developed methods for stacked sums (daseki). A modern commentary on Sanpō Tenzan Shinanroku discusses square and cubic stacks, including a cubic-stack example with base size 5 and total 225. This tool presents those cases in the unified modern language of power sums.

Inputs

Open this calculator →

14. Polygonal Numbers

Unify triangular, pentagonal and hexagonal numbers

Triangular, square, pentagonal, hexagonal and higher polygonal numbers all follow one rule. Compute any term exactly for k from 3 through 30.

Result
The nth k-gonal number (Exact integer calculation)
Formula
Pₖ(n)=((k−2)n²−(k−4)n)/2
Method
Evaluate the modern general polygonal-number formula using exact integer arithmetic.
Conditions
k must be from 3 through 30 and n must be non-negative. Treating every case as a single family of “k-gonal numbers” is a modern organization; this page does not claim that Edo-period wasan used the same terminology or unified all k in this way.
Historical position
Wasan includes studies of stacked sums and regular polygons, both of which connect numerical patterns with geometry. This page connects those themes to the modern theory of polygonal numbers.

Inputs

Open this calculator →

Chapter 2 · Patterns, Counting & Integers

15. Factorials, Permutations and Combinations

Count arrangements and selections

Compute n!, nPr and nCr from the same inputs. Modern notation is used here to present counting ideas that also appear in wasan.

Result
n!, nPr and nCr (Exact integer calculation)
Formula
nPr=n!/(n−r)! / nCr=n!/(r!(n−r)!)
Method
Compute factorials, permutations and binomial coefficients exactly with BigInt arithmetic.
Conditions
0≤n≤500 and 0≤r≤n. The symbols n!, nPr and nCr are modern notation, not transcriptions of historical wasan notation.
Historical position
Wasan includes work corresponding to permutations, combinations and other counting problems. This page presents those ideas using modern factorial, permutation and combination notation.

Inputs

Open this calculator →

16. Chikusaku: Exhaustive Enumeration

Follow every candidate branch

Enumerate every r-element selection from n objects, then verify that the total agrees with nCr.

Result
Number of choices enumerated (All candidates enumerated exactly)
Formula
enumerated count = C(n,r)
Method
Generate combinations in increasing order by depth-first enumeration, then verify the final count against the binomial coefficient.
Conditions
n≤10. This combination enumerator is a modern teaching model of chikusaku-style exhaustive search; it is not a line-by-line reconstruction of a particular problem from Sanpō Chikusakujutsu.
Historical position
Wasan includes a family of exhaustive-search and counting methods called chikusakujutsu. Surviving works include Aida Yasuaki’s Sanpō Chikusakujutsu and the manuscript Chikusaku Kihō.

Inputs

Open this calculator →

17. Bell Numbers and Genjikō

Count the 52 Genjikō patterns

Compute Bₙ, the number of ways to partition n distinct objects into nonempty unlabeled groups. For n=5, the answer is 52.

Result
Bell number Bₙ (Exact integer calculation)
Formula
Bₙ₊₁=Σₖ C(n,k)Bₖ
Method
Starting with B₀=1, use the binomial-coefficient recurrence to compute successive Bell numbers exactly with BigInt arithmetic.
Conditions
n≤30. “Bell number” and the symbol Bₙ are modern terminology; this page does not claim that Edo-period sources used that name.
Historical position
Later scholarship has compared counting results in wasan, including work by Matsunaga Yoshisuke, with the sequence now called the Bell numbers. The 52 Genjikō patterns record which of five incense samples are judged to have the same scent.

Inputs

Open this calculator →

18. Stirling Numbers

Count partitions and permutation cycles

Compute Stirling numbers of the second kind S(n,k) and unsigned Stirling numbers of the first kind c(n,k) exactly by recurrence.

Result
Stirling number (Exact integer calculation)
Formula
S(n,k)=S(n−1,k−1)+kS(n−1,k)
Method
Build the triangular table from the boundary value (0,0)=1. The unsigned first kind uses its own recurrence.
Conditions
n≤25. The name “Stirling number” and the symbols used here are modern. Equivalences with historical wasan sequences are presented as comparisons made by later scholarship.
Historical position
Later researchers studying wasan combinatorics have identified correspondences between results by practitioners such as Saka Masanaga and results that can now be expressed in terms of Stirling numbers.

Inputs

Open this calculator →

19. Jiyaku: Prime Factorization

Break an integer into primes and list primes

Factor an integer into primes and list all primes up to a chosen limit. This modern implementation is presented alongside wasan work on jiyaku and prime numbers.

Result
Prime factorization of N (Exact integer calculation)
Formula
N=∏pᵉ
Method
Use modern trial division by 2, 3 and then candidates of the form 6m±1, plus a sieve for the prime list. This is not a reconstruction of the historical jiyaku procedure.
Conditions
The integer to factor must be from 2 through 1 trillion; the prime-list limit is at most 5,000. This is not a general high-performance factorization engine for arbitrarily large integers.
Historical position
Wasan sources and later scholarship discuss jiyaku in connection with factorization and prime numbers. Modern studies examine sources including Matsunaga Yoshisuke’s Sanpō Ruijū.

Inputs

Open this calculator →

20. Prime Counting

How many primes are at most N?

Use a sieve to count the primes from 2 through N and compute the prime-counting function π(N) exactly.

Result
π(N) — number of primes at most N (Exact integer calculation)
Formula
π(N)=#{p≤N : p is prime}
Method
Use the Sieve of Eratosthenes to mark composites and count the remaining primes up to N.
Conditions
N must not exceed 5,000,000. This is a modern sieve implementation, not a reconstruction of Kurushima’s historical procedure.
Historical position
Kurushima Yoshihiro’s surviving work includes questions related to primes and number theory. Later scholarship has also discussed his work in relation to counting primes. This calculator expresses that question with the modern notation π(N).

Inputs

Open this calculator →

21. Kurushima and the Totient Function

Count integers coprime to N

Use the prime factorization of N to count the positive integers from 1 through N that are coprime to it.

Result
φ(N) (Exact integer calculation)
Formula
φ(N)=N∏ₚ|N(1−1/p)
Method
Factor N and, for each distinct prime factor p, update the count by multiplying by (p−1)/p.
Conditions
1≤N≤1 trillion, with φ(1)=1. The symbol φ and the product formula are modern notation.
Historical position
Later scholarship has compared a result in Kurushima Yoshihiro’s Kyūshi Ikō with Euler’s totient function; the correspondence is sometimes discussed under the label “Kurushima–Euler function.” This page separates the Japanese manuscript tradition from the European publication history rather than reducing the question to a simple priority claim.

Inputs

Open this calculator →

22. Tawara-sugi and Power Sums

Sum an entire stack at once

Move from the triangular stack 1+2+…+n to exact sums of powers as high as the twelfth.

Result
1ᵖ + 2ᵖ + … + nᵖ (Exact integer calculation)
Formula
S(n) = Σ ΔᵏS(0) · C(n, k)
Method
Form cumulative sums from S(0)=0, take forward differences, and evaluate the resulting Newton-series expression exactly.
Conditions
n must be a non-negative integer and p an integer from 0 through 12. The broader power-sum treatment is a pedagogical extension of the stacking problem.
Historical position
Tawara-sugi problems count bales arranged in triangular stacks. This tool uses that familiar entry point to explore the wider mathematics of power sums.

Inputs

Open this calculator →

23. Shosaho Difference Interpolation

Recover an unknown value from differences

Build successive finite differences from values at equally spaced x-coordinates, then evaluate the unique interpolating polynomial.

Result
Interpolating polynomial value P(x) (Exact rational arithmetic)
Formula
P(x) = Σ C(t, k) Δᵏy₀; t = (x − x₀) / h
Method
Multiply the first entry in each difference row by the generalized binomial coefficient C(t,k), then add the terms exactly as rational numbers.
Conditions
With n observations this chooses the polynomial of degree at most n−1 through those points. It does not prove that the underlying phenomenon is polynomial, and extrapolation needs care.
Historical position
Shosaho grew from East Asian calendrical interpolation and was developed within wasan. The forward-difference notation used here is modern.

Inputs

Open this calculator →

24. Hermite Interpolation

Match both values and slopes

For n distinct x-values, construct the unique polynomial of degree at most 2n−1 that matches the supplied values and first derivatives.

Result
Value of the interpolating polynomial (Exact rational arithmetic)
Formula
P(xᵢ)=yᵢ, P′(xᵢ)=mᵢ; degree ≤ 2n−1
Method
Construct Hermite basis polynomials for the values and slopes, then combine and evaluate them in exact rational arithmetic.
Conditions
x-values must be distinct. The resulting degree is at most 2n−1 and does not guarantee behavior between or beyond the conditions.
Historical position
This modern extension lets visitors compare ordinary difference interpolation with a problem that also fixes slopes.

Inputs

Open this calculator →

25. Continued Fractions and Best Ratios

Approximate with a small denominator

Find the best rational approximation permitted by a maximum denominator.

Result
Closest fraction within the denominator limit (Errors compared exactly)
Formula
x = a₀ + 1/(a₁ + 1/(a₂ + …))
Method
Expand the exact input as a continued fraction and compare the final convergent or semiconvergent at the limit.
Conditions
“Best” means minimum absolute error among denominators up to the chosen bound, with deterministic tie handling.
Historical position
Approximation by ratios provides a modern lens for numerical practices found throughout traditional computation.

Inputs

Open this calculator →

26. Fast Evaluation of Linear Recurrences

Evaluate distant terms without computing every step

Evaluate a constant-coefficient linear recurrence at a very large index, optionally modulo an integer.

Result
Value of the requested term (Exact integer arithmetic)
Formula
a(n)=c₁a(n−1)+…+c_d a(n−d)
Method
Use binary exponentiation modulo the recurrence’s characteristic polynomial, then combine the initial values with the resulting coefficients.
Conditions
Coefficients and initial values must be integers with absolute value at most 1,000,000. Indices start at 0. With modulus 0, calculation stops if an intermediate integer exceeds approximately 1,200 decimal digits. A positive modulus returns a non-negative remainder.
Historical position
This modern algorithm extends the geometric-growth idea of nezumizan to general linear recurrences.

Inputs

Open this calculator →

27. Look-and-Say

Read the digits to generate the next term

Read each run of identical digits as “how many, then which digit” and use that description as the next string.

Result
Final look-and-say string (Modern sequence — not historical wasan)
Formula
111221 → “three 1s, two 2s, one 1” → 312211
Method
Scan left to right, count each maximal run of equal digits, and replace it with “count + digit.”
Conditions
This is not historical wasan. A finite computation here is neither evidence that wasan practitioners studied this sequence nor a proof of any general property.
Historical position
The look-and-say sequence belongs to modern mathematics. It appears here in a clearly separate comparison section: a contemporary example of starting from computed terms and looking for structure, not a historical continuation claim.

Inputs

Open this calculator →

28. The Collatz Conjecture

Halve evens; triple odds and add one

Start with a positive integer. If it is even, divide by 2; if it is odd, replace it by 3n+1. Trace a finite orbit exactly and report its peak and the number of steps needed to reach 1.

Result
Orbit to 1 or cutoff result (Modern open problem — not historical wasan)
Formula
n→n/2 (even) / 3n+1 (odd)
Method
Use BigInt arithmetic to follow the orbit for a finite number of steps. If 1 is reached, record the number of steps and the largest value encountered.
Conditions
This is not historical wasan. Reaching 1 for finitely many inputs does not prove the conjecture, and failure to reach 1 before the selected cutoff is not necessarily a counterexample.
Historical position
The Collatz conjecture is a twentieth-century open problem in modern mathematics. Because accounts of its precise early history vary, this page makes no claim of historical continuity with Edo-period mathematics. It is included to illustrate the difference between computation, pattern finding and proof.

Inputs

Open this calculator →

Chapter 3 · Equations & Algebra

29. An Introduction to Tengenjutsu

Arrange coefficients and locate a root

Enter a one-variable polynomial by its coefficients and locate one real root inside a chosen interval.

Result
A real root x in the specified interval (Modern root-finding aid)
Formula
Bisect an interval whose endpoint values have opposite signs
Method
The historical coefficient idea is paired with modern bisection. Each midpoint and function value is retained for inspection.
Conditions
Except when an endpoint is already a root, the endpoint values must have opposite signs. It finds one real root, not all roots. Repeated roots may be missed; complex roots are not supported.
Historical position
Tengenjutsu, transmitted from Chinese mathematics, is a method for equations in one unknown. Numerical bisection is clearly separated here as a modern aid.

Inputs

Open this calculator →

30. Elimination and Determinants

Reduce two unknowns to one

Eliminate a shared variable from two quadratic expressions while keeping symbolic polynomial coefficients exact.

Result
Resulting elimination equation (Exact symbolic coefficients)
Formula
R = (B−D)² + (A−C)(AD−BC)
Method
Construct the elimination expression and verify it against the corresponding Sylvester determinant.
Conditions
The entered coefficient rows are limited to the documented degrees and integer size. The resulting equation is necessary and may include extraneous branches.
Historical position
In Seki’s work, determinant-like arrays served elimination rather than an abstract theory of determinants. This screen keeps that purpose in view.

Inputs

Open this calculator →

31. Systems of Linear Equations

Solve several unknowns together

Solve a system of linear equations by exact rational row reduction.

Result
Solution of the system (Exact rational arithmetic)
Formula
Choose a pivot row and eliminate that unknown from every other row
Method
Reduce the augmented matrix to reduced row-echelon form using exact rational arithmetic, then describe the unique solution, free-variable family, or inconsistency.
Conditions
The matrix format is one equation per line with the constant on the right. Singular systems are reported rather than forced into a unique answer.
Historical position
This is a modern generalization of elimination ideas that appear throughout East Asian algebra.

Inputs

Open this calculator →

32. All Real Roots of a Polynomial

Separate repeated and nearby roots

Count the distinct real roots of an integer polynomial and enclose each one in a rational interval.

Result
Number and locations of real roots (Exact root counts and multiplicities)
Formula
number of real roots = V(a) − V(b) on (a,b]
Method
Use square-free decomposition and Sturm sequences, then bisect rational intervals to the requested display scale.
Conditions
Coefficients must be integers within the stated bounds. Decimal midpoints are guides; the rational intervals and multiplicities carry the certification.
Historical position
This is a modern exact companion to historical equation work, not a claim that wasan writers used Sturm’s theorem.

Inputs

Open this calculator →

33. Repeated Roots and the Discriminant

Detect when roots collide

Calculate the discriminant exactly from a polynomial and its derivative.

Result
Discriminant D, using the modern sign convention (Exact rational arithmetic)
Formula
D = (−1)^(n(n−1)/2) Res(f,f′) / aₙ
Method
Form the exact Sylvester resultant and apply the standard modern sign and leading-coefficient normalization.
Conditions
The reported sign convention is modern and explicitly stated. A zero discriminant certifies repetition; a nonzero value does not locate the roots.
Historical position
Discriminants are used here as a modern continuation of elimination, not as terminology assigned retroactively to every historical array method.

Inputs

Open this calculator →

34. Greatest Common Divisor of Polynomials

Extract the factor shared by two expressions

Compute the monic greatest common divisor of two polynomials with rational coefficients.

Result
Monic greatest common divisor (Exact rational arithmetic)
Formula
gcd(f,g) = gcd(g, remainder of f divided by g)
Method
Run the Euclidean algorithm over rational coefficients and normalize the final nonzero polynomial to leading coefficient one.
Conditions
Both inputs must satisfy the degree and coefficient bounds. The zero-polynomial cases follow the standard gcd convention.
Historical position
This modern algebraic tool supports elimination and repeated-root analysis used elsewhere in the site.

Inputs

Open this calculator →

35. Square-Free Factorization

Separate factors by root multiplicity

Decompose a polynomial into factors that occur once, twice, three times, and so on.

Result
Product of factors grouped by multiplicity (Exact rational arithmetic)
Formula
f = leading coefficient × F₁ × F₂² × F₃³ × …
Method
Apply Yun’s exact square-free algorithm and normalize the factors over the rationals.
Conditions
The tool separates multiplicities but does not necessarily split each square-free factor into irreducibles.
Historical position
This modern algebraic tool supports the certified root and discriminant screens.

Inputs

Open this calculator →

36. General Elimination by Replacement

Use Seki-style replacement with symbolic coefficients

Apply polynomial replacement steps to eliminate y from two bivariate equations.

Result
Necessary condition after eliminating y (Two determinants compared exactly)
Formula
h₁=bₘf−aₙy^(n−m)g; det H=(−1)^(nm) Resᵧ(f,g)
Method
Perform exact pseudo-remainder steps and compare the final condition with the Sylvester resultant.
Conditions
The displayed resultant is a necessary elimination condition; substitution back into both equations remains essential.
Historical position
The presentation connects Seki’s replacement procedures with modern resultant language while keeping the two viewpoints distinct.

Inputs

Open this calculator →

37. Polynomial Translation

Move the unknown closer to a root

Substitute x=u+h and calculate every new coefficient exactly.

Result
Polynomial f(u+h) (Exact rational arithmetic)
Formula
f(u+h) = Σ bₖuᵏ
Method
Expand each power with binomial coefficients and collect equal powers of u in rational arithmetic.
Conditions
For a nonzero polynomial, translation preserves the degree and leading coefficient; it changes coordinates, not the roots’ relative structure.
Historical position
Changing the unknown’s origin is a natural companion to coefficient-based equation methods such as tengenjutsu.

Inputs

Open this calculator →

38. Power Sums of Polynomial Roots

Know sums of roots without solving for them

Find successive sums of powers of all roots, counted with multiplicity.

Result
Power sums of all roots, counted with multiplicity (Exact rational arithmetic)
Formula
Sₖ+a₁Sₖ₋₁+…+aₖ₋₁S₁+kaₖ=0 for k≤n
Method
Apply Newton’s identities in rational arithmetic, switching to the homogeneous recurrence after the polynomial degree.
Conditions
The calculation includes complex roots and multiplicity algebraically; it does not approximate or list the roots themselves.
Historical position
This is a modern symmetric-polynomial companion to the site’s exact equation tools.

Inputs

Open this calculator →

39. Higher-Order Root Extraction

Enclose roots up to the twentieth degree

Calculate the real kth root and certify its decimal bounds with integer inequalities.

Result
Real kth root (Certified interval)
Formula
Lᵏ ≤ N·10^(kp) < (L+1)ᵏ
Method
Find the greatest integer L with L^k not exceeding the scaled radicand, then convert L and L+1 into decimal bounds.
Conditions
Even roots require non-negative inputs; odd roots may be negative. An exact result is shown when available; otherwise, two adjacent decimals enclose the root.
Historical position
This extends the digit discipline of traditional square- and cube-root extraction with modern large-integer computation.

Inputs

Open this calculator →

40. Partial-Fraction Decomposition

Untangle a rational expression

Decompose a rational function whose denominator is supplied as linear factors with multiplicities.

Result
Partial-fraction decomposition (Exact rational arithmetic)
Formula
P(x)/D(x) = polynomial part + Σ Aᵢ,ⱼ/(x−rᵢ)ʲ
Method
Perform exact polynomial division, build a rational linear system for the coefficients, and verify recombination.
Conditions
Only linear factors with rational roots are supported.
Historical position
This modern symbolic tool supports rational approximation and series calculations elsewhere on the site.

Inputs

Open this calculator →

41. Rational Parametrization of a Conic

Trace a curve from one known point

Intersect a line of rational slope through a known rational point with a quadratic curve.

Result
Second intersection (x, y) (Exact rational arithmetic)
Formula
Substitute y−y₀=t(x−x₀) into the quadratic curve
Method
Substitute y−y0=t(x−x0), divide out the known root, and solve the remaining linear factor exactly.
Conditions
The supplied base point must lie on the conic. Tangent and degenerate line cases are reported separately.
Historical position
This is a modern algebraic construction included to extend exact equation and geometry work.

Inputs

Open this calculator →

42. All Intersections of a Circle and a Parabola

Find crossings and points of tangency

Reduce a circle–parabola intersection to one polynomial and isolate every real x-coordinate.

Result
Real intersection points (All intersections certified by intervals)
Formula
(x−h)²+(ax²+bx+c−k)²=r²
Method
Substitute the parabola into the circle, square-free factor the resulting quartic, isolate all real roots, and reconstruct y.
Conditions
Tangencies are retained with multiplicity information. Decimal coordinates summarize certified rational x-intervals.
Historical position
This modern tool joins elimination, exact root isolation, and geometry in one calculation that can be checked step by step.

Inputs

Open this calculator →

Chapter 4 · Measurement, Circles & Tables

43. Two-Station Surveying

Measure an inaccessible height

Use two observation points on one line and their measured slopes to infer a target’s height.

Result
Height of the target (Exact rational arithmetic)
Formula
x=d·t_far/(t_near−t_far); H=x·t_near+eye height
Method
Solve the two exact slope equations for distance and height, including the observer’s eye height.
Conditions
The nearer slope must exceed the farther slope and both observations must share a straight, level baseline.
Historical position
Surveying was an important practical application of Japanese mathematics; this screen uses a simplified two-station model.

Inputs

Open this calculator →

44. Polygon Area from Coordinates

Measure an irregular boundary from coordinates

Calculate the signed area, absolute area, orientation, and centroid of a simple polygon.

Result
Area of the polygon (Exact rational arithmetic)
Formula
2A = |Σ(xᵢyᵢ₊₁−xᵢ₊₁yᵢ)|
Method
Apply the shoelace sums exactly and divide the corresponding moments by six times the signed area.
Conditions
Vertices must be supplied in boundary order. Self-intersections and repeated-edge ambiguities are not interpreted as a simple land parcel.
Historical position
Coordinate area provides a modern computational counterpart to practical survey-area problems.

Inputs

Open this calculator →

45. Kakujutsu and Regular Polygons

Relate an angle to a polynomial

Build the polynomial recurrence for twice the cosine of a central angle and connect it to a regular polygon.

Result
Side length of the regular polygon (Coefficients linked to geometry)
Formula
C₀=2, C₁=t, Cₖ=tCₖ₋₁−Cₖ₋₂; Cₙ(t)=2
Method
Generate C0=2, C1=t, and Ck=tCk−1−Ck−2, then impose Cn(t)=2.
Conditions
The displayed equation can factor; it is not necessarily the minimal polynomial of t=2cos(2π/n).
Historical position
Inspired by Seki’s work on regular polygons, this calculator uses a modern angle recurrence. It does not reconstruct the lost historical method for predicting equation degrees.

Inputs

Open this calculator →

46. Cyclotomic Polynomials and Algebraic Degree

Explore the algebraic structure of regular polygons

Compute the minimal polynomial of t=2cos(2π/n) and verify its relation to the nth cyclotomic polynomial.

Result
Minimal polynomial of t = 2cos(2π/n) (Identities checked with integer coefficients)
Formula
zᵈ Ψ(z+z⁻¹)=Φₙ(z); d=φ(n)/2
Method
Construct Φn(z), eliminate reciprocal pairs, and recover the integer polynomial in t.
Conditions
The tool treats n from 3 through 60. Constructibility by straightedge and compass is a separate question.
Historical position
This modern algebraic result sharpens the polynomial viewpoint introduced by the kakujutsu screen.

Inputs

Open this calculator →

47. Enri and Convergence Acceleration

From polygons to pi

Starting with a regular hexagon, repeatedly double the number of sides and compare inscribed and circumscribed bounds for pi.

Result
Approximate bounds for π (Approximate decimal value)
Formula
inscribed semiperimeter < π < circumscribed semiperimeter
Method
For a unit circle, update the half-chord with a stable square-root recurrence, then compare inner and outer semiperimeters. A three-term extrapolation is shown separately.
Conditions
The geometric inequalities are exact, but the displayed decimal values use floating-point arithmetic. The accelerated value is not itself a certified bound.
Historical position
Enri is the wasan study of circles and curved figures. This tool presents polygonal approximation in modern notation and distinguishes it from later convergence acceleration.

Inputs

Open this calculator →

48. Certified Digits of Pi

Turn upper and lower bounds into 50 digits

Compute digits of pi that are confirmed by exact rational bounds.

Result
Certified digits of π (Certified truncated digits)
Formula
π² = 18 Σ 1 / (n² C(2n,n))
Method
Bound a rapidly convergent series for pi² with rational arithmetic, then extract the square root digit by digit.
Conditions
The output is truncated to the requested number of certified digits, not rounded.
Historical position
This is a modern certification tool included to distinguish historical approximations from mathematically guaranteed decimal digits.

Inputs

Open this calculator →

49. Takebe’s Arc Series

From squared arc to length

Approximate a short circular arc using a series for its squared normalized length.

Result
Length s of the minor circular arc (Certified interval with remainder)
Formula
(s/2d)² = Σ tₙ; t₁=z; z=c/d
Method
Sum the requested rational terms, bound the positive tail, and take square roots of the resulting interval.
Conditions
The sagitta must be positive and at most half the diameter. More terms may be needed near the edge of the permitted range.
Historical position
The construction is based on research into Takebe Katahiro’s circle methods and is presented in modern notation with explicit bounds.

Inputs

Open this calculator →

50. Enri Tables and Definite Integrals

Turn an integral into a rational recurrence

Calculate two families of definite integrals by exact factorial or recurrence formulas.

Result
Exact value of the specified definite integral (Exact fractions and π)
Formula
I(p,q)=p!q!/(p+q+1)!; J(p,q)=(p−1)J(p−2,q)/(p+q)
Method
Use the beta-integral identity for the polynomial family and parity-aware reduction for powers of sine and cosine.
Conditions
Exponents must be non-negative integers. Results involving pi are kept as exact rational multiples of pi.
Historical position
This is a modern reconstruction of the tabular spirit of enri calculations, with contemporary integral notation.

Inputs

Open this calculator →

51. Area of a Circular Segment

Measure the region between chord and arc

Calculate the area of a circular segment from the radius and segment height.

Result
Area between the chord and circular arc (Approximate decimal value)
Formula
A=R²(θ−sinθ cosθ); θ=2 asin√(h/(2R))
Method
Recover the half-angle from h/(2R), then evaluate R²(θ−sinθ cosθ).
Conditions
The height must lie between zero and the full diameter, inclusive. Trigonometric values and the displayed area are numerical approximations.
Historical position
Arc-and-chord area is a natural modern counterpart to historical enri problems.

Inputs

Open this calculator →

52. Perimeter of an Ellipse

Move beyond the circle to a curved length

Compute the complete elliptic-integral series together with an explicit remainder interval.

Result
Perimeter L of the ellipse (Certified interval with tail bound)
Formula
L = 4aE(m) = 2πa(1−Σtₙ); m=1−b²/a²
Method
Order the semiaxes, sum rational series terms, bound the remaining tail, and multiply by the exact prefactor.
Conditions
Very slender ellipses converge slowly and may require many terms. Judge precision by the displayed interval width, not the number of printed digits.
Historical position
Ellipse perimeter is included as a modern extension of circle-series thinking; it is not attributed to a particular historical wasan text.

Inputs

Open this calculator →

53. Elliptical Arc Length

Find the length of a selected arc of an ellipse

Integrate the ellipse speed over a chosen parameter-angle interval.

Result
Length of the selected arc of the ellipse (Subdivision with lower and upper estimates)
Formula
L = ∫ √(a²sin²t + b²cos²t) dt
Method
Use composite Simpson’s rule for the estimate, and bound each subinterval using its minimum and maximum speed.
Conditions
The bounds follow mathematical inequalities but are evaluated in floating-point arithmetic, without a guarantee covering rounding error. Very slender ellipses may need more subdivisions.
Historical position
This is a modern extension from complete circumference to partial curved length.

Inputs

Open this calculator →

54. Disk Cuts for Specified Area Ratios

Divide a circle with parallel lines

Find the parallel chord positions that split a disk into specified fractional areas.

Result
Cut positions (Numerical area-ratio checks)
Formula
C(u)=u√(1−u²)+arcsin(u)+π/2
Method
Normalize to the unit disk, invert the cumulative area function by safeguarded bisection, then rescale.
Conditions
All weights must be positive and not vanishingly small relative to the total. Positions are numerical and checked by area residuals.
Historical position
This is a modern computational extension of circle-division and mensuration themes.

Inputs

Open this calculator →

55. Logarithm Tables

Turn multiplication into addition

Round the common logarithms of a and b to the chosen number of table digits, add them, then take the antilogarithm. The tool simulates the logic of calculation with logarithm tables.

Result
Product reconstructed from rounded logarithms (Approximation using a simulated logarithm table)
Formula
log(ab)=log(a)+log(b)
Method
Use Math.log10 only to obtain a modern floating-point reference value. Round that value to the selected table precision, and use only the rounded logarithms to reconstruct the product.
Conditions
a and b must be positive decimal numbers from 10^-100 through 10^100; scientific notation is not accepted. This simulates the principle of table-based calculation and is not a transcription of a historical logarithm table.
Historical position
Late-Edo wasan practitioners received logarithm tables through Western mathematics and used them in fields such as calendrical calculation and surveying. This page does not present logarithms as an independent Japanese invention.

Inputs

Open this calculator →

56. Takebe’s Trigonometric Table

Tabulate arc, half-chord and sagitta

Choose an angle and recompute the arc length, half-chord and sagitta of a circle of diameter 1 with modern trigonometric functions. The table also shows nearby integer-degree entries on either side.

Result
Half-chord in a circle of diameter 1 (Recomputed with modern trigonometric functions)
Formula
half-chord=(1/2)sinθ / sagitta=(1/2)(1−cosθ)
Method
Recompute the values with modern sin, cos and π. This does not reconstruct Takebe’s historical calculation procedure.
Conditions
The angle must be an integer from 0° through 90°. Values are floating-point approximations. The selected display precision must not be confused with the certified accuracy of a historical table.
Historical position
The National Diet Library describes Takebe Katahiro’s Sanreki Zakkō as Japan’s first trigonometric table and notes that it gives half-chords for a diameter-1 circle at one-degree intervals to 11 decimal places. Takebe’s table is distinguished here from later imported and translated Western trigonometric tables.

Inputs

Open this calculator →

Chapter 5 · Solids & Tangency

57. Sangaku Tangent Circles

Find a circle that fits the gap

Two circles rest on the same line and touch each other. This tool finds the smaller circle that fits exactly between them.

Result
Radius r of the circle in the gap (Approximate decimal value)
Formula
1 / √r = 1 / √a + 1 / √b
Method
Split the distance between the two original points of contact and solve 2√ab = 2√ar + 2√br.
Conditions
The two given circles must lie on the same side of one line and be externally tangent. All radii use the same unit.
Historical position
Sangaku were mathematical votive tablets displayed at temples and shrines. This is a modern teaching reconstruction of a common tangent-circle problem, not a transcription of one tablet.

Inputs

Open this calculator →

58. Two Circles Tangent to Three

Read tangency through curvature

Given three mutually tangent circles, calculate the two curvatures allowed by the Descartes circle relation.

Result
Selected tangent circle or boundary (Both configurations checked)
Formula
k₄ = k₁+k₂+k₃ ± 2√(k₁k₂+k₂k₃+k₃k₁)
Method
Convert radii to signed curvatures, solve the two branches, then reconstruct and verify tangency.
Conditions
Inputs must describe the supported tangency configuration and meet the stated scale limits. Signed curvature distinguishes enclosing circles.
Historical position
The theorem is a modern comparative tool for tangent-circle problems; its use here does not assign the European theorem to historical wasan authors.

Inputs

Open this calculator →

59. Three Tangent Circles in a Triangle

Fit three mutually tangent circles

Calculate the classical Malfatti circles tangent to pairs of triangle sides and to one another.

Result
Radii of the circles at vertices A, B and C (Approximate decimal value)
Formula
Each circle touches two sides; center distances equal sums of radii
Method
Construct the triangle, solve the coupled radius relations numerically, and verify side and circle contacts.
Conditions
The sides must form a nondegenerate triangle. Results are numerical and should be judged by the reported residuals.
Historical position
The configuration is used as a modern comparison for Japanese three-side, three-circle problems; historical naming and modern theorem are kept distinct.

Inputs

Open this calculator →

60. Ajima’s Four Circles in a Triangle

Fit four circles under one contact pattern

Construct the four-circle configuration associated with Ajima Naonobu’s advanced sangaku geometry.

Result
Radii of the four circles (Numerical tangency checks)
Formula
Solve the vertex-circle quadratic, then select the branch satisfying every contact
Method
Solve the diameter equation for the vertex circle, select the admissible branch, place the other centers, and measure all residuals.
Conditions
The sides must form a valid triangle. The construction is numerical, and only branches passing the reported contact checks are retained.
Historical position
This reconstruction follows the documented four-circle problem while stating its modern coordinate choices and numerical verification explicitly.

Inputs

Open this calculator →

61. Circles Tangent to Three Given Circles

Enumerate internal and external contacts

Given three positioned circles, solve the sign choices for internal and external tangency.

Result
Tangent circles satisfying the conditions (Internal and external tangencies checked)
Formula
|center−centerᵢ| = |ρ+σᵢrᵢ|; σᵢ=±1
Method
Solve each tangency-sign branch, substitute into the remaining quadratic, and verify every distance condition.
Conditions
Degenerate and coincident configurations may have infinitely many solutions or require cases outside this solver.
Historical position
The Apollonius formulation is a modern general framework that helps compare many special tangent-circle problems.

Inputs

Open this calculator →

62. The Arbelos Circle Chain

Follow circles toward a cusp

Find the radius and center height of the nth circle in a Pappus chain.

Result
Radius of the final circle (Exact rational arithmetic)
Formula
rₙ=ab(a+b)/(a(a+b)+n²b²); yₙ=2nrₙ
Method
Apply the exact arbelos formula for radius and vertical position, then verify neighboring tangencies.
Conditions
The two inner semicircle radii must be positive and use the same unit.
Historical position
Pappus chains are used as a modern comparative circle-chain example rather than attributed to a historical Japanese source.

Inputs

Open this calculator →

63. Circle Inversion

Connect circles and lines through a transformation

Invert a circle in a chosen reference circle, including the limiting case that becomes a line.

Result
Image under inversion (Exact arithmetic and zero tests)
Formula
Δ=x²+y²−r²; center=k²(x,y)/Δ; radius=|k²r/Δ|
Method
Evaluate the exact denominator x²+y²−r², then apply the rational center-and-radius formulas or the line case.
Conditions
The original radius and inversion radius must be positive. A circle through the inversion center maps to a line.
Historical position
Inversion is a modern explanatory tool used here to illuminate circle chains; no claim is made that the historical construction used this formalism.

Inputs

Open this calculator →

64. A Chain Between Eccentric Circles

Determine when a ring of circles closes

Calculate the closure angle for circles tangent to two nonconcentric boundary circles.

Result
Closure of the circle chain (Tangency, closure and overlap checks)
Formula
C=(R²+r²−d²)/(2Rr); δ=2 asin√((C−1)/(C+1)); nδ=2π
Method
Compute the invariant C, derive the step angle, and compare n steps with one full turn.
Conditions
The inner circle must lie strictly inside the outer circle. Closure is reported with exact conditions where possible and a numerical residual otherwise.
Historical position
Steiner chains provide a modern framework for circle-chain questions related to, but historically distinct from, wasan contact problems.

Inputs

Open this calculator →

65. A Fifth Sphere Tangent to Four

Extend the contact equation into space

Use the three-dimensional Soddy–Gossett relation to calculate two possible tangent spheres.

Result
Selected tangent sphere or boundary (Centers and tangencies checked)
Formula
(Σ kᵢ)² = 3 Σ kᵢ² for five spheres
Method
Solve the curvature equation, construct centers from distance constraints, and report the largest contact residual.
Conditions
The four spheres must form a compatible tetrahedral contact configuration within the stated scale ratio.
Historical position
This modern theorem is used to compare spatial contact geometry with wasan sphere problems; it is not presented as a historical Japanese formula.

Inputs

Open this calculator →

66. The Six-Sphere Chain

Return to the starting position after six contacts

Construct a chain of six spheres tangent to two fixed inner spheres and an enclosing sphere.

Result
Spatial closure of the six-sphere chain (Centers, radii and non-overlap checked)
Formula
qₙ₊₁ = T + qₙ − qₙ₋₁; q=1/diameter
Method
Generate curvatures from the recurrence, place each center, and verify closure, tangency, and non-overlap.
Conditions
The two inner spheres must lie within the enclosing sphere, and their radii must satisfy the stated lower bounds. The projection can hide depth.
Historical position
Irisawa Shintaro Hiroatsu’s 1822 sangaku records a configuration equivalent to the six-sphere chain, predating Soddy’s later discussion.

Inputs

Open this calculator →

67. Tetrahedron from Six Edges

Recover volume from edge lengths

Determine whether six lengths form a tetrahedron and calculate its volume.

Result
Volume of the tetrahedron (Exact existence test)
Formula
V²=det(G)/36; Gᵢⱼ=(ℓᵢ²+ℓⱼ²−ℓᵢⱼ²)/2
Method
Build the exact Gram matrix from squared edge lengths; det(G)/36 is the squared volume.
Conditions
Every face must satisfy triangle inequalities and the Gram determinant must be positive for a genuine three-dimensional tetrahedron.
Historical position
This modern determinant formulation continues the site’s theme of exact area and volume reconstruction.

Inputs

Open this calculator →

68. Intersection Volume of Two Cylinders

Integrate a spatial intersection

Calculate the volume shared by two perpendicular circular cylinders, including unequal radii.

Result
Intersection volume V (Certified bounds from cross-sections)
Formula
V = 8∫₀ᵇ √(b²−z²)√(a²−z²) dz, a≥b
Method
Integrate the rectangular cross-sectional area, which is four times the product of the two half-widths. Equal radii use a closed form; unequal radii use bounded series evaluation.
Conditions
Radii must be positive. For unequal radii, precision is represented by the reported interval rather than decimal length alone.
Historical position
The equal-radius Steinmetz solid is classical; the unequal-radius interval calculation is a modern extension for this laboratory.

Inputs

Open this calculator →

69. Volume and Centroid of a Spherical Zone

Cut a sphere with two parallel planes

Calculate the volume, curved surface area, and centroid between two horizontal cuts.

Result
Volume between the two planes (Exact coefficient of π)
Formula
V=π[R²z−z³/3]; curved area=2πR(z₂−z₁)
Method
Integrate π(R²−z²) and its first moment exactly between the two cut heights.
Conditions
Both heights must lie within the sphere and the upper height must exceed the lower one.
Historical position
This is a modern calculus presentation of a natural solid-of-revolution problem.

Inputs

Open this calculator →

70. Volume and Surface Area of a Torus

Rotate a circle into a ring

Find the exact coefficients of π² in a torus’s volume and surface area.

Result
Volume of the torus (Exact coefficient of π²)
Formula
V=2π²Rr²; S=4π²Rr
Method
Apply V=2π²Rr² and S=4π²Rr with exact rational radii.
Conditions
Both radii must be positive, with R≥r. R>r gives a ring torus; R=r gives a horn torus.
Historical position
This modern solid-of-revolution example broadens the site’s collection of traditional-style mensuration problems.

Inputs

Open this calculator →

Chapter 6 · Deeper Explorations

71. Bernoulli Coefficients and Power Sums

Expose the polynomial behind a large sum

Generate the Bernoulli coefficients used by the wasan sign convention and evaluate power sums exactly.

Result
1ᵖ + 2ᵖ + … + Nᵖ (Exact polynomial result)
Formula
Sₚ(N) = Σ C(p+1,j) βⱼ N^(p+1−j) / (p+1)
Method
Construct rational Bernoulli coefficients with the positive one-half convention, then substitute them into Faulhaber’s formula.
Conditions
N and the power must be integers within the stated ranges. The sign convention is identified explicitly to avoid comparison errors.
Historical position
The wasan convention used here has β₁=+1/2, whereas a common modern convention uses B₁=−1/2.

Inputs

Open this calculator →

72. Division of Power Series

Divide through the coefficients

Compute the Taylor coefficients of a formal quotient to a chosen order.

Result
Quotient series through the specified degree (Exact coefficient arithmetic)
Formula
cₖ = (aₖ − Σⱼ₌₁ᵏ bⱼcₖ₋ⱼ) / b₀
Method
Use the coefficient recurrence obtained by equating coefficients in (denominator) × (quotient) = (numerator).
Conditions
Coefficients are entered from constant term upward, the reverse of the polynomial tools. The result is formal and does not by itself prove analytic convergence.
Historical position
This modern formal-series tool supports the arc, reversion, and rational-approximation investigations on the site.

Inputs

Open this calculator →

73. Reversion of a Power Series

Swap the input and output of a series

Given f with zero constant term and nonzero linear term, find g so that f(g(x))=x to the requested order.

Result
Inverse series g(x) (Exact coefficient arithmetic)
Formula
f(g(x))=x and g(f(x))=x through the requested order
Method
Compose truncated series in exact rational arithmetic and solve the coefficients in increasing order.
Conditions
The result is a formal local inverse. A nonzero linear coefficient is essential, and analytic convergence is not asserted.
Historical position
Series reversion is a modern extension of coefficient-centered computational methods.

Inputs

Open this calculator →

74. Fractional Powers of a Series

Expand roots and negative powers

Compute coefficients of F(x)^α when F(0)=1 and α is rational.

Result
Series raised to the specified power (Coefficients checked exactly)
Formula
Fg′ = αF′g; g(0)=1
Method
Apply that identity recursively in exact rational arithmetic and verify by coefficient comparison when applicable.
Conditions
The input constant term must be one. The output is a formal truncated series and makes no independent convergence claim.
Historical position
This modern series tool exposes the coefficient mechanism behind many root and reciprocal expansions.

Inputs

Open this calculator →

75. Series from an Implicit Equation

Expand a solution that is not explicitly isolated

Find a formal series solution of F(x,y)=0 from a chosen value y(0).

Result
Series for the specified initial value (Exact substitution into original equation)
Formula
F(x,y(x))=0; Fᵧ(0,y₀)≠0
Method
Substitute a truncated unknown series, collect terms by degree, and solve the next coefficient exactly.
Conditions
The initial value must satisfy F(0,y0)=0 and Fy(0,y0) must be nonzero. The result is local and formal.
Historical position
This modern implicit-function calculation extends elimination into coefficient-by-coefficient solution.

Inputs

Open this calculator →

76. Padé Approximation

Compress a series into a rational expression

Construct numerator and denominator polynomials whose quotient matches a supplied series through the requested order.

Result
Value of the rational approximant (Exact coefficient matching)
Formula
Q(x)f(x)−P(x)=O(x^(m+n+1)); Q(0)=1
Method
Solve the denominator coefficient equations exactly, recover the numerator, and verify every matched coefficient.
Conditions
A requested type can be singular or non-unique. Agreement of series coefficients does not guarantee a uniform approximation away from the origin.
Historical position
This modern rational-approximation tool is presented beside wasan convergence ideas for comparison, not as a historical attribution.

Inputs

Open this calculator →

77. Minimum and Maximum on an Interval

Certify the best values from both sides

Find global minimum and maximum values of a polynomial on a closed rational interval.

Result
Bounds for the minimum and maximum (Entire closed interval checked)
Formula
Inspect the endpoints and every real root of f′(x)
Method
Isolate every derivative root in the interval, evaluate the endpoint and stationary-point candidates with interval arithmetic, and combine their bounds.
Conditions
The polynomial degree and coefficient size are bounded. Results are certified intervals, not symbolic radical expressions.
Historical position
This modern optimization tool generalizes the single box problem and makes the completeness check explicit.

Inputs

Open this calculator →

78. Bernstein Bounds for a Curve

Enclose every value on an interval

Convert a polynomial on each subinterval to Bernstein form and use its coefficients as exact bounds.

Result
Certified lower and upper bounds for the function (Exact rational arithmetic)
Formula
min(bₖ) ≤ Σ bₖBₖ,ₙ(t) ≤ max(bₖ)
Method
Map the interval to [0,1], convert exactly, and optionally bisect to tighten the union of bounds.
Conditions
Deeper subdivision improves bounds but increases the number of intervals. The result encloses the range and need not equal the exact extrema.
Historical position
This modern certified technique complements derivative-based optimization.

Inputs

Open this calculator →

79. Takebe’s Maximum-Volume Box

Find the largest box allowed by two conditions

Maximize V(w)=w(w+D)(S−w) under the positive-dimension constraints.

Result
Maximum volume (Approximate decimal value)
Formula
V(w)=w(w+D)(S−w)
Method
Solve the derivative quadratic, retain feasible critical points, and compare them with the boundary behavior.
Conditions
D must be non-negative and S positive. The displayed optimum is numerical and is checked against the feasible interval.
Historical position
The screen is based on a maximum-volume problem associated with Takebe Katahiro, expressed here with modern variables and calculus checks.

Inputs

Open this calculator →

80. Two Ellipses and a Minimum-Height Triangle

Solve a sangaku minimum problem

Study the minimum triangle height compatible with two differently oriented congruent ellipses.

Result
Height of the triangle (Exact rational arithmetic)
Formula
H−4q = q(k−2)²/(k−1) ≥ 0
Method
Express height in the axis ratio k and prove H−4q=q(k−2)²/(k−1).
Conditions
The short-axis length is positive and k>1. The equality case occurs at the stated ratio.
Historical position
The page presents a modern proof of an ellipse optimization problem in the sangaku tradition.

Inputs

Open this calculator →

81. Consecutive-Side Heron Triangles

Make both sides and area integral

Produce the sequence of triangles with sides differing by one and integral Heron area.

Result
Integer side lengths of the final triangle (Integer sides and areas checked)
Formula
x²−3y²=1; sides=2x−1, 2x, 2x+1
Method
Advance through Pell solutions and convert each one into three sides and an exact area.
Conditions
The generator returns the first requested solutions in increasing order; integers grow rapidly.
Historical position
This modern number-theoretic screen links three-side mensuration with Pell recurrences.

Inputs

Open this calculator →

82. Cyclic Quadrilateral from Four Sides

Recover area, diagonals, and circumcircle

Use four side lengths to calculate the cyclic quadrilateral’s area and associated geometry.

Result
Area of the cyclic quadrilateral (Exact squared quantities)
Formula
K²=(s−a)(s−b)(s−c)(s−d); s=(a+b+c+d)/2
Method
Compute the exact squared area from the semiperimeter, then derive the diagonals and circumradius.
Conditions
The positive side lengths must form a nondegenerate cyclic quadrilateral. Square roots are displayed numerically when irrational.
Historical position
This is a comparative modern tool for four-side geometry, not a claim of a unique wasan provenance.

Inputs

Open this calculator →

83. Volume of Revolution

Rotate a curve to make a solid

Rotate the region between y=P(x) and the x-axis over the chosen interval, and calculate the exact coefficient of pi in the volume.

Result
Volume of the solid of revolution (Exact coefficient of π)
Formula
V = π∫ P(x)² dx
Method
Square P exactly, integrate coefficient by coefficient, and evaluate at rational endpoints.
Conditions
The formula treats |P(x)| as a radius through P(x)². Inputs follow the stated degree and interval bounds.
Historical position
This is a modern integration tool placed alongside area and solid problems in the broader wasan laboratory.

Inputs

Open this calculator →