Advanced Math
Calculating Roots of Bessel Equations 1kimioChan2382 runs
Calculating Roots of Bessel Equations 2kimioChan877 runs
Calculating Roots of Bessel Equations 3kimioChan844 runs
Calculating Roots of Bessel Equations 4kimioChan565 runs
Calculating Roots of Bessel Equations 5kimioChan1046 runs
Calculating Pi (Gauss–Legendre’s Arithmetic-Geometric Mean Method)We will examine the AGM method (Gauss-Legendre algorithm, arithmetic-geometric mean method), the algorithm used by Mr. Takahashi and his colleagues at the University of Tsukuba to calculate pi to 2,576,980,370,000 digits. Using the initial values a0 = 1, b0 = 1/√2, t0 = 1/4, and p0 = 1, an+1 = (an + bn) / 2 bn+1 = √(anbn) tn+1 = tn - pn * (an+1 - an)^2 pn+1 = 2*pn Thus, π ≒ (an + bn)^2 / (4*tn) is used for the calculation.
tonagai6470 runs
Calculating Pi (Ramanujan and Chudnovsky)We will compare Ramanujan’s formula and the Chudnovsky brothers’ formula, both of which are known as formulas for calculating pi. Both are known for converging extremely quickly.
tonagai19552 runs
Reverse Calculation of the Sum of a Special Series (Sum of Reciprocal Values)kimioChan2474 runs
Calculating the Sum of Special Sequences (Sum of Reciprocal Numbers)kimioChan21158 runs
GCJ 2008 - R1A - CUsing high-precision arithmetic, I'll try to brute-force a solution to: Google Code Jam 2008 - Round 1A - Problem C. Numbers http://code.google.com/codejam/contest/dashboard?c=32016#s=p2 Since integer precision is guaranteed up to n = 69, this approach might be sufficient to pass the Small dataset (2 ≤ n ≤ 30).
miau681 runs
Dirichlet's theta functionThis is Dirichlet's theta function.
tomomo013924 runs
Minimal Solutions to the Perel equationFind the smallest integer solution (X, Y) to Pell's equation, X^2 - NY^2 = ±1, and the next largest solution. Here, N is a positive integer that is not a perfect square.
tonagai14618 runs
Poisson random numbersGenerates random numbers following the Poisson distribution: P(X=n) = exp(-λ)λ^n / n!
tonagai6219 runs
Twin primesTwo prime numbers whose difference is 2 are called twin primes. Let’s calculate these twin primes.
tonagai16384 runs
Searching for Lychrel numbersIf you flip 56 to make 65 and add them together, the result is 121, which is a palindromic number. By repeating this process—for example, 57 → 57 + 75 = 132 → 132 + 231 = 363—it becomes a palindromic number in just two steps; 89 takes 24 steps, and 10911 takes 55 steps. Lychrel numbers are those that never become palindromic, no matter how many times you repeat the process.196 is the smallest candidate.
tonagai9783 runs
Solving Quintic Equations (Complex Numbers)Solve a fifth-degree equation using the DKA method. Complex numbers can be used for the coefficients.
tonagai57565 runs
Solving Sixth-Degree Equations (Complex Numbers)Solve a sixth-degree equation using the DKA method. Complex numbers can be used for the coefficients.
tonagai44349 runs
Solutions to nth-degree equations (complex numbers, where n is up to 20)Solve the nth-degree equation a(n)*x^n + a(n-1)*x^(n-1) + ... + a1*x + a0 = 0 using the DKA method. n is at most 20. When solving equations of degree less than 20, set any unnecessary higher-order coefficients to 0. Complex numbers may be used for the coefficients.
tonagai13841 runs
Approximate fractions of positive real numbersSearch the Stern-Brocot tree to find the approximate fraction of a given positive real number.
polyester38467 runs
Arithmetic Operations on QuaternionsQuaternions
tutu01220456630 runs
The Pellin sequence (numbers that remain the same when squared; numbers that go on to infinity)This is a calculation of the Pell's sequence (numbers that return to their original value when squared) as described in *Numbers Reaching to the Sky* (by Fumimoto Kato and Yasuyuki Nakai).
tonagai1736 runs
Number of Divisions (From the movie "The Formula Given by a Miracle")The partition number p(n) represents the number of ways a natural number n can be expressed as the sum of natural numbers (including n itself), in any order. Since the film *The Formula*, about Ramanujan and Hardy, featured this concept prominently, I’m doing this to commemorate its release. I will calculate the exact partition number p(n) and the Ramanujan–Hardy asymptotic formula. I’ll cover values of n up to 250.
tonagai2701 runs
Jesus Guillera's formula for calculating pi (π)Jesús Guillera has discovered a formula for the mathematical constant π that converges incredibly quickly. Let’s give it a try. It might be interesting to compare it with Ramanujan’s formula and the Chudnovsky brothers’ formula.
tonagai1285 runs
Solve a four-variable ordinary differential equation using the Runge-Kutta method (four-stage, fourth-order)dx/dt = f1(x, y, z, w, t) dy/dt = f2(x, y, z, w, t) \frac{dz}{dt} = f3(x, y, z, w, t) \frac{dw}{dt} = f4(x, y, z, w, t) We will solve these four-variable ordinary differential equations using the Runge-Kutta method (four-stage, fourth-order).
tonagai975 runs
The Newton-Raphson method for two variablesUsing the two-variable Newton-Raphson method, we will calculate the values of x and y that satisfy f(x,y) = 0 and g(x,y) = 0. We also need ∂f/∂x, ∂f/∂y, ∂g/∂x, and ∂g/∂y.
tonagai4099 runs
Euler's phi function (tangent function)For a positive integer n, the number of natural numbers from 1 to n that are coprime to n is denoted by φ(n) and is called Euler's φ-function or the Torsion function.
tonagai145391 runs
Lambert's W-function (kth solution)The Lambert W-function is the inverse of z = w * exp(w), i.e., w = W(z). In addition to the principal solution, you can calculate up to the kth solution. For the principal solution, set k = 0.
tonagai24795 runs
Calculation of Fourier seriesCalculate the Fourier series. Enter the function f(x) (with domain -L ≤ x ≤ L and period 2L), and use integration to find the coefficients.
tonagai158433 runs
Ackermann function Ack(m,n) This calculates the Ackermann function Ack(m,n). It is known that as m increases, the result becomes an incredibly large number. Unfortunately, we can only calculate up to m=4 and n=2... (the limit of this site's capabilities)
tonagai24282 runs
Determining the Number of Common Elements (Tannell's Theorem)The sum of the numbers is the area of a right triangle whose side lengths are all rational numbers; we will determine whether this is true. Assume that the number in question has no square factors (i.e., it cannot be written as n = qk²). We use Tunnell's theorem to determine this.
tonagai3608 runs
Approximation ratios for open intervals of real numbersFinds an approximate fraction for a given open interval of real numbers.
polyester713 runs
Lagrange interpolation (up to 11 points)Find the nth-degree polynomial that passes through n+1 points, all of which have distinct x-coordinates, using Lagrange interpolation. Even if n is less than 11 and some points are not needed, please enter 0 for those points.
tonagai20445 runs
Trigonometric Tables and Large GraphsTables and Graphs of the Trigonometric Functions sin(x), cos(x), and tan(x)
hidekchi45387 runs
Liouville's Theorem: The Sum of the Squares of the Divisors of a Sum Equals the Sum of the Cubes of the Divisors of That SumLet’s review the following from Fermat’s Library: Liouville proved the following property regarding the divisors of the divisors of a number: 1) Start with a number (e.g., 10) 2) List its divisors (1, 2, 5, 10) 3) List the number of divisors of each divisor (1, 2, 2, 4) 4) (1 + 2 + 2 + 4)² = 81 = 1³ + 2³ + 2³ + 4³
tonagai214 runs
Area of a spherical triangleYou can calculate the area of a spherical triangle.
hirokihiro495 runs
The graph of 1/(1+x²) (for x ∈ [0,1]) and a circleFor y = 1/(1+x²), the integral values of the equation of a circle over the interval [0, 1] are both π/4 (1/4 of a circle), and thus equal.
hidekichi45101 runs
Values of any number of digits of pi (by Simon Plouffe)In his paper titled “A formula for the nth decimal digit or binary of π and powers of π,” Simon Plouffe presents a formula for calculating the value of any digit of pi (π). We will verify this. However, this site is limited to 50 digits.
tonagai935 runs
Generating Arbitrary Pythagorean TriplesSpecify Input 1 and Input 2 to generate any Pythagorean triple. However, m must be greater than n.
Yoichiro1224166 runs
Generating Arbitrary Pythagorean Triples (All Patterns)Display Pythagorean triples in a table
Yoichiro1224100 runs
How many zeros are there at the end of n!?How many zeros are there at the end of n!?
buturigaku3151717 runs
Prime Number Test!Prime Number Test
Onodera2040 runs
A New Formula for Pi Derived from String TheoryArnab Priya Saha and Aninda Sinha, researchers in string theory from India, derived a new formula for pi in their paper “Field Theory Expansions of String Theory Amplitudes.” Let’s take a look at it.
tonagai2055 runs
Rational Approximations of Real NumbersRational Approximations of Real Numbers
BENESUTA485 runs
Second-order square matrices, real symmetric matrices, Newton approximationThis is a numerical diagonalization method for real symmetric 2×2 matrices. Since the matrix is both 2×2 and symmetric, the process is simplified because we can skip the step of finding the "diagonal element with the largest absolute value." Furthermore, converting the problem into linear expressions involving `cos2θ` and `sin2θ` reduces the number of iterations, improving the efficiency of interval selection and reduction via the bisection method. We perform Newton's approximation within the reduced interval. The precision settings are as follows: the number of interval divisions is set to 100 each time, the interval width is set to 0.1^15, and for Newton's approximation, it is reduced to 0.1^20.
shiroe17 runs
Multiply a 2D vector by a rotation matrix.We will calculate the result of multiplying a 2D vector by a rotation matrix. Let A and B be 2D vectors. R is a 2x2 matrix and a rotation matrix. We will calculate B = R * A.
shiroe84 runs
The product of three 2×2 matricesCalculate the product of three 2x2 matrices. Calculate the product of the three 2x2 matrices A, B, and C as follows: AB = A * B ABC = (A * B) * C and output the results. (Multiply the left matrix by the right matrix.)
shiroe40 runs
Calculating quadratic expressions using 2x2 matricesWe will calculate quadratic expressions involving the 2×2 matrix x. Let’s consider polynomials involving a 2×2 matrix. This is a quadratic polynomial in the 2×2 matrix x. Let the form of the expression be y = aL*x*x*aR + bL*x*bR + c. (* denotes the product of matrices, and + denotes the sum of matrices. The product is obtained by multiplying the left matrix by the right matrix in order.) aL, aR, bL, bR, c, x, and y are all 2x2 matrices.
shiroe34 runs
Multiply a 2×2 square matrix by a rotation matrix.We will perform the calculation of multiplying a 2×2 square matrix by a rotation matrix. We multiply the 2×2 square matrix A by the inverse of the rotation matrix P, Q, from the right to compute the matrix QA, and then multiply the rotation matrix P by QA from the right to compute QAP. The elements of P are (the numbers to the right of Q represent row and column indices): P11 = cosθ P12 = -sinθ P21 = sinθ P22 = cosθ (where θ is in radians).
shiroe47 runs
Calculating Cubic Expressions for 2x2 Square MatricesWe will calculate the cubic expression of a 2x2 matrix. Let y, x, aL, aR, bL, bR, cL, cR, and d be a 2x2 matrix. We define the expression as: y = aL * x * x * x * aR + bL * x * x * bR + cL * x * cR + d This mimics the cubic equation y = ax³ + bx² + cx + d for "ordinary numbers" with respect to x. L and R denote the left and right positions relative to the power of x. * denotes the matrix product, where the right matrix is multiplied by the left matrix. Multiple * operations are performed sequentially, multiplying the right matrix by the left matrix step by step. Finally, the terms are added together.
shiroe28 runs
Calculate the coefficients and solutions of the characteristic equation of a 2x2 square matrix.Calculate the characteristic equation of a 2x2 matrix. Display the coefficients of the characteristic equation. Although the characteristic equation is a quadratic equation, calculate the value of the discriminant D. Also, display the square root of the discriminant. Output the solutions to the characteristic equation. If there are repeated roots, display two solutions. If the value of the discriminant is 0, there are repeated roots.
shiroe156 runs
The product of three 3×3 matricesCalculate the product of three 3x3 matrices. Calculate the product of the three 3x3 matrices A, B, and C as follows: AB = A * B ABC = (A * B) * C and output the results. (Multiply the left matrix by the right matrix.)
shiroe480 runs
Performing calculations related to 3x3 matrices. Part 5We will perform calculations related to 3x3 square matrices. We will list the coefficients of the characteristic equation of a 3x3 square matrix and calculate its solutions. Let the form of the characteristic equation be a(λ³) + b(λ²) + cλ + d = 0. (1) Find the coefficients of the characteristic equation of the 3x3 square matrix. (2) Divide each coefficient by the coefficient (-1) of the highest power of λ (3), and display the results. (3) Display the approximate solution to the characteristic equation. (4) As a verification, display the results of substituting the approximate solution into the equation. (5) When the coefficients b, c, and d are integers, apply the factor theorem; if a solution is found, display the result.
shiroe70 runs
Calculate the square root of a 2x2 square matrix.We will calculate the square root of a 2×2 matrix. Given a 2×2 matrix M, we will find a 2×2 matrix X such that M = X². Here, we will refer to X as the square root of M. This involves considering an operation analogous to the square root of a real number (represented by the radical symbol √).
shiroe336 runs
We will perform calculations related to 3x3 square matrices. Part 4.Perform calculations related to 3x3 square matrices. 1) Output the coefficients of the characteristic equation. The form of the characteristic equation is assumed to be k0λ³ + k1λ² + k3λ + k4 = 0. 2) Calculate the value of the minor. 3) Calculate the value of the cofactor. 4) Calculate the cofactor matrix. 5) Calculate the value of the determinant using Sarrus's formula. 6) If the value of the determinant calculated using Sarrus's formula is not zero, calculate the inverse.
shiroe322 runs
We will perform calculations related to 4x4 matrices.This program performs calculations related to 4x4 matrices. Here, we calculate the minor, the cofactor, and the cofactor matrix. Additionally, for reference, it outputs the determinant of the input 4x4 matrix and its inverse.
shiroe280 runs
Vector Normalization (2-Dimensional)Normalize a two-dimensional vector to a unit vector. Let the components of the vector v before normalization be v1 and v2. Let the magnitude of the vector be r. Let the components of the normalized vector u be u1 and u2.
shiroe175 runs
Calculate the product of three 4×4 matrices.Calculate the product of three 4x4 matrices. Consider three 4x4 matrices A, B, and C. First, calculate AB = A * B, and then calculate ABC = AB * C. AB and ABC are also 4x4 matrices. Output the result, ABC. (* denotes matrix multiplication)
shiroe35 runs
Calculate the determinant of a 2×2 matrix. (The elements are complex fractions.)We will calculate the determinant of a 2x2 matrix. Here, we will consider the case where the elements are complex fractions. Let a be the element in row 1, column 1. Let b be the element in row 1, column 2. Let c be the element in row 2, column 1. Let d be the element in row 2, column 2. In the input, a, b, c, and d are entered as fractions. Enter non-zero numbers for the denominators of a, b, c, and d. Enter complex numbers for both the numerators and denominators of a, b, c, and d.
shiroe34 runs
Vector Normalization (3-Dimensional)Normalize a three-dimensional vector. Let the components of the vector v to be normalized be v1, v2, and v3. Let the magnitude of v be r. Let the components of the normalized vector u be u1, u2, and u3.
shiroe363 runs
Vector Normalization (4-Dimensional)Normalize a four-dimensional vector. Let the components of the vector v to be normalized be v1, v2, v3, and v4. Let the magnitude of v be r. Let the components of the normalized vector u be u1, u2, u3, and u4.
shiroe42 runs
Calculate the coefficients of the characteristic equation (cubic). (Fractions, complex numbers)Calculate the coefficients of the cubic characteristic equation. Since we are considering the eigenvalue problem for a 3×3 square matrix, the characteristic equation is derived from the determinant of the 3×3 matrix. The form of the cubic characteristic equation is -(λ³) + m(λ²) + n(λ¹) + a constant term. We assume the coefficient of the highest-order term (λ³) remains -1. We calculate and output the coefficients of the (λ²) term, the (λ¹) term, and the constant term. The form of the characteristic equation is displayed in its expanded form.
shiroe75 runs
Prime Number Generation (Mills' Constant)Please enter any natural number n.
yamasaku92 runs
Prime Number Counting (Wilson's Theorem)Please enter any natural number n. We do not support numbers 16 or higher.
yamasaku63 runs
If you want to derive a prime number generation formula (Wilson's Theorem)...a
yamasaku81 runs
Vertex of a quadratic functionFind the vertex of the quadratic function.
yu123456789150 runs
Compute the scalar triple product.We will calculate the scalar triple product. We consider the xyz coordinate system to be right-handed. Let bc be the cross product of vectors b and c. We calculate the dot product of a and bc to find the value of the scalar triple product.
shiroe268 runs
The Law of Cosines - Math IFind the value of c using the values of a, b, and cos.
yu123456789228 runs
Diagonalization of a 3×3 symmetric matrixWe will perform numerical diagonalization on real symmetric matrices. Here, we will diagonalize a 3×3 real symmetric matrix.
shiroe812 runs
The value of cosθ in the dot product of vectors.Calculate the value of the cosine cosθ of the dot product of vectors a and b.
shiroe35 runs
The value of the cosine cosθ of a vector's dot product (3-dimensional vector)Calculate the value of the cosine cosθ of the dot product of two vectors a and b.
shiroe56 runs
Coefficients of a fourth-degree polynomialWe will derive the coefficients of a fourth-degree polynomial. Let the polynomial be of the form k⁴*λ⁴ + k³*λ³ + k²*λ² + k*λ + k₀.
shiroe202 runs
Calculating the direction cosine of a vectorCalculate the direction cosine of a 3D vector. Let the vector be a. The origin is the starting point.
shiroe271 runs
The orthogonal projection of a vector onto a line passing through the originWe will calculate the orthogonal projection of a vector.
shiroe24 runs
Volume and Surface Area of an n-Dimensional SphereThis is a generalization of the volume of an n-dimensional sphere.
palkia16 runs
Derivation of the Coefficients of the Characteristic Equation (5th Order)We will derive the coefficients of the characteristic equation. Here, we will consider the case of a 5×5 square matrix. (Characteristic equation of a 5×5 matrix)
shiroe21 runs
Calculate the nth power of a quaternion.We will calculate the nth power of a quaternion. Let the expression be of the form q = a + bi + cj + dk, and y = q^n. i, j, and k are the imaginary units. a, b, c, and d are the real and imaginary parts, respectively.
shiroe15 runs
We will perform quaternion calculations.We will perform quaternion calculations. We will calculate the magnitude, inverse, and product (Q1Q2, Q2Q1) of two quaternions, Q1 and Q2.
shiroe133 runs
Levi-Civita's symbol (3 letters)Display the values of Levi-Civita symbols. Here, we use ε. Let {1, 2, 3} be a set of numbers. When this set is replaced by the set {i, j, k} using the indices i, j, and k, the value changes depending on whether the permutation is even, odd, or otherwise. List the values of ε along with i, j, and k.
shiroe6 runs
Levi-Civita notation (4 characters)Display the values of the Levi-Civita symbol. Here, let ε be the symbol. Let {1, 2, 3, 4} be a set of numbers. When this set is replaced by the set {t1, t2, t3, t4} using the indices t1, t2, t3, and t4, the value changes depending on whether the permutation is even, odd, or otherwise. List the values of ε alongside t1, t2, t3, and t4. However, only output the table for cases where ε = +1 or -1; omit combinations where ε = 0.
shiroe8 runs
Levi-Civita notation (5 characters)Displays the value of Levi-Civita's symbol. Here, we set it to ε. Let {1, 2, 3, 4, 5} be a set of numbers. When this set is permuted by the indices t1, t2, t3, and t4 to form the set {t1, t2, t3, t4, t5}, the value changes depending on whether the permutation is even, odd, or neither. List the values of ε alongside t1, t2, t3, t4, and t5. However, only output the table for cases where ε = +1 or -1; omit combinations where ε = 0.
shiroe12 runs
Sign and Indices of a Determinant (3rd Order)This outputs the signs and indices during the expansion of a determinant. This is the case for a 3x3 determinant. The simplified form is known as "Sarrus' formula." It lists the signs and the indices of the elements, n and σ(n). n = 1, 2, 3.
shiroe3 runs
Sign and Indices of a Determinant (4th Order)This outputs the signs and indices during the expansion of a determinant. Here is an example for a 4x4 determinant. It lists the signs and the indices of the elements, n and σ(n). n = 1, 2, 3, 4.
shiroe3 runs
Sign and Indices of a Determinant (5th Order)This outputs the signs and indices during the expansion of a determinant. Here is an example for a 5x5 determinant. It lists the signs and the indices of the elements, n and σ(n). n = 1, 2, 3, 4, 5.
shiroe11 runs
Calculating Linear Expressions Using QuaternionsWe will calculate the value of a linear expression involving quaternions. Let the expression be of the form y = aL * x * aR + b (where * denotes multiplication). y, x, aL, aR, and b are quaternions. Multiplication is performed by multiplying the right-hand side by the left-hand side.
shiroe1 runs
Calculating Quadratic Expressions Using QuaternionsWe will calculate the value of a quadratic expression using quaternions. Let the expression be of the form y = (aL * x * x * aR) + (bL * x * bR) + c, where * denotes multiplication. y, x, aL, aR, and b are quaternions. Multiplication is performed by multiplying the right-hand side by the left-hand side.
shiroe1 runs
Calculating Cubic Polynomials Using QuaternionsCalculate the value of a cubic polynomial using quaternions. Ln is the coefficient of the left-hand side of x^n. Rn is the coefficient of the right-hand side of x^n. M is the constant term. The product is calculated by multiplying the right-hand side by the left-hand side. For each term of degree n, multiply Ln by x n times from the right, and then multiply by Rn from the right. Finally, sum all terms, including the constant term. Output this as the value of the polynomial.
shiroe1 runs
Calculate the product of two octonions.Calculate the product of two octonions. This calculates the product of two octonions, a and b.
shiroe1 runs
sinc function1. Definition and Role The sinc function is defined as \(\frac{\sin (x)}{x}\). It is an essential mathematical formula used in communication theory and signal processing (sampling theorem) to smoothly interpolate waveforms. 2. Key Points of the Program Avoiding Division by Zero: When \(x=0\), the expression becomes \(\frac{0}{0}\), which is an invalid calculation (error).Using Limit Values: Since mathematically \(\lim_{x\rightarrow 0}\frac{\sin(x)}{x}=1\), the code uses an `if` statement to force a return value of \(1\) when \(x=0\). 3. Behavior: The function reaches its maximum value of \(1\) at \(x=0\). As \(x\) moves away from \(0\), the function oscillates and converges to \(0\).
springcat7 runs
Dilogarithm (Double logarithm function) *Real numbers only (x ≤ 1)Calculates the value of the dilogarithm (double logarithm). Calculations are possible for x ∈ (-∞, 1]. For x > 1, Li(2, x) is not a real number; since this is not implemented, 0 is returned as an error.
Quadpack48 runs
Output of Gamma Function TablesThis program outputs a table of values for the gamma function. Imagine the complex plane. The input value $s$ for the gamma function is taken from a line segment on the complex plane. Assume that the real part of the complex number at the starting point $P$ is a nonzero positive number. Assume that the real part of the complex number representing the endpoint Q is also a nonzero positive value. Divide the line segment into n equal parts, with the starting point as the 0th input and the endpoint as the nth input, and calculate the values of the gamma function. The output is in table format.
shiroe10 runs