Square Root & Log Calculator

This board is to show, discuss and archive useful combinator- and logic-creations.
Smart triggering, counters and sensors, useful circuitry, switching as an art :), computers.
Please provide if possible always a blueprint of your creation.
Post Reply
User avatar
MBas
Long Handed Inserter
Long Handed Inserter
Posts: 63
Joined: Fri Jan 06, 2017 12:57 pm
Contact:

Square Root & Log Calculator

Post by MBas »

1. Square Root
Need a square root? Here is a simple solution. Since all signals are integers, there is just some rounding error. Just follow this instructions:

Input value must be set as signal I (placed in constant combinator). There also must be signal O set as 1 (it is important to keep this value constantly on 1). And then, just read the result from a green network as signal O
sr.png
sr.png (338.28 KiB) Viewed 3056 times
Description:
1. comb: I / O -> O
2. comb: O + 0 -> O
3. comb: O / 2 -> O

Code: Select all

H4sIAAAAAAAA/72U346qMBDGX8X0dstZwOOV6QPs1T6A2ZBKZ3USaEkZjIb03bcF93hQ2TSbKHdt58/X31dGmUVlSlktCtGDJiSEVvS9ljUIVhrdktSUlKbe
opZkLOONaX2U0aI/imTJTyLJHFdooRx2c+6zyJqq2MJeHtBY0X9iRWBD3RZ3Wlaip1Pj6x/QUicrxsd242Hyxpyv0WkSWZpy1AqOwreIyn2/5J4zc+fCltaj
Pi9iwzL2IXoLygsa7nwqUAXhaMsOKSwyFz5+5iAt0r4GwnKeRPpnFcXiUqvwhwrPoj7RtlTE4mkh5EaFByKmASsHReyVcdNR08X18smR9IJBl9XqmiXfsPxe
2iQwn0CvQWFXJ1D51taTb0wFU+Z5AJ7f17ezAHrS6u98q3h/H2/v+ILH/853eIJ1Nx5EmeVd5beQl7/kmj6Xa/o/15cHcb0aKPyntziHPJ8GztYY55XjWA6K
rmYlEtTf17jvifs3Z51bW6DO6kWxBq2+AJg07F4gBgAA
2. Log
Need a Log? Here is it (this one is little bit larger)

It works in a similar way - I signal is input, B signal is base of the logarithm and O signal is output.
l2.png
l2.png (381.55 KiB) Viewed 3045 times

Code: Select all

H4sIAAAAAAAA/92XUW+bMBDHv0rk15ktOEnTqvOk7W1SpX2AakIuXNqTwEbGVI0Q330QsgXSOhzNVHXLW+Lc+fj/zv8ziZmlJlbpLJIVaIcOoZBVpVUGksVG
F05pF8Qmu0OtnLGM56Zo/mW0rJ5ksOBbGSxrnqCFePer4E2UsyaN7uBBPaKxstpg6sC2eQu81yqVldvmTf5HtK5UKePddt1i8I3VTY5SO7ngqBN4kmHNSZHf
/0SK9T5U1HX7m9ZdeU0NtyxkP2VlIWnq2T3yNsKkrRttXKJrv7QbHpbWw6X2w/cKKYvuIQOHsVej+ccVSaRDqqhZTHBf7gZt4SL603fE5JybHKza7cY+MG5K
l5e0PF8ZVbOhTAMFxWBpdawgv2WCQKEvdQYJllkAaVOVbfTOTQpH3ShaocUhJIEYE7BjaMQYmn2eM7gU0MZS5W9KyHJl24Il+zwJXtcE+TbanYNoY00WoW6i
pbMlELmu/Gfhykfy3gJofxbhP1FigJnIbPGumX15e2Yn/GtJZ7b0gyFb3fw/cLrnyqz9+oZzusAnOp8+S8I3UXhC/7cju0fh09T2J8+bmj+X9II4uQUdzInz
MzSyCz/O8Xm16A4Lrf/C8FzPfN9jTk7qmZu/YZlL4pgbIh+COHWZuaJaxmtojnrAP3Rp8dPcqLTw4Rx1AiKZV7rw6A3kbBO+6Y+5sG+wwSR5f5ANdsLt7rLu
ZMN4l/Do/QwdZL+reFnR2vtu14994SzUvTe7awuutHoWXYNOfgFw3Uhdyw4AAA==

roberwt
Burner Inserter
Burner Inserter
Posts: 14
Joined: Sat Jan 16, 2016 5:40 pm
Contact:

Re: Square Root & Log Calculator

Post by roberwt »

Thanks!

Septimus ii
Inserter
Inserter
Posts: 26
Joined: Fri Mar 25, 2016 10:59 pm
Contact:

Re: Square Root & Log Calculator

Post by Septimus ii »

That's really clever, thanks

eViLegion
Burner Inserter
Burner Inserter
Posts: 13
Joined: Wed Mar 01, 2017 8:35 pm
Contact:

Re: Square Root & Log Calculator

Post by eViLegion »

I know I'm a bit late to the party, but this is magnificently simple, and just what I needed. Lovely!

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 11438
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Square Root & Log Calculator

Post by ssilk »

Very cool design.
To find this article (can search only words longer than 3): calculate logarithm, logarithmic, square root
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

jade52blue
Burner Inserter
Burner Inserter
Posts: 6
Joined: Tue Oct 13, 2020 2:42 am
Contact:

Re: Square Root & Log Calculator

Post by jade52blue »

Oh! This is perfect, I'm going to use the Square Root for me CPU project

Post Reply

Return to “Combinator Creations”

Who is online

Users browsing this forum: No registered users