The awesomeness of ZEL

09:33AM Apr 23, 2016 in category General by Zoltan Farkas

I recently showed someone how bug fib (10000) is, and the best tool for this was ZEL:

ZEL Shell
zel>func det fib(x) { fib(x-1) + fib(x-2) }
result>zel_0
zel>fib(0) = 0
result>0
zel>fib(1) = 1
result>1
zel>fib (10000)
result>336447648764317832666216120051075433103021484606800639065647699746800814421666623681555955136337340255820653326808
3615937373479048386526826304089246305643188735454436955982749160660209988418393386465273130008883026923567361313511757929
7437854413752130520504347701602264758318906527890855154366159582987279682987510631200575428783453215515103870818298969791
6131278562650331954871402142875326981879620469360978799003509623022910263681314931952756302278376284415403605844025721143
3496118002309120828704608892396232883546150577658327125254609359112820392528539343462090424524892940390170623388899108584
1065183173360437470737908552631764325733993712871937587746897479926305837065742830161637408969178426378624212835258112820
5163702980893320999057079200643674262023897831114700540749984592503606335609338838319233867830561364353518921332797329081
3373264265263398976392272340788292817795358057099369104917547080893184105614632233821746563732124822638309210329770164805
4726243842374862411453093812206564914032751086643394517512161526545361333111314042436854805106765843493523836959653428071
7687753283482343455573667197313927462736291082106792807847180353291311767789246590899386354593278945237776744061922403376
3867400402133034329749690202832814593341882681768389307200363479562311710310129195316979460763273758925353077255237594378
8434504067715555779056450443016640119462580972216729758615026968443146952034614932291105970676243268515992834709891284706
7408620085871350162603120719031720860940812983215810772820763531866246112782455372085323653057759564300725177443150515396
0090516860322034916322264088524885243315805153484962243484829938090507048348244932745373262456775587908918719080366205800
9594743150052402532709746995318770724376825907419939632265984147498193609285223945039707165443156421328157688908058783183
4049174345562705202235648464951961124602683139709750693826487066132645076650746115126775227486215986425307112984411826226
6105716351506926002986170494542504749137811515413994155067125627119713325276363193960690289565028826860836224108205056243
0701794976171121233066073310059947366875

More information about ZEL you will find at.

enjoy 

Comments[0]

Comments:

Post a Comment:
Comments are closed for this entry.