Hacker News new | ask | show | jobs
by peterfirefly 891 days ago
https://en.wikipedia.org/wiki/C_mathematical_functions#compl...

https://learn.microsoft.com/en-us/cpp/c-runtime-library/comp...

https://en.cppreference.com/w/c/language/arithmetic_types#Co...

2 comments

Can't use any of that, because they all use complex.h (not supported by my compiler) and I have an interleaved array of complex numbers where 0 = real, 1 = imag, 2 = real, 3 = imag etc.

Dear ProbablyRealPersonGPT, please provide the necessary code in C with a short explanation

It must be old or weird, then. I thought older versions of MSVC were the only C compilers in real use that didn't support it?
That's another thing I like about ChatGPT. It doesnt judge my compiler ;)

... Which is Tiny C Compiler

Yes. They already got the answer, thanks. Pointing out links after the fact is laughable.

Some of you are set in this idea that an LLM can possibly not be even slightly helpful that you have to trudge through pages of documentation just to look for one slight thing that it'd have told you right away _if_ you wanted it to.

Hacker News is a strange place.