math.json
3.7 kB · json · 251 lines
1[2 {3 "fn": "math::atoms::carpet_2d",4 "in": {5 "n": 36 },7 "out": {8 "shape": [9 3,10 311 ],12 "data": [13 1,14 1,15 1,16 1,17 0,18 1,19 1,20 1,21 122 ]23 },24 "note": "the 3 by 3 seed every carpet design rests on"25 },26 {27 "fn": "math::two::carpet",28 "in": {29 "number": 3,30 "level": 231 },32 "out": {33 "v": 1,34 "width": 9,35 "height": 9,36 "types": [37 [38 1,39 1,40 1,41 1,42 1,43 1,44 1,45 1,46 147 ],48 [49 1,50 0,51 1,52 1,53 0,54 1,55 1,56 0,57 158 ],59 [60 1,61 1,62 1,63 1,64 1,65 1,66 1,67 1,68 169 ],70 [71 1,72 1,73 1,74 0,75 0,76 0,77 1,78 1,79 180 ],81 [82 1,83 0,84 1,85 0,86 0,87 0,88 1,89 0,90 191 ],92 [93 1,94 1,95 1,96 0,97 0,98 0,99 1,100 1,101 1102 ],103 [104 1,105 1,106 1,107 1,108 1,109 1,110 1,111 1,112 1113 ],114 [115 1,116 0,117 1,118 1,119 0,120 1,121 1,122 0,123 1124 ],125 [126 1,127 1,128 1,129 1,130 1,131 1,132 1,133 1,134 1135 ]136 ]137 },138 "note": "the byte-grid crossing: the cell as math::two::to_json writes it"139 },140 {141 "fn": "math::two::census::census",142 "in": {143 "cell": {144 "fn": "math::two::carpet",145 "in": {146 "number": 3,147 "level": 2148 }149 }150 },151 "out": {152 "fills": 64,153 "voids": 17,154 "perimeter": 80,155 "vertices": 96,156 "edges": 168,157 "euler": -8158 },159 "note": "a struct crossing: the Census through its serde derive"160 },161 {162 "fn": "math::counts::fill",163 "in": {164 "code": "23",165 "number": 3,166 "dimension": 3,167 "level": 2,168 "base": 2169 },170 "out": "400",171 "note": "the sponge's filled cells in closed form, u128 as a decimal string"172 },173 {174 "fn": "math::bang::bang",175 "in": {176 "dimension": 3177 },178 "out": 22,179 "note": "Universe::distinct() of the dimension-3 universe"180 },181 {182 "fn": "math::three::census::census",183 "in": {184 "cell": {185 "fn": "math::three::carpet",186 "in": {187 "number": 3,188 "level": 1189 }190 }191 },192 "out": "72",193 "note": "the .surface field only, u128 as a decimal string"194 },195 {196 "fn": "math::spectrum::laplacian_spectrum",197 "in": {198 "network": {199 "dim": 1,200 "nodes": [201 [202 0.0203 ],204 [205 1.0206 ],207 [208 2.0209 ],210 [211 3.0212 ],213 [214 4.0215 ]216 ],217 "branches": [218 [219 0,220 1,221 1.0222 ],223 [224 1,225 2,226 1.0227 ],228 [229 2,230 3,231 1.0232 ],233 [234 3,235 4,236 1.0237 ]238 ]239 },240 "normalised": false241 },242 "out": [243 0.0,244 0.38196601125,245 1.38196601125,246 2.61803398875,247 3.61803398875248 ],249 "note": "the five eigenvalues of a 5-node path, ascending, to 12 decimals"250 }251]