need some help for this quantum mechanics problem

This is a discussion on need some help for this quantum mechanics problem within the C Programming forums, part of the General Programming Boards category; Hi, this is a problem from my engineering class, which currently I have no clue how to start this, so ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    2

    Smile need some help for this quantum mechanics problem

    Hi, this is a problem from my engineering class, which currently I have no clue how to start this, so I'm wondering if anyone can give me some hints so I can get start on this problem. Any help will be appricated. thanks.


    Part C (10 points) One of the first equations students taking quantum mechanics are asked to solve is:


    ktan (kL/2) = sqrt (b^2-k^2)


    Write a program which prompts the user to enter values for b and L (both positive) and then calculates k. Some
    combinations of b and L give multiple solutions for k. There will always be exactly one solution for k between 0 and 3.14/L , this is the solution you should find. The name of this program must be QWell.c

  2. #2
    Registered User cbastard's Avatar
    Join Date
    Jul 2005
    Location
    India
    Posts
    167
    >>program which prompts the user to enter values for b and L (both positive)
    assuming you know basics of c you can easily do this.

    >>then calculates k.
    rewrite the equation such that
    k=some function of(B,L)
    The compiler will calculate the value ok for you.

    >>Some combinations of b and L give multiple solutions for k. There will always be exactly one solution for k between 0 and 3.14/L , this is the solution you should find
    Check with conditional loop if the value you have found lie in the region
    Long time no C. I need to learn the language again.
    Help a man when he is in trouble and he will remember you when he is in trouble again.
    You learn in life when you lose.
    Complex problems have simple, easy to understand wrong answers.
    "A ship in the harbour is safe, but that's not what ships are built
    for"

  3. #3
    Registered User
    Join Date
    Nov 2005
    Posts
    2
    thank you. i think i have some idea right now

  4. #4
    Registered User
    Join Date
    Oct 2005
    Posts
    38
    Well if its any help

    it simplifies to:

    cos(kL/2) = k/b

    half angle formulae?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 10:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21