Skip to content

Commit 99c3cfa

Browse files
committed
feat: integrate OEIS lookup and sequence verification with corresponding tests
1 parent d20e565 commit 99c3cfa

6 files changed

Lines changed: 1444 additions & 25 deletions

File tree

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,26 @@
196196
ce.parse('\\prod_{k=1}^{5} A_k').evaluate(); // Works with any defined sequence
197197
```
198198

199+
- **OEIS Integration**: Look up sequences in the Online Encyclopedia of Integer
200+
Sequences (OEIS) and verify your sequences against known mathematical sequences:
201+
202+
```javascript
203+
// Look up a sequence by its terms
204+
const results = await ce.lookupOEIS([0, 1, 1, 2, 3, 5, 8, 13]);
205+
// → [{ id: 'A000045', name: 'Fibonacci numbers', terms: [...], url: '...' }]
206+
207+
// Check if your sequence matches a known OEIS sequence
208+
ce.declareSequence('F', {
209+
base: { 0: 0, 1: 1 },
210+
recurrence: 'F_{n-1} + F_{n-2}',
211+
});
212+
213+
const result = await ce.checkSequenceOEIS('F', 10);
214+
// → { matches: [{ id: 'A000045', name: 'Fibonacci numbers', ... }], terms: [...] }
215+
```
216+
217+
Note: OEIS lookups require network access to oeis.org.
218+
199219
#### Special Functions
200220

201221
- **Special Function Definitions**: Added type signatures for special mathematical

0 commit comments

Comments
 (0)