You can write anything with any complete turing language
Sure. Back in the old days, when we were switching from Fortran to C, my colleagues were not comfortable with LibC, because it’s math.h module had just primitive math functions like sin, cos, abs, etc.
My idea was to rewrite most used part of Fortran library in C, or make it somehow compatible with C. But, unfortunately we hadn’t got the source, because Fortran was running on USSR M-222 computing machine, which had very rare architecture, and was kinda experimental. So we disassembled some functions and made our own header to make it possible to do Fortran stuff in C
It was a long time ago, and I don’t remember where this header is now :)