And we are going to use C programming in finding the square root of a given number. As already known, C is an extension of C programming language with the concept of OOPS being introduced; let’s begin in making our own square root function in C.
Hello,
I'm writing a a program in C++ that adds/subtracts complex numbers. I'm having trouble writing the square root of -1 or 'i' in a complex number.
Square Root Symbol
![Square Square](/uploads/1/2/6/1/126125791/178734915.jpg)
- I am having problems using the square root function in my program. I have included outside of main and my formula using the square root.
- Aug 22, 2016 Here you learn how to find square root in c Please Subscribe. Here you learn how to find square root in c Please Subscribe. Skip navigation Sign in.
- So I tried 'square' with no luck. My compiler (Dev-C) spit it back at me like a nasty biscuit. Any ideas?-Incline.
Complex number:
realPart + imaginaryPart * i (where i is /-1) ['square root of -1']
realPart + imaginaryPart * i (where i is /-1) ['square root of -1']
so far I'm thinking the code is something like this, but don't know how to go abouts to writing the square root part.
I can't figure out how to write the commented 'i'.
Help please! ^^
Help please! ^^
- 5 Contributors
- forum 12 Replies
- 463 Views
- 11 Hours Discussion Span
- commentLatest Postby ohnomisLatest Post
brechtjah16
The square root of 1 is 1, this should lead to the square root of -1 being -1, however, this is imaginary. Taking the square root of a negative number doesn't work.
How To Use Square Root In Dev C 4
Square Root Symbol Copy And Paste
Hope this helps