4 ms·
https://en.wikipedia.org/wiki/C_mathematical_functions#complex.h https://en.wikipedia.org/wiki/C_mathematical_functions#compl... https://learn.microsoft.com/en
by peterfirefly 3y ago
https://en.wikipedia.org/wiki/C_mathematical_functions#complex.h https://en.wikipedia.org/wiki/C_mathematical_functions#compl...
https://learn.microsoft.com/en-us/cpp/c-runtime-library/complex-math-support?view=msvc-170 https://learn.microsoft.com/en-us/cpp/c-runtime-library/comp...
https://en.cppreference.com/w/c/language/arithmetic_types#Complex_floating_types https://en.cppreference.com/w/c/language/arithmetic_types#Co...
- lannisterstark 3y agoYes. 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.
- peterfirefly 3y agoHacker News is a strange place.
- jansommer 3y agoCan'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
- peterfirefly 3y agoIt 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?
- jansommer 3y agoThat's another thing I like about ChatGPT. It doesnt judge my compiler ;) ... Which is Tiny C Compiler