+ 1
Can we get imaginary numbers as output through 'c' language?
I mean by means of any code Pls answer this .....
7 odpowiedzi
+ 1
you can declare the variable like,
double complex z = x + y * I;
its a bit difficult to mention all the stuff here :| but try this,
https://stackoverflow.com/questions/6418807/how-to-work-with-complex-numbers-in-c
I think it will help you :)
+ 5
oh you're talking about imaginary numbers in complex numbers, there is a header file called complex.h, you can use that to work with complex numbers.
+ 2
if you mean random numbers, you can use rand() function.
+ 2
Thank you ❤
0
Thank you
But i mean if i get a result as imaginary numbers as the solution of a quadratic equation can we get the output....???
0
Ooo ok thank you❤
0
Can you please mention the format specifiers and function should be used for complex numbers please!!!