Recent content by gabbagabbahey

  1. gabbagabbahey

    Green's Function with repulsive force

    Hint: ##F=kx## tells you that ##m\ddot{x}(t) = kx(t)##...what does your equation for the Green's Function tell you ##\ddot{x}(t)## is?
  2. gabbagabbahey

    Separation of variables and potential

    Hi sayebms, ##Y(-b)=-V_s =-A sin \alpha b +B cos \alpha b ## does not match the boundary condition you gave in the problem statement. Also, if the product of 2 numbers is zero, does that guarantee the the first number must be zero? If not, how do you justify claiming ##2B cos \alpha b = 0##...
  3. gabbagabbahey

    Comp Sci Java Fibonacci Sequence: Finding the Sum of Even-Valued Terms Under 4 Million

    You may want to re-read the problem statement:)). There is a VERY significant difference between the 4 millionth term in the Fibonacci Sequence and the highest term that does not exceed 4 million: so significant that using long or double can't possibly save you in the case of the former. Try...
  4. gabbagabbahey

    Java Solve Confused Java HW: Generate 225 Samples Size 625 Random Nos U(10,22)

    not sure about netbeans, but when I paste your code into eclipse I see 6 error messages relating to upper case "I" being used. When I change the 6 upper case "I"s to lower case I am able to compile and run your Class and the results seem pretty reasonable.
  5. gabbagabbahey

    Comp Sci Sorting Arrays to a file Java

    Why the second opening bracket { ? Your PrintWriter is probably writing to whatever directory your .java file is stored in It looks like you are checking your boolean while still inside your for loop...is that really what you intended? Careful, when adding 1892 you might destroy your sort...
  6. gabbagabbahey

    Comp Sci Sorting Arrays to a file Java

    Hi TG101, As Mfb pointed out, Your second "if" statement is inside the first and will never evaluate to true. Moreover, if it were outside the first "if" statement it would not do what you are hoping. Rather than only adding 1892 to the Array if it is not already present, it will add it to...
  7. gabbagabbahey

    Comp Sci Java Implementing Singly Linked List

    In that case, maybe show the class that has your main method
  8. gabbagabbahey

    Comp Sci Java Implementing Singly Linked List

    My Java is a little rusty, but isn't LinkedList a Class, how does one Class implement another?
  9. gabbagabbahey

    Java Help with a pattern using nested loops (java)

    Hmmm... that seems like a lot of extra loops and processing. Before changing your code, maybe write down in words what you are trying to accomplish. It looks like for an input of 5, your desired output is 5 lines each with 5 characters (either spaces or integers)...how many (outer) loops would...
  10. gabbagabbahey

    General equations for transmitted and reflected waves

    There's more than one way to skin a cat Well, a and b are functions (although I realize now I could have made that clearer in the Hint), so it is just a substitution u \rightarrow u +\Delta z (specifically, it can be thought of as a "shift" of the u axis) If it is not intuitively obvious...
  11. gabbagabbahey

    Find TM waves mode in a rectangular waveguide

    Hi baby_1, Have you checked the errata for the edition of the book you are using. Seems to me there is a typo in their problem statement (which doesn't even tell you what units to use for the coordinates x and y. What textbook is this from? Cheers, Gabba
  12. gabbagabbahey

    Derive Internal Energy from Thermodynamic Identity

    Hint: don't forget the basic rules of differentiation, namely \left(\frac{\partial}{\partial U}\right)_{V}S(Z) = \left(\frac{\partial Z}{\partial U}\right)_{V}\left(\frac{\partial}{\partial Z}\right)_{V}S(Z)
  13. gabbagabbahey

    General equations for transmitted and reflected waves

    Hi ELB27, Hint 1 if a(u)=b(u+1), then a(u-\Delta z)=b(u-\Delta z + 1) (can you see how to use this to eliminate g_{T}?) Hint 2 \frac{d}{du}a(w) = \frac{dw}{du}\frac{d}{dw}a(w) Using some clever substitutions and applying the above derivative rule you should be able to arrive at a simple...
  14. gabbagabbahey

    Field Momentum of a Dipole in a Static Field

    Hi ELB27 A good attempt, but two things stand out to me: (1) I don't see why you assume the total electric dipole moment is zero (2) Your series expansion for V(0) looks dubious in general. In particular, how do you justify throwing away the higher order terms, and how does an expression with...
  15. gabbagabbahey

    What are some useful programs for beginners to create?

    Hmm... one thing that might be of general use to people is a resume builder that asks specific questions about skills, experience, objectives, and education and then checks the supplied responses for grammer and spelling and builds a word document using one of a few styles that the user selects...
Back
Top