eyeling 1.19.4 → 1.19.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/HANDBOOK.md +48 -89
  2. package/examples/deck/extra.md +169 -0
  3. package/examples/extra/collatz-1000.js +138 -0
  4. package/examples/extra/control-system.js +68 -0
  5. package/examples/extra/deep-taxonomy-100000.js +95 -0
  6. package/examples/extra/delfour.js +110 -0
  7. package/examples/extra/euler-identity.js +41 -0
  8. package/examples/extra/fibonacci.js +81 -0
  9. package/examples/extra/goldbach-1000.js +112 -0
  10. package/examples/extra/gps.js +274 -0
  11. package/examples/extra/kaprekar-6174.js +112 -0
  12. package/examples/extra/matrix-mechanics.js +69 -0
  13. package/examples/extra/odrl-dpv-ehds-risk-ranked.js +255 -0
  14. package/examples/extra/output/collatz-1000.txt +18 -0
  15. package/examples/extra/output/control-system.txt +14 -0
  16. package/examples/extra/output/deep-taxonomy-100000.txt +15 -0
  17. package/examples/extra/output/delfour.txt +20 -0
  18. package/examples/extra/output/euler-identity.txt +12 -0
  19. package/examples/extra/output/fibonacci.txt +21 -0
  20. package/examples/extra/output/goldbach-1000.txt +17 -0
  21. package/examples/extra/output/gps.txt +33 -0
  22. package/examples/extra/output/kaprekar-6174.txt +17 -0
  23. package/examples/extra/output/matrix-mechanics.txt +14 -0
  24. package/examples/extra/output/odrl-dpv-ehds-risk-ranked.txt +48 -0
  25. package/examples/extra/output/path-discovery.txt +28 -0
  26. package/examples/extra/output/pn-junction-tunneling.txt +15 -0
  27. package/examples/extra/output/polynomial.txt +20 -0
  28. package/examples/extra/output/sudoku.txt +47 -0
  29. package/examples/extra/output/transistor-switch.txt +16 -0
  30. package/examples/extra/path-discovery.js +45114 -0
  31. package/examples/extra/pn-junction-tunneling.js +69 -0
  32. package/examples/extra/polynomial.js +181 -0
  33. package/examples/extra/sudoku.js +330 -0
  34. package/examples/extra/transistor-switch.js +93 -0
  35. package/examples/fibonacci.n3 +2 -0
  36. package/examples/output/fibonacci.n3 +1 -0
  37. package/eyeling.js +49 -45
  38. package/lib/engine.js +49 -45
  39. package/package.json +3 -2
  40. package/test/extra.test.js +100 -0
@@ -0,0 +1,28 @@
1
+ === Answer ===
2
+ The path-discovery case finds every simple route from Ostend-Bruges International Airport to Václav Havel Airport Prague with at most two stopovers.
3
+
4
+ === Reason Why ===
5
+ The program builds adjacency lists from the full airport graph, then runs a depth-limited DFS that never revisits an airport.
6
+ airports : 7698
7
+ flights : 37274
8
+ source : Ostend-Bruges International Airport
9
+ destination : Václav Havel Airport Prague
10
+ max stopovers : 2
11
+
12
+ Route #1
13
+ Stopovers : 2
14
+ Airports : Ostend-Bruges International Airport -> Liège Airport -> Heraklion International Nikos Kazantzakis Airport -> Václav Havel Airport Prague
15
+
16
+ Route #2
17
+ Stopovers : 2
18
+ Airports : Ostend-Bruges International Airport -> Liège Airport -> Diagoras Airport -> Václav Havel Airport Prague
19
+
20
+ Route #3
21
+ Stopovers : 2
22
+ Airports : Ostend-Bruges International Airport -> Liège Airport -> Palma De Mallorca Airport -> Václav Havel Airport Prague
23
+
24
+ === Check ===
25
+ all routes within stopover bound : yes
26
+ all routes are simple paths : yes
27
+ all routes match endpoints : yes
28
+ route set matches known answer : yes
@@ -0,0 +1,15 @@
1
+ === Answer ===
2
+ In this toy PN-junction tunneling model, heavy doping narrows the depletion region enough for a tunneling window that rises to a peak and then falls.
3
+
4
+ === Reason Why ===
5
+ We count exact state overlap while forward bias shifts the empty P-side levels.
6
+ bias -> overlap current proxy : 0->2, 1->3, 2->4, 3->3, 4->2, 5->1, 6->0
7
+ peak point : 2 -> 4
8
+ high-bias point : 6 -> 0
9
+
10
+ === Check ===
11
+ heavily doped barrier is narrower : yes
12
+ peak occurs before overlap closes : yes
13
+ negative differential region : yes
14
+ high-bias overlap closes : yes
15
+ peak equals full overlap : yes
@@ -0,0 +1,20 @@
1
+ === Answer ===
2
+ Both polynomial examples are solved consistently: the computed roots satisfy the source polynomials and reconstruct the original coefficients.
3
+
4
+ === Reason Why ===
5
+ For each quartic, the program solves for the roots numerically, substitutes them back, and rebuilds the polynomial from those roots.
6
+
7
+ Example #1 (real quartic)
8
+ roots : 4, 3, 2, 1
9
+ residuals : 0, 0, 0, 0
10
+ reconstruction ok : yes
11
+ roots valid : yes
12
+
13
+ Example #2 (complex quartic)
14
+ roots : 3 + 2i, 1i, 1 + 1i, 5 + 1i
15
+ residuals : 0, 0, 0, 0
16
+ reconstruction ok : yes
17
+ roots valid : yes
18
+
19
+ === Check ===
20
+ all examples valid : yes
@@ -0,0 +1,47 @@
1
+ === Answer ===
2
+ The puzzle is solved, and the completed grid is the unique valid Sudoku solution.
3
+
4
+ Puzzle
5
+ 1 . . | . . 7 | . 9 .
6
+ . 3 . | . 2 . | . . 8
7
+ . . 9 | 6 . . | 5 . .
8
+
9
+ . . 5 | 3 . . | 9 . .
10
+ . 1 . | . 8 . | . . 2
11
+ 6 . . | . . 4 | . . .
12
+
13
+ 3 . . | . . . | . 1 .
14
+ . 4 . | . . . | . . 7
15
+ . . 7 | . . . | 3 . .
16
+
17
+ Completed grid
18
+ 1 6 2 | 8 5 7 | 4 9 3
19
+ 5 3 4 | 1 2 9 | 6 7 8
20
+ 7 8 9 | 6 4 3 | 5 2 1
21
+
22
+ 4 7 5 | 3 1 2 | 9 8 6
23
+ 9 1 3 | 5 8 6 | 7 4 2
24
+ 6 2 8 | 7 9 4 | 1 3 5
25
+
26
+ 3 5 6 | 4 7 8 | 2 1 9
27
+ 2 4 1 | 9 3 5 | 8 6 7
28
+ 8 9 7 | 2 6 1 | 3 5 4
29
+
30
+ === Reason Why ===
31
+ The solver combines constraint propagation with depth-first search. It fills forced singles immediately and branches on the blank cell with the fewest candidates.
32
+ givens : 23
33
+ blanks : 58
34
+ forced placements : 213
35
+ guesses : 22
36
+ search nodes : 23
37
+ backtracks : 12
38
+ solution unique : yes
39
+
40
+ === Check ===
41
+ solver found solution : yes
42
+ givens preserved : yes
43
+ rows complete : yes
44
+ columns complete : yes
45
+ boxes complete : yes
46
+ recorded placements replay legally: yes
47
+ uniqueness check : yes
@@ -0,0 +1,16 @@
1
+ === Answer ===
2
+ In this toy transistor-switch model, a low input leaves the transistor OFF and a high input drives it ON in saturation.
3
+
4
+ === Reason Why ===
5
+ low input state : cutoff / OFF
6
+ high input state : saturation / ON
7
+ high base current : 430 uA
8
+ high collector Ic : 4800 uA
9
+ load-limited Ic : 4800 uA
10
+
11
+ === Check ===
12
+ low input cutoff : yes
13
+ high input saturation : yes
14
+ switching states differ : yes
15
+ on-state current is load-limited: yes
16
+ load voltage matches Ohm's law : yes