Polynomial Linked List of Term objects is returning a NullPointerException
What is a NullPointerException, and how do I fix it?
What does the explicit keyword mean in C++? Differential equation for Harmonic Motion Particle undergoes simple harmonic motion.  Initially Its displacement is $1$, velocity $1$ and acceleration is $-12$   Compute displacement and acceleration when the velocity is square root of $8$.  I am not familiar with this kind of application question.  So, its displacement is $1$, does that mean that $y=1$ when $x=0$ ? What can you say about $f$ and $g$ in the case that $fg$ is 1) Injective, 2) Surjective - Cohn - Classic Algebra Page 15 Can I visit the US for tourism on a previously unused B1/B2 visa? Note: This is NOT a duplicate of  Difference: In both other questions, the posters traveled once to the US for the original purpose for which the B1 visa was obtained. Their question is about visiting again using the same visa. However, I've not traveled to the US yet, and I'm planning my visit. What I want to understand whether I can use this visa for a visit whose purpose is not the same as what was submitted along with the application.  Can I use a B1/B2 visa for tourism that was originally obtained for business purposes BEFORE I actually visit the US even once? I had applied for a business visitor visa for a valid business reason but by the time I got it stamped, my plan changed. So I've not visited the US even once. Can I now use this visa to visit as a tourist without having used that visa for its original intended purpose? PS: I live in India. MCP4131: How to know what value resistors to use on the multiplexed SPI IO? There are two aspects here. The first question is related to R1 below:    The datasheet says: "R1 must be sized to ensure VIL and VIH of the devices are met" but gives no formula. So first question:  (1) How does one determine value of R1?  The datasheet gives maximum SPI SCK frequency for this device as 10MHz for 5V supply as given in Tables 1-1 and 1-2. However, for the read operation on the device where the SDI/SDO are multiplexed, the idea is different because:    The point 2 under the Table above says that the max SCK can be increased by using a pull up resistor. About these things I am wondering the following:  (2) Why is max SCK frequency lower for multiplexed SDI/SDO read operation only? (3) If I connect a pull-up resistor it will certainly form a voltage divider with the R1 in the first picture. How do I determine the value of both of these resistors then?  Finally, since the Table 1-1 and 1-2 give SCK Input Frequency for voltage 1.8V to 2.7V as 1MHz rather than 10MHz which applies to 2.7V to 5.5V.   (4) Why is the max SCK lowered at lower supply voltage? Stop setInterval call in JavaScript I am using setInterval(fname, 10000); to call a function every 10 seconds in JavaScript. Is it possible to stop calling it on some event?   I want the user to be able to stop the repeated refresh of data. Multiple servers acting like a single one with all the hardware? by now I have 10 servers for hpc, power computing oriented. My users need to launch several processes using qmake. The users are used to work with ubuntu 9.10, and the software from the repositories is switable for them.  I've deployed ubuntu 9.10 to all 10 servers (pxe rocks).  By now we work with parallel-ssh and cluster-ssh, which allows as to launch the same process to all servers. With this tools this tools the servers remain as independent but with the same software and the same launched command.  Now we would like to go to next step and see all the servers as a single one with all the resources from the other 9 as if was its resources.   The difference would be substantial in time to process and also time to design the command to launch.  Any advice on wich software to use will be very useful?  Thanks Does Two-Face die at the end of The Dark Knight? Does the Two-Face die in the final scene of the Dark Knight? If he does, then how does he become one of the long lasting rival of Batman? class variable vs instance variable --Python Is it possible to walk between all three terminals in Dubai Airport without leaving airside? We are arriving into Terminal 2 on the 28th December and want to go to the business lounge in Terminal 1 before getting a flight from Terminal 3 eight hours later. When asking about , people sometimes refer to the strict aliasing rule. What are they talking about? JSON encode MySQL results How do I use the json_encode() function with MySQL query results? Do I need to iterate through the rows or can I just apply it to the entire results object? solution for apex cpu time limit exceeded exception How to subtract days from a plain Date? Primes congruent to 1 mod 6 I came across a claim that I found interesting, but can't seem to prove for some reason. I have the feeling it should be easy  a prime $p$ can be written in the form $p = a^2 -ab +b^2$ for some $a,b\in\mathbb{Z}$ if and only if $p\equiv 1\bmod{6}$ Doppler redshift of distant galaxies gave first hint that the universe is expanding. I am curious to know how this redshift is actually measured and interpreted from observation. Suppose I observe some  visible line say red with wavelength \lambda_1.  This is not enough to tell that this line is redshifted, i.e., the  original line emitted from that galaxy had a smaller wavelength. How do I know the value of that particular line when it was emitted from that galaxy? It appears that mere observation of a line is not enough. So how do we proceed? Why do I get different values for $x from the snippets below?  #!/bin/bash  x=1 echo fred &gt; junk ; while read var ; do x=55 ; done &lt; junk echo x=$x  #    x=55 .. I'd expect this result  x=1 cat junk | while read var ; do x=55 ; done echo x=$x  #    x=1 .. but why?  x=1 echo fred | while read var ; do x=55 ; done echo x=$x  #    x=1  .. but why? Can we escape Earth's gravity slowly? I had a recent conversation with my girlfriend, who is a physics grad student. She was kind enough to listen to me rant about an idea concerning escape velocity. Unfortunately, I am still thinking about this question, but don't want to bother her with it.  My thought is that we shouldn't actually need to reach 11km/sec to leave the earth's gravity. Instead of this, can we simply apply enough force to overcome earth's gravity without reaching that speed? How we would do this is not a part of my question.  Orbital altitude is $99$ miles. Travelling $60$ mph straight up should get you there in $1.65$ hours, granted you have enough force to push. I know some of the simpler math like $F=ma$, but that didn't help me understand.  I browsed some articles about space elevators and couldn't find my answer.  Then I thought about a regular elevator and the fact that it has enough force to move it away from the earth successfully. Even if the elevator moved at $1$ nanometer/sec, it would still move away from the Earth, overcoming the minute pull of gravity at that altitude.  If you missed it, my question was:  can we simply apply enough force to overcome Earth's gravity without reaching that speed?  Edit: In another example, let's say we could drive a car from here to low Earth orbit. As long as we had enough torque, we should be able to overcome gravity, much like a pickup truck pulling a bunch of lumber. Is that correct? Why doesn't a commutator cause the rotation to reverse periodically or stop? I understand the field magnets attracting/repelling the armature/coil so that it turns one half-turn and then, because the commutator is turned, its contact with the brushes has switched sides, and the current goes in the opposite direction, reversing the electromagnetic polarity. Then, because the polarity is swapped, it attracts/repels to complete the second half-turn. The thing is, isn't it a bit of a gamble that it will turn in the same direction? Couldn't the it just be pulled/pushed back, more or less undoing the half-turn?  I'm also a bit confused how the rotation doesn't just stop once the commutator is oriented so that the brushes are contacting both sides of the commutator. In other words, there's a brief period just as the commutator switches the current directions where each both the brushes are in contact with both sides of the commutator where the current is neutralized. Shouldn't this stop the motor?    For reference, I'm just talking about a simple DC motor. Distribute objects optimaly So I've got a file with loads of simple objects. This will later be used to cut out these shapes out of plastic. So, using the material optimally is of outmost importance. I was wondering if there is any script or plugin that could automaticly arrange the objects within the artboard so they could fit best.