(s: string)
| 558 | return s; |
| 559 | }; |
| 560 | |
| 561 | test('∫1/(x³+1) dx is exact (no float coefficients)', () => |
| 562 | expect( |
| 563 | noFloats(evaluate('\\int \\frac{1}{x^3+1} dx')) |
| 564 | ).toMatchInlineSnapshot( |
| 565 | `1/3 * ln(|x + 1|) + sqrt(3)/3 * arctan(2/3sqrt(3) * x - sqrt(3)/3) - 1/6 * ln(|x^2 - x + 1|)` |
| 566 | )); |
| 567 |