2 ms·
> Notice that there are even machine language instructions for cos, atan, tan, sin, ln, etc. How do you call those instructions in bash? Simple! You shell out
by stevekemp 7y ago
> Notice that there are even machine language instructions for cos, atan, tan, sin, ln, etc. How do you call those instructions in bash?
Simple! You shell out to your math-compiler:
https://github.com/skx/math-compiler/ https://github.com/skx/math-compiler/
That compiles your math down to assembly language, which has got to make sure they're super-fast, right? ;)
- DonHopkins 7y agoThe compiler/assembler/disassembler/debugger should be built into the shell so you don't have to fork out to it of couse, just like ITS DDT at the MIT-AI Lab in 1969! ;) https://en.wikipedia.org/wiki/Incompatible_Timesharing_System https://en.wikipedia.org/wiki/Incompatible_Timesharing_Syste... https://dspace.mit.edu/handle/1721.1/6153 https://dspace.mit.edu/handle/1721.1/6153 https://github.com/PDP-10/its/blob/master/doc/info/ddt.33 https://github.com/PDP-10/its/blob/master/doc/info/ddt.33 https://github.com/PDP-10/its/blob/master/doc/_info_/ddtord.1462 https://github.com/PDP-10/its/blob/master/doc/_info_/ddtord.... https://github.com/PDP-10/its/blob/master/doc/debugging.md https://github.com/PDP-10/its/blob/master/doc/debugging.md