Integrals, sums, limits: longer bounds and use as the left side of an equation #6

Open
opened 2026-11-27 00:33:49 +02:00 by paultal · 1 comment
Owner

Two related problems with integrals, sums and limits.

Bounds longer than one token

input output renders as
the integral from 0 to 2 pi of sine of theta d theta integral_0^2 pi sin(theta) dif theta ∫₀² π sin θ dθ

Upper bounds in training are only 1, infinity, 2, b, pi, x, pi/2, and lower bounds similar. Add bounds like 2 pi, n + 1, -pi, x^2, a + h.

An integral, sum or limit as the left side of an equation

input output
the integral of e to the x dx equals e to the x plus c integral (e^x = e^x + c) dif x
the sum from i equals 1 to n of i equals n times (n plus 1) over 2 sum_(i = 1)^n i frac(n + 1, 2) (= dropped)

Eq only ever has an integral, sum or limit on the right. Allow Eq(<integral/sum/limit>, expr).

Two related problems with integrals, sums and limits. **Bounds longer than one token** | input | output | renders as | |---|---|---| | the integral from 0 to 2 pi of sine of theta d theta | `integral_0^2 pi sin(theta) dif theta` | ∫₀² π sin θ dθ | Upper bounds in training are only `1`, `infinity`, `2`, `b`, `pi`, `x`, `pi/2`, and lower bounds similar. Add bounds like `2 pi`, `n + 1`, `-pi`, `x^2`, `a + h`. **An integral, sum or limit as the left side of an equation** | input | output | |---|---| | the integral of e to the x dx equals e to the x plus c | `integral (e^x = e^x + c) dif x` | | the sum from i equals 1 to n of i equals n times (n plus 1) over 2 | `sum_(i = 1)^n i frac(n + 1, 2)` (`=` dropped) | `Eq` only ever has an integral, sum or limit on the **right**. Allow `Eq(<integral/sum/limit>, expr)`.
paultal added the bugP2 mediumdata labels 2026-11-27 00:33:49 +02:00
Author
Owner

Yeah, we need to have more general training data that contains more use cases, but the architecture of the model itself might need improvements in that sense so it learns that those keywords like integral can reffer to the bounds.

Yeah, we need to have more general training data that contains more use cases, but the architecture of the model itself might need improvements in that sense so it learns that those keywords like integral can reffer to the bounds.
Sign in to join this conversation.