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##...
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...
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.
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...
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...
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...
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...
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
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...
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...
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...