Computing inner products in C

  • #1

Homework Statement

x=(2,1+i,i) and y=(2-i,2,1+2i)



Homework Equations





The Attempt at a Solution

um ok normally i would use <a,b>=|a||b|cos(theta). But these are complex numbers. I have no clue how to do this.
 

Answers and Replies

  • #2
Hurkyl
Staff Emeritus
Science Advisor
Gold Member
14,916
19
Surely you have a definition to appeal to?

(and I'm pretty sure that <a,b>=|a||b|cos(theta) isn't it -- and even if that equation were correct, it is rare that you'd actually want to use it to compute an inner product)
 
  • #3
D H
Staff Emeritus
Science Advisor
Insights Author
15,393
686
Suppose instead you were just working with real vectors -- say (2,20,2) and (10,1,1). There is no need to compute the angle between these vectors. There is a much easier way to do this. What is another way to compute the inner product that |a||b|cos(theta)? How would you generalize this to complex numbers?

And finally, what is in your class notes and text? I am quite certain your instructor does not expect you to derive the formula for computing the inner product in C3. He or she expects you to use something you have already been taught.
 

Related Threads on Computing inner products in C

  • Last Post
Replies
6
Views
1K
  • Last Post
Replies
1
Views
904
  • Last Post
Replies
6
Views
977
  • Last Post
Replies
10
Views
2K
  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
2
Views
935
  • Last Post
Replies
4
Views
667
  • Last Post
Replies
1
Views
730
  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
8
Views
1K
Top