Complex number question (i think )

Click For Summary
SUMMARY

The discussion focuses on solving quadratic equations involving complex numbers in the C programming language. The first equation, z² + 3z + 2 = 0, is correctly factored into (z + 1)(z + 2) = 0, yielding real solutions x + 0i. The second equation, z² + 2z + 1 = 0, introduces complexity with conjugate pairs, resulting in four complex solutions. Participants emphasize the importance of mastering simpler problems before progressing to more challenging ones.

PREREQUISITES
  • Understanding of quadratic equations and their solutions
  • Familiarity with complex numbers and their representation
  • Basic knowledge of the C programming language
  • Experience with programming concepts such as functions and data types
NEXT STEPS
  • Study the implementation of complex number arithmetic in C using the complex.h library
  • Learn how to solve quadratic equations programmatically in C
  • Explore the concept of complex conjugates and their applications
  • Research advanced topics in complex analysis for deeper understanding
USEFUL FOR

Students learning complex numbers, C programmers tackling mathematical problems, and educators seeking to clarify concepts related to quadratic equations and complex solutions.

Svensken
Messages
28
Reaction score
0
Complex number question (i think :) )

Homework Statement



Solve the following equations in C :

(a) z^2 + 3z + 2 = 0

The Attempt at a Solution



I thought i should solve the quadratic for z, (z+1)(z+2)=0
and then somehow say that:

1=x+iy

I don't really understand how to go about it, and they want it solved in C. Any hints wil be greatly appreciated!

p.s

This question is a few exercises down, and i know i don't know how to tackle it, it confuses me pretty bad having the conjugate there aswell:

z^2 + 2z + 1 = 0 (where the second z is the conjugate)

Thanks!
 
Physics news on Phys.org


So you've factorized the quadratic into (z+1)(z+2). So what are the zeroes of the quadratic then? You've basically solved the question, and even though no complex numbers arised, it is still in C. The solutions are of the form x+0i.

The second question with the conjugate is more difficult. There are actually 4 complex solutions to that equation.
You better get a good grip of the easier questions before tackling those ones or you'll just confuse yourself.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 19 ·
Replies
19
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
9
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
31
Views
4K