text
stringlengths
1
1.11k
source
dict
ros, simpleactionclient, move-arm Title: Waiting for action server when using SimpleActionClient In my code, I have constructed a SimpleActionClient with the MoveArmAction interface to communicate with move_right_arm action. I have also launched the right_arm_navigation.launch file from pr2_3dnav, but the code does n...
{ "domain": "robotics.stackexchange", "id": 5342, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros, simpleactionclient, move-arm", "url": null }
rsample.h <- function(r, N = 1000) { binwidth <- (1 - m)/r grid <- seq(m, 1, length.out = r + 1) binheights <- sapply(grid[1:r], h) binprobs <- binheights/sum(binheights) s <- sample.int(r, N, replace = T, prob = binprobs) x <- m + (s - 1) * binwidth + runif(N, 0, binwidth) return(x[which(runif(N, 0, binheights[s]) - ...
{ "domain": "quantitations.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9843363512883317, "lm_q1q2_score": 0.836657525747031, "lm_q2_score": 0.849971175657575, "openwebmath_perplexity": 2373.760690156471, "openwebmath_score": 0.8017206788063049, "tags"...
reinforcement-learning, python, policy-gradients, ddpg, gym next_state = torch.tensor(next_state, device=device, dtype=dtype).unsqueeze(0) reward = torch.tensor( [reward], device=device, dtype=dtype ).unsqueeze(0) done = torch.tensor( ...
{ "domain": "ai.stackexchange", "id": 2229, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "reinforcement-learning, python, policy-gradients, ddpg, gym", "url": null }
physical-chemistry, everyday-chemistry, solvents I can imagine that the low viscosity of WD-40 allows it to get in all nooks, making it easier to grind rust particles away because it acts as a short-term lubricant. Is that actually how it works, or am I missing something? I'd say it works by coming out as a liquid. Th...
{ "domain": "chemistry.stackexchange", "id": 8489, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "physical-chemistry, everyday-chemistry, solvents", "url": null }
python, numpy Is there an approach where I can shift the 1s without needing to create a separate zeros array in memory? Sure, numpy.roll does circular shifting: numpy.roll([1,0,0], 4) == numpy.array([0, 1, 0]) Is there an Pythonic way to implement two different functions on two halves of the same array without s...
{ "domain": "codereview.stackexchange", "id": 38110, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python, numpy", "url": null }
ros, tutorial, rosjava, android Title: Does android_tutorial_pubsub connect to other ROS Masters? I've built and installed android_tutorial_pubsub from source, but it doesn't seem to connect to a specified ros master on a host computer. I'm running it on an Asus Transformer Prime with Ice Cream Sandwich (4.0.3). Shou...
{ "domain": "robotics.stackexchange", "id": 8775, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros, tutorial, rosjava, android", "url": null }
java, generics, observer-pattern // Holds registered observers. // @TODO if class is not final can we make this protected? (should we?). private final Collection<Observer<? super T>> observers; /** * observersSet gives the opportunity of changing the implementing set. The * benefit is, final user can...
{ "domain": "codereview.stackexchange", "id": 11520, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "java, generics, observer-pattern", "url": null }
neural-network, keras, tensorflow, rnn, gradient-descent My questions are: Can I use these Jacobians to check the extent of vanishing gradients, as a proxy to the gradients with respect to weights? How can I use backend.function defined on weights to obtain gradients? What do I put in feed_dict? If there is a better ...
{ "domain": "datascience.stackexchange", "id": 10510, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "neural-network, keras, tensorflow, rnn, gradient-descent", "url": null }
api, typescript, type-safety, client } run(); By using any you are losing type safety, which defeats the point of Typescript, at least in this spot. But sometimes it’s just easier. Just because the example is written in JavaScript doesn’t mean there aren’t types provided for Typescript for the config object. Check th...
{ "domain": "codereview.stackexchange", "id": 43441, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "api, typescript, type-safety, client", "url": null }
javascript Omega.prototype.recursivelyEliminateDuplicates: function(array) { array.forEach(function(topLevelElem, topLevelIndex){ array.forEach(function(elem, index){ if ((index !== topLevelIndex) && (elem === topLevelElem)) { array.splice(index, ...
{ "domain": "codereview.stackexchange", "id": 17020, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "javascript", "url": null }
electromagnetism, schroedinger-equation, quantum-electrodynamics Title: Schrodinger equation for free EM field The question come from the fact that I've seen for the first time in my life the quantization of a field, in particular of the free em field. I've study how it is possible to write the energy of the em field...
{ "domain": "physics.stackexchange", "id": 68100, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electromagnetism, schroedinger-equation, quantum-electrodynamics", "url": null }
chaos-theory, non-linear-systems An ideal answer might be something like "even though it's clear that this wing design is going to create a lot of turbulence, we can see that the turbulence will have a certain "structure", and thinking about this "structure" just a little bit, we can see that it's going actually work ...
{ "domain": "physics.stackexchange", "id": 27964, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "chaos-theory, non-linear-systems", "url": null }
electrostatics, vectors, coulombs-law Title: Coulomb's law with an $r^3$, not $r^2$, in the denominator I am reading an older physics book that my professor gave me. It is going over Coulomb's law and Gauss' theorem. However, the book gives both equations with an $r^3$, not $r^2$, in the denominator. Can somebody plea...
{ "domain": "physics.stackexchange", "id": 23468, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electrostatics, vectors, coulombs-law", "url": null }
equilibrium, aqueous-solution, hydrolysis $\ce {2H2O <=> H3O+ + OH-}$. (Since we usually do not use the expression $\ce {H3O+}$, this process can be rewrited as $\ce {H2O <=> H+ + OH-}$ to avoid disruption.) This phenomenon (called the autoionization of the water) is very weak. The concentrations of $\ce{H+}$ and $\ce...
{ "domain": "chemistry.stackexchange", "id": 3286, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "equilibrium, aqueous-solution, hydrolysis", "url": null }
angular-momentum, reference-frames, rotation, geometry, convection $$ \lvert \mathcal{R}\vec r\rangle = \rho(\mathcal{R})\lvert \vec r\rangle$$ i.e. applying the rotation to the position vector and then finding the state corresponding to it is the same as taking the state corresponding to the position vector and apply...
{ "domain": "physics.stackexchange", "id": 87140, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "angular-momentum, reference-frames, rotation, geometry, convection", "url": null...
thermodynamics, electronics, thermoelectricity Now your numbers. 250 ml is cooled by 15 degrees, requiring 15*250*4.2 ~ 15 kJ in 20 minutes (1200 seconds) or about 13 W of cooling power. A truly efficient heat pump could move that energy with 0.65 W. A Peltier that is 15% efficient would require about 3W for the job. ...
{ "domain": "physics.stackexchange", "id": 14836, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "thermodynamics, electronics, thermoelectricity", "url": null }
cosmology, mass, space-expansion, universe, distance Title: What if everything doubled linearly? There is a question that goes: Suppose you are told that the linear size of everything in the universe has been doubled overnight. Can you test it by using the fact that the speed of light is a universal constant and has n...
{ "domain": "physics.stackexchange", "id": 93988, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "cosmology, mass, space-expansion, universe, distance", "url": null }
thermodynamics Title: What is the relation to time of a thermodynamic cycle? A thermodynamic cycle consists of a fluid that exchanges heat and work with the environment. The fluid can be in multiple states, for example the temperature, pressure and volume can differ. However, I an not sure what the connection is with ...
{ "domain": "physics.stackexchange", "id": 91031, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "thermodynamics", "url": null }
filters, infinite-impulse-response, transfer-function I've just understood how to draw $H_1(z)$, but i don't understand why $H_2(z)$ is drawed as such in diagram. Can you explain to me ? ps: can i also implement a FIR filter using Direct Forms 1 and 2 ? You can't implement the transfer function H(z) directly, you need...
{ "domain": "dsp.stackexchange", "id": 8258, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "filters, infinite-impulse-response, transfer-function", "url": null }
orbital-motion I am also assuming that the data given by NASA is valid for the vector time provided, meaning that time obviously has to come into the calculations somewhere. Thanks, I would appreciate some clarification. The reference you link to is for objects orbiting Sun (i.e. comets or asteroids). If you're wantin...
{ "domain": "physics.stackexchange", "id": 5040, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "orbital-motion", "url": null }
satellites (taken from USGS Landsat Mission) Note that it is not only the boundaries of the bands what matter, but also the spectral response within the band. Therefore, even for bands that seem identical, the coefficients of exo-atmospheric irradiances can present small differences. Ideally, you should use the coeffi...
{ "domain": "earthscience.stackexchange", "id": 1584, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "satellites", "url": null }
javascript, beginner, html you can just do selectList.onclick = function () { calculate(this.form) }; Then again, since there's only the one form, it's a little redundant to pass that to the calculate function. Especially right now when calculate does so much other DOM work already. So, if we imagine that calculate (...
{ "domain": "codereview.stackexchange", "id": 17736, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "javascript, beginner, html", "url": null }
java, sorting, heap One thing I'm not happy about in the above code is the fact that the MaxHeap adopts the input array rather than making a copy. That is probably surprising behaviour to users of the class, who probably don't expect the contents of the passed-in data array to be modified. On the other hand, it's nic...
{ "domain": "codereview.stackexchange", "id": 4734, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "java, sorting, heap", "url": null }
$\Longleftarrow$ Suppose $K \in \mathcal{K}_p$. Let $q_1,q_2,\cdots,q_n \in Q$ be finitely many sets from $Q$. Consider the basic open set $V(f_p,q_1,\cdots,q_n)$ containing $f_p$. Recall that this is just the set of all $f \in 2^Q$ that agree with $f_p$ on the elements $q_1,q_2,\cdots,q_n \in Q$. Because $K \in \mathc...
{ "domain": "wordpress.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9865717448632122, "lm_q1q2_score": 0.8042853394891827, "lm_q2_score": 0.815232489352, "openwebmath_perplexity": 48.31693883029408, "openwebmath_score": 0.9730486869812012, "tags": ...
$./nested_loops.py Total1 = 98594 Total2 = 98594 Showing the two summation approaches are adding up the same section because it is not a symmetric table. # More Generally The book uses a general notation that, as mentioned in the intro above, confused me. This section is more a brain dump of me attempting to understand...
{ "domain": "github.io", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9736446463891304, "lm_q1q2_score": 0.8005200410099336, "lm_q2_score": 0.8221891261650247, "openwebmath_perplexity": 1767.422177936132, "openwebmath_score": 0.9921942353248596, "tags": null...
python, object-oriented This way it is actually useful to override the __init__ method. If all you do is call the parents constructor (without any change of arguments) you could just leave it out. Note that I also moved the calculation of perimeter and area into the constructor. This way the class is usable right afte...
{ "domain": "codereview.stackexchange", "id": 31752, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python, object-oriented", "url": null }
• Total[MonomialList[f(x,y),{x,y},"DegreeLexicographic"] will sum the list. Aug 4 '21 at 12:45 • This is true, however, it doesn't retain the order of the terms from the list. Aug 4 '21 at 12:50 • Total[HoldForm /@ CoefficientList[f[t*x, t*y], t]] Aug 4 '21 at 12:59 • People here generally like users to post code as Ma...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9324533088603709, "lm_q1q2_score": 0.8015963136991181, "lm_q2_score": 0.8596637559030338, "openwebmath_perplexity": 1757.4067440515646, "openwebmath_score": 0.19548891484737396, "t...
javascript, jquery, game, html That's not only better practice, it's also easier to read. Note the use of ES2015 syntax - you can count on the vast majority of users to be using browsers that support ES2015. Very few people are still using IE11, and those that are (old business enterprise networks, mostly) are less li...
{ "domain": "codereview.stackexchange", "id": 39642, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "javascript, jquery, game, html", "url": null }
dna Title: DNA test to prove that two grand-grand-children descend from same grand-grandparents Can DNA test prove that two persons descend from same great-grandparents (or test where one great-grandchild and grand-child are tested)? Yes testing for relatedness of grand-grand children is possible. (Ignoring some very...
{ "domain": "biology.stackexchange", "id": 8424, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "dna", "url": null }
electromagnetic-radiation, electrical-engineering, radio, microwaves https://www.ntia.doc.gov/files/ntia/publications/2003-allochrt.pdf As for why certain frequencies are used for certain things and not others, that's partly a regulatory judgement call but also related to physics. For example, some frequencies are he...
{ "domain": "physics.stackexchange", "id": 51504, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electromagnetic-radiation, electrical-engineering, radio, microwaves", "url": nu...
brainfuck >[ Move to cell one and iterate until cell one is zero >+ Add 1 to cell two <- Subtract 1 from cell one ] >. Print cell two The objective of this snippet is to take two predetermined values 15 and 20, add them together (resulting in 35), and print the resu...
{ "domain": "codereview.stackexchange", "id": 44710, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "brainfuck", "url": null }
visible-light, electromagnetic-radiation, photons, interactions The obvious answer is that, in the example with the road, the road is hot, and as the heat rises, it plays havoc with the light waves. I ask why the heated air interacts with the light and changes the image you see, whilst in other circumstances the light...
{ "domain": "physics.stackexchange", "id": 25302, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "visible-light, electromagnetic-radiation, photons, interactions", "url": null }
electromagnetism, field-theory, quantum-chromodynamics Using this lagrangian one can easily build the equation of motion by variating the action associated with that lagrangian. What one finds is the following equation of motion $$m\ddot{x}^\mu = \text{Tr}(QF_{\mu\nu})\dot{x}^\nu \tag{1}$$ where, agin, the trace is ov...
{ "domain": "physics.stackexchange", "id": 67554, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electromagnetism, field-theory, quantum-chromodynamics", "url": null }
thermodynamics, solid-state-physics, water Title: Why does ice freeze in feathery streaks on windows? A twitter acquaintance asks: ...why does the ice form in feathery streaks like this? The common term for those is 'dendrites'. It's caused by imperfections and deposits on the glass, which alter the process of conden...
{ "domain": "physics.stackexchange", "id": 78495, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "thermodynamics, solid-state-physics, water", "url": null }
Method 2: The perimeter of ABCD is 4 so each side is 1. So each half side is 1/2. In triangle APQ, AP and AQ are 1/2 each so $$PQ = 1/\sqrt{2}$$ (using Pythegorean theorem) So half of PQ is $$1/2\sqrt{2}$$ Area of red triangle = $$(1/2)*(1/2\sqrt{2})*(1/2\sqrt{2}) = 1/16$$ _________________ Karishma Veritas Prep | G...
{ "domain": "gmatclub.com", "id": null, "lm_label": "1. Yes\n2. Yes", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9155072552462733, "lm_q1q2_score": 0.8178312398220968, "lm_q2_score": 0.8933094032139577, "openwebmath_perplexity": 2601.4114549192564, "openwebmath_score": 0.6162732839584351, "tags": ...
c#, generics } else { if (students == null) students = new ModelStudents(components); return (IEnumerable<TEntity>)students.Set(); } } } It seems like you could just mirror the way FetchFromDatabase is implemented. First thing you will need is a somet...
{ "domain": "codereview.stackexchange", "id": 16021, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c#, generics", "url": null }
fourier series 75 of constants a0, an, bn, n = 1,2,. 5|Fourier Series 2 The second form doesn’t work as well as the rst one, and there’s a reason for that. First term in a Fourier series. We'll eventually prove this theorem in Section 3. Determine the Fourier series expansion for full wave rectified sine wave i. Korosh...
{ "domain": "small-rooms.de", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9891815510282099, "lm_q1q2_score": 0.8155425206971865, "lm_q2_score": 0.8244619199068831, "openwebmath_perplexity": 524.8734259480808, "openwebmath_score": 0.9043282866477966, "ta...
c++, simulation case Event::arrival_1: { cout << "bus " << evt.get_bus_no() << " arriving block 1 at: " << Clock << endl; Event enter_1 = Event(Event::arrival_2, evt.get_bus_no(), Clock + Travel_time_bw_block); FutureEventList.push(enter_1); b...
{ "domain": "codereview.stackexchange", "id": 23526, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, simulation", "url": null }
multithreading, regex, web-scraping, rust let dsn = try!(env::var("REDIS_DSN")); let redis_client = &try!(redis::Client::open(&*dsn)); let res = try!(http_client.post(&format!("{}/gan/idx/search.php", SEARCH_HOST)) .header(ContentType::form_url_encoded()) .body(body) .send()); let...
{ "domain": "codereview.stackexchange", "id": 18804, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "multithreading, regex, web-scraping, rust", "url": null }
swift Going a step further, we generally strive for cancelable Operation subclasses, where possible. E.g., in this example, rather than using a closure with asyncAfter, we should instead used a DispatchWorkItem. Then we could make this operation truly cancelable (rather than having to wait two seconds before the cance...
{ "domain": "codereview.stackexchange", "id": 42609, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "swift", "url": null }
magnetic-fields, material-science, magnetic-moment, ferromagnetism Title: Relating energy density between anisotropy field and Stoner-Wohlfarth model At this point I'm not sure if there is a jump in the text or there is a gap in my understanding. Here goes: Consider a uniaxial single domain crystal in which the magnet...
{ "domain": "physics.stackexchange", "id": 91125, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "magnetic-fields, material-science, magnetic-moment, ferromagnetism", "url": null...
### GR9768.62: Algebraic Expansion 62.  The coefficient of $x^3$ in the expansion of $(1+x)^3(2+x^2)^{10}$ is (A)  $2^{14}$ (B)  $31$ (C)  $3 \choose 3$ + $10\choose 1$ (D)  $3 \choose 3$ + $2{10\choose 1}$ (E)  $3\choose 3$$10\choose 1$$2^9$ Solution: First, observe that $(1+x)^3 = 1 + 3x + 3x^2 + x^3$. And $(2+x^2)...
{ "domain": "blogspot.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9908743636887527, "lm_q1q2_score": 0.8054493795877156, "lm_q2_score": 0.8128673110375457, "openwebmath_perplexity": 509.8762237805074, "openwebmath_score": 0.9396355748176575, "tags": n...
30. Sol Lederman says: John Cook at the Endeavour Blog has a link to a paper claiming a solution: http://www.johndcook.com/blog/2011/06/01/collatz-3n-1-conjecture-solved/ 31. luker says: looking at m-cycles (learned from wikipedia) A=2x+1 (any odd number) (forgive my notation, I’m not a math guy.) 3(A) + 1 = 2^n(2^...
{ "domain": "mathlesstraveled.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9905874093008836, "lm_q1q2_score": 0.8052161237460581, "lm_q2_score": 0.8128673110375458, "openwebmath_perplexity": 560.8807959677262, "openwebmath_score": 0.7346580028533936, "...
the following Boolean expression: AB(A + B)(C + C) Design the combinatorial circuit for: (p' *r) + q; Design the combinatorial circuit for: [(p Λ q') V ( r V q)] Λ s; Complete the truth table of the following Boolean expression: p' Λ (q V r ) Prove or disprove that the following 2 expressions are equivalent. " No OR op...
{ "domain": "rallystoryeventi.it", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9648551535992068, "lm_q1q2_score": 0.838291986084183, "lm_q2_score": 0.8688267694452331, "openwebmath_perplexity": 892.2882055966397, "openwebmath_score": 0.7118634581565857, ...
rust, pointers It's unsafe code, be thorough. On top, you also need some specific testing techniques for unsafe code. You want to check that borrow-checking works, or that Send and Sync are not implemented when they should not be. It seems silly, but when you write unsafe code and materialize references manually, you ...
{ "domain": "codereview.stackexchange", "id": 44306, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "rust, pointers", "url": null }
# Math Help - Integral of Gaussian multiplied by cos(x) 1. ## Integral of Gaussian multiplied by cos(x) Hey I have a problem that was in quantum mechanics, but is basically a math problem. I need to solve the following integral: How do you achieve this result analytically? I do know how to solve for the integral of ...
{ "domain": "mathhelpforum.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9643214460461698, "lm_q1q2_score": 0.8253156191892721, "lm_q2_score": 0.8558511506439707, "openwebmath_perplexity": 323.2056088570082, "openwebmath_score": 0.9201202988624573, "tag...
orbit, astrophysics, natural-satellites, geology How massive must a rocky body be to liquify adequately to eliminate internal mass concentrations that could disrupt natural satellite orbits? I understand geothermal energy to be a function of both gravitation and fissionable material in the planetary body, so an ideal ...
{ "domain": "astronomy.stackexchange", "id": 1802, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "orbit, astrophysics, natural-satellites, geology", "url": null }
python, beginner, number-guessing-game Title: Number-guessing game using functions First time writing a "game" in a sense. Used a functions approach, it's simple, looking for a review of the way it's written and of course looking for how should it be written. Also using random for first time (I know I'm a nube). #Numb...
{ "domain": "codereview.stackexchange", "id": 32245, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python, beginner, number-guessing-game", "url": null }
java, object-oriented, enum if (two && three) validated = true; } else if( category == Category.SMALL_STRAIGHT){ // "Small Straight" int seq_cnt = 0; for(int value : count){ if(value > 0){ seq_cnt++; if(seq_cnt == 4){ ...
{ "domain": "codereview.stackexchange", "id": 16151, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "java, object-oriented, enum", "url": null }
python, performance, beginner, python-3.x, fizzbuzz _test_cases.close() if __name__ == '__main__': main(sys.argv[1]) There is a bug in your code for those times when the two input values are not prime. Consider an instance when the input values are 4 and 6. In this case, your code will output F for multiples of 4,...
{ "domain": "codereview.stackexchange", "id": 23733, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python, performance, beginner, python-3.x, fizzbuzz", "url": null }
c++, image, template, classes, c++20 template<class InputT = RGB> requires (std::same_as<InputT, RGB>) constexpr static Image<InputT> subtract(const Image<InputT>& input1, const Image<InputT>& input2) { check_size_same(input1, input2); Image<InputT> output(input1.getWidth(), input1.getHeigh...
{ "domain": "codereview.stackexchange", "id": 45266, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, image, template, classes, c++20", "url": null }
organic-chemistry, thermodynamics, stereochemistry, stability The thing about enantiomers is that, from a thermodynamic point of view, they are the same so any process is not being driven by differences in the energy between the molecules. What matters, if racemisation is to occur, is that there is some accessible pat...
{ "domain": "chemistry.stackexchange", "id": 10908, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "organic-chemistry, thermodynamics, stereochemistry, stability", "url": null }
java, xml, swing, i18n, rubberduck public SwingOverviewView() { window = new JFrame("Rubberduck Translation Helper"); window.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); translationContainer = new JTable(); translationContainer.setModel(new TranslationTable()); menuBar...
{ "domain": "codereview.stackexchange", "id": 16537, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "java, xml, swing, i18n, rubberduck", "url": null }
1, QP MEI 109, 1974, Q4. Yes. MT² = (1 - 3)² + (1 - 5)² = 20. Name Geometry Proving that a Quadrilateral is a Parallelogram Any of the methods may be used to prove that a quadrilateral is a parallelogram. A rhombus is a special case of the kite. Properties of a Rhombus One of the two characteristics that make a rhombus...
{ "domain": "travel2losangeles.us", "id": null, "lm_label": "1. Yes\n2. Yes", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9879462183543601, "lm_q1q2_score": 0.8030692016388975, "lm_q2_score": 0.8128673269042767, "openwebmath_perplexity": 890.4419924473979, "openwebmath_score": 0.8449695706367493, "...
special-relativity, inertial-frames, observers Title: What is physically different about a moving vs still object in space? If I have two asteroids. One dead still in space and one whizzing by at 10,000mph. What is the difference between the two, physically? If I freeze time and look at the two of them - what differen...
{ "domain": "physics.stackexchange", "id": 54532, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "special-relativity, inertial-frames, observers", "url": null }
$$\lim_{x\to 0^+} \sqrt{x}$$ does not exist on the basis that I should have written $$\lim_{x\to 0} \sqrt{x}$$? Both exist, of course. I think you'll find yourself very alone in claiming that the first limit is wrong in any way. I believe Mathman's statement was exactly the opposite of what is true. Or at the very lea...
{ "domain": "physicsforums.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9621075701109193, "lm_q1q2_score": 0.8119178722131701, "lm_q2_score": 0.8438951084436077, "openwebmath_perplexity": 223.2099049562613, "openwebmath_score": 0.9142714142799377, ...
java, json The Jackson way is "mapping by name"-convention. Your keys must be named like the attributes of your JAVA Object that should follow the bean convention. The central clas is the ObjectMapper you have to instantiate: ObjectMapper mapper = new ObjectMapper(); Then you may have the OrderObject attribute names ...
{ "domain": "codereview.stackexchange", "id": 24122, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "java, json", "url": null }
After a bit of further thought: in this case it's easy to show that six discs do not suffice. Consider the following seven points: the vertices of a hexagon inscribed in the circle, together with its center [for either referent of "its"]. One of the small disks would have to cover two of them, and thus be on the midpoi...
{ "domain": "mathoverflow.net", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9715639677785087, "lm_q1q2_score": 0.8138013809739255, "lm_q2_score": 0.8376199694135332, "openwebmath_perplexity": 790.9034371788329, "openwebmath_score": 0.8984519839286804, "tags...
c#, reinventing-the-wheel, reflection And here's the accumulation class: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace KerbalTherapist.Accumulators { public class RandomAccumulator { //number of kerbals to create public int Number...
{ "domain": "codereview.stackexchange", "id": 44019, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c#, reinventing-the-wheel, reflection", "url": null }
electromagnetism, visible-light, speed-of-light, refraction, quantum-optics A virtual quantum state is very limited in duration, and doesn't count as a particle interaction. The light wave and the electron remain unentangled and continue to act as probability waves. The electron can only play with the light wave's e...
{ "domain": "physics.stackexchange", "id": 15522, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electromagnetism, visible-light, speed-of-light, refraction, quantum-optics", "u...
type-systems The Univalence axiom is stated as a hypothesis. It would be better if it were built into the system. In particular we would like Coq and Agda to understand the computation rules about the Univalence axiom. Likewise, we have to use hacks to get workable higher-inductive types. Again, it would be better to ...
{ "domain": "cstheory.stackexchange", "id": 2510, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "type-systems", "url": null }
electrochemistry = +0.80 - (+0.77) = 0.03V
{ "domain": "chemistry.stackexchange", "id": 7410, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electrochemistry", "url": null }
c++, linked-list What happens if you start copying but there is an error? In this situation, you are supposed to throw an exception. But if you do you have already released the original list, so your object has been modified. This means you don't provide the strong exception guarantee. Strong Exception Guarantee: Eith...
{ "domain": "codereview.stackexchange", "id": 44009, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, linked-list", "url": null }
javascript if(j){ self.style.left= j.left; self.style.top = j.top; } } function drag(bool) { self.style.position="absolute"; self.style.zIndex=999; self.style.left = origLeft + event.clientX - mdX + "px"; self.style.top = origTop + event.clientY - mdY + "...
{ "domain": "codereview.stackexchange", "id": 4959, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "javascript", "url": null }
# Is it necessarily a closed subset? Let $f:X \rightarrow Y$ be a continuos map and $c \in Y$ Is $\{x \in X | f(x)=c\}$ necessarily a closed subset of $X$? Attempt: I was thinking about a contradiction. Can this be a counterexample? $f(x) = \frac{1}{x^2+1}$ is continuous on the whole real line and and the image of t...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9678992960608886, "lm_q1q2_score": 0.8001737573276237, "lm_q2_score": 0.8267117876664789, "openwebmath_perplexity": 127.68193740556482, "openwebmath_score": 0.9341474175453186, "ta...
To show that the two slack forms are equivalent, we will show both that they have equal objective functions, and their sets of feasible solutions are equal. First, we'll check that their sets of feasible solutions are equal. Basically all we do to the constraints when we pivot is take the non-basic variable, $e$, and ...
{ "domain": "github.io", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9808759643671934, "lm_q1q2_score": 0.8216012912957417, "lm_q2_score": 0.8376199653600372, "openwebmath_perplexity": 207.84856659919672, "openwebmath_score": 0.9623755216598511, "tags": nul...
torque I know a specific answer would depend on lot of details I have left out, but i'm looking for a general way to think about and tackle such problems where a force is applied uniformly and not from a specific point. To calculate the torque you replace the distributed force by a single force. If the force is unifor...
{ "domain": "physics.stackexchange", "id": 42685, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "torque", "url": null }
homework-and-exercises, newtonian-mechanics, momentum, conservation-laws, collision Yes, the change in the velocity of $M$ will be negligible, but what is conserved is not the velocity but the momentum and, since $M\gg m$, even a small change in the velocity of $M$ will translate in a relatively big change in its mome...
{ "domain": "physics.stackexchange", "id": 51672, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "homework-and-exercises, newtonian-mechanics, momentum, conservation-laws, collisio...
ros Does this sound like an reasonable way to use ROS or am I "hacking" at problem by using the costmap? Comment by dornhege on 2014-01-12: Yes, looking at the costmap is the correct way as that is what move_base will do to decide if it can execute or not. Comment by goatfig on 2014-01-13: Thank you this is what I wil...
{ "domain": "robotics.stackexchange", "id": 16624, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros", "url": null }
dna, transcription This is then followed by a description of prokaryotic promotor sequences and the consensus TATA box. A striking pattern is evident when the sequences of many prokaryotic promoters are compared. Two common motifs are present on the 5′ (upstream) side of the start site. They are known as the -10 sequ...
{ "domain": "biology.stackexchange", "id": 7006, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "dna, transcription", "url": null }
kinematics, galaxies, spectroscopy Title: Rotational velocity of face-on spiral galaxies using spectroscopy I am doing my first steps in spectroscopy (IFS actually) and how we can learn more about galaxies by using it. I came up with a simple question which, unfortunately, I can not answer: How can we measure the rota...
{ "domain": "physics.stackexchange", "id": 15540, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "kinematics, galaxies, spectroscopy", "url": null }
randomness, random-number-generator A random source (ultimately derived from some physical process) provides entropy. It doesn't matter that this source is biased. All that matters is that it has some minimal level of unpredictability, i.e. there is some threshold $p \gt 0$ such that the probability of any given bit b...
{ "domain": "cs.stackexchange", "id": 10395, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "randomness, random-number-generator", "url": null }
and a few measurements of that triangle, you can use that information to find missing measurements in the triangle! For example, if the coordinates of the vertices of a right triangle are (0, 0), (15, 0) and (15, 15), the centroid is found by adding together the x coordinates, 0, 15 and 15, dividing by 3, and then perf...
{ "domain": "thinkandstart.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9817357211137666, "lm_q1q2_score": 0.84580283181265, "lm_q2_score": 0.8615382058759129, "openwebmath_perplexity": 248.66812592345596, "openwebmath_score": 0.7508877515792847, "tags...
biochemistry, smell In summary it it could said there is still more work needed on study of structure-odour chemistry to have conclusive evidence on the best theory, currently vibrational theory is evidently successful at explaining the fact that we smell functional groups even when sterically hindered, and in account...
{ "domain": "chemistry.stackexchange", "id": 8799, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "biochemistry, smell", "url": null }
python, object-oriented Title: Generate a planet from the rpg Traveller system in python I've been trying to teach myself to use object oriented code, and I thought a fun way to learn would be to write a class of planets, based on the rule system of Mongoose Traveller. When a planet object is created, it algorithmical...
{ "domain": "codereview.stackexchange", "id": 29210, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python, object-oriented", "url": null }
r Using match.fun: main <- function(a, b, fun, ...) { print(fun) fun <- match.fun(fun) fun(a = a, b = b, ...) } main(a = 1, b = 2, fun = "square") # [1] "square" # [1] "square(1, 2)" main(a = 1, b = 2, fun = `square`) function(a, b) sprintf("square(%s, %s)", a, b) # [1] "square(1, 2)" main(a = 1, b = 2, fun ...
{ "domain": "codereview.stackexchange", "id": 18534, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "r", "url": null }
java, chess // all possible moves in the down positive diagonal for (int j = offSetCol + 1, i = offSetRow + 1; j < curBoard.board.length && i <= curBoard.board.length; j++, i++) { String squareNote = String.valueOf((char) ('a' + j) + "" + (i)); Square square = curBoard.g...
{ "domain": "codereview.stackexchange", "id": 28306, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "java, chess", "url": null }
catkin-make, catkin, ros-kinetic, actionlib Edit: There are two workspaces. I'm working in workspace 2, I removed catkin_ws and now ws 2 makes fine. My new question is why did this happen to begin with? Originally posted by cwillia109 on ROS Answers with karma: 49 on 2021-06-20 Post score: 0 It's hard to debug this ...
{ "domain": "robotics.stackexchange", "id": 36553, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "catkin-make, catkin, ros-kinetic, actionlib", "url": null }
formal-languages, context-free, proof-techniques, reference-question The pumping lemma gives you a $p$ You give a word $s$ of the language of length at least $p$ The pumping lemma rewrites it like this: $s=uvxyz$ with some conditions ($|vxy|≤p$ and $|vy|≥1$) You give an integer $n≥0$ If $uv^nxy^nz$ is not in $L$, you ...
{ "domain": "cs.stackexchange", "id": 1560, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "formal-languages, context-free, proof-techniques, reference-question", "url": null }
ros-fuerte, roscore, ubuntu-precise, ubuntu Title: Exception AttributeError when starting roscore I recently installed fuerte on Ubuntu 12.04 using the ros-fuerte debs. Now when I run roscore I get the following error: Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'...
{ "domain": "robotics.stackexchange", "id": 9450, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros-fuerte, roscore, ubuntu-precise, ubuntu", "url": null }
c#, beginner, datetime DateTime birthDate; bool succeeded = DateTime.TryParse(Console.ReadLine(), out birthDate);
{ "domain": "codereview.stackexchange", "id": 6622, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c#, beginner, datetime", "url": null }
c#, asynchronous, timer I'd consider isRunning instead of isStarted, and _startSemaphore does more than coordinate starting, so I'd be inclined to give it a more general name. Everything else looks good. Func<CancellationToken, Task> Personally I would avoid using Action and Func in all but the most general public API...
{ "domain": "codereview.stackexchange", "id": 30951, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c#, asynchronous, timer", "url": null }
frequency, eeg Title: May I know how to find Time frequency power spectrogram of a signal? I am analyzing EEG signal and I am unable to understand the term Time-Frequency Power Spectrogram. Please Can anyone help me? Thank you in advance. Some signals (those stationary enough) can better explained, or described, thro...
{ "domain": "dsp.stackexchange", "id": 7232, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "frequency, eeg", "url": null }
newtonian-mechanics, gravity, kinematics, acceleration At this point in the lab, the instructor pointed out that, if the data was examined closely, the acceleration of the cart was greater while the cart was traveling upwards than when the cart was traveling downwards (approximately $0.546\frac{m}{s^2}$ and $0.486\fra...
{ "domain": "physics.stackexchange", "id": 11620, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "newtonian-mechanics, gravity, kinematics, acceleration", "url": null }
gazebo-7 Title: Getting the coordinates of a point using the mouse Hi, Is there a way to get the coordinates of a point (x and y coordinates) using the mouse on the gazebo client? Best, Originally posted by andrestoga on Gazebo Answers with karma: 20 on 2017-04-08 Post score: 0 Yes, you can get it with a GUI plugin...
{ "domain": "robotics.stackexchange", "id": 4073, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "gazebo-7", "url": null }
ros, rostime Comment by little_bob on 2017-04-27: darwin.kenyonra 127.67.113.92 2 u 5 64 1 195.455 1.015 0.000 dns1.synet.edu. 202.118.1.48 2 u 4 64 1 43.509 3.007 0.000 61-216-153-106. 211.22.103.157 3 u 4 64 1 205.772 57.655 0.000 Comment by little_bob on 2017-04-27...
{ "domain": "robotics.stackexchange", "id": 27714, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros, rostime", "url": null }
electromagnetism, magnetic-fields, stability Title: How does Earnshaw's Theorem make passive magnetic bearings impractical? I have only learned high-school physics but would like to gain insight into how Earnshaw's Theorem makes stable bearings that use magnetic levitation from permanent magnets impossible or impracti...
{ "domain": "physics.stackexchange", "id": 46887, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electromagnetism, magnetic-fields, stability", "url": null }
gt.game-theory A lower bound of $\Omega(\log N)$ (times the radius of the first circle). A matching upper bound of $O(\log N)$. Lower bound of $\Omega(\log N)$ Consider two unit circles that touch at a point $p$. (See below; $p$ is on the right, the bug starts on the left.) Alternate between one circle and the other...
{ "domain": "cstheory.stackexchange", "id": 1955, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "gt.game-theory", "url": null }
c++, performance, c++11, breadth-first-search, chess are these considered bad form now? Average time on an 8 by 8 chess board is under 2 hundreths of a second, the one test on a 12 by 12 chessboard took 0.127273 seconds. The single test on a 26 by 26 board was over 85 minutes, here are some of the output results: fini...
{ "domain": "codereview.stackexchange", "id": 19130, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, performance, c++11, breadth-first-search, chess", "url": null }
models that describe the behavior of a variable physical quantity, ( ), such as electric current, voltage, displacement, velocity, acceleration, fluid flow, heat transfer, etc. Home Heating. Solving a system of partial differential equations consist of 6 equations on 9 variables by using Mathematica 0 Solving coupled d...
{ "domain": "mantovan-knab.de", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.987568348780928, "lm_q1q2_score": 0.8186337322611165, "lm_q2_score": 0.8289388104343892, "openwebmath_perplexity": 389.25858552257097, "openwebmath_score": 0.5333122611045837, "tags...
c++, object-oriented, mvc, tic-tac-toe Variable Names: What are i and k in the following code? for (size_t i = 0, k = 8; i <= 3 && k >= 5; i++, k--) { if (boardInfo[4] == boardInfo[i] && boardInfo[i] == boardInfo[k]) { return boardInfo[4]; } }
{ "domain": "codereview.stackexchange", "id": 19441, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, object-oriented, mvc, tic-tac-toe", "url": null }
general-relativity, cosmology, universe, curvature, topology $$ ds^2 = -dt^2 + a^2(t) \left[ \frac{dr^2}{1 - kr^2} + r^2d\Omega^2 \right] $$ The value of the parameter $k$ determines whether the universe is closed, flat or open. Specifically $k > 0$ is a closed universe, $k = 0$ is a flat universe and $k < 0$ is an op...
{ "domain": "physics.stackexchange", "id": 74755, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "general-relativity, cosmology, universe, curvature, topology", "url": null }
image-processing, fourier-transform, lowpass-filter [fat32 below] Ok, for those who would benefit from a (not so intuitive) derivation, here I make a (n almost) verbatim copy of it from the same book. First, lets simply write the 2D discrete-time inverse Fourier transform to define the impulse response as: $$ h[n_1, n...
{ "domain": "dsp.stackexchange", "id": 7501, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "image-processing, fourier-transform, lowpass-filter", "url": null }
python, matplotlib # Plotting plt.style.use({"lines.linestyle": "solid", "lines.linewidth": 1}) plt.plot(x, f_x, color=PARIS_GREEN) plt.plot(x, g_x, color=BLAZE_ORANGE) # Adjust spines spines = plt.gca().spines spines["left"].set_position("zero") spines["bottom"].set_position("zero") s...
{ "domain": "codereview.stackexchange", "id": 40101, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python, matplotlib", "url": null }
UPDATE After having played quite a bit with this problem and given it some thought, I still can't prove but I'm quite convinced that the set $\mathcal O$ of 'obtainable' numbers through this procedure ought to be dense in $\mathbb Q \cap\left([0,0.5]\cup[0.75,1]\right)$. That is to say, dense in $[0,1]\setminus(0.5,0....
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9814534360303622, "lm_q1q2_score": 0.8069403536317635, "lm_q2_score": 0.8221891370573388, "openwebmath_perplexity": 310.17549741540273, "openwebmath_score": 0.8915503025054932, "ta...
c++, multithreading, c++17 So, let's just drop the const. Now, there still seems to be some confusion about std::forward. std::forward is intended to be used on so called forwarding references (reference of type T&&, where T is deduced locally), where it passes them on as the function received them (i.e. it moves rva...
{ "domain": "codereview.stackexchange", "id": 31762, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, multithreading, c++17", "url": null }
java, android private List<Cookie> convertPersistantCookiesToCookies(List<PersistantCookie> persistantCookies) { List<Cookie> cookies = new ArrayList<Cookie>(); for (Cookie cookie : persistantCookies) { cookies.add(cookie); } return cookies; } } First is error handling...
{ "domain": "codereview.stackexchange", "id": 2610, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "java, android", "url": null }
on April 30, 2011; Calc 2. Rectangular coordinates: (x,y) := (3 2) They solve the distance using Pythageros (sp?) The solve the angle like this: A = angle(x,y) (where angle is some special feature within the program that calculates the angle) Thus the answer is: Polar Distance = 3. Math Help Forum. Convert to Polar Coo...
{ "domain": "gesuitialquirinale.it", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9770226287518853, "lm_q1q2_score": 0.8055179522932492, "lm_q2_score": 0.8244619199068831, "openwebmath_perplexity": 486.69841462743466, "openwebmath_score": 0.899669408798217...
ruby, ruby-on-rails, mvc, sqlite Title: Empty product model I don't think I am using the MVC concept in Ruby on Rails properly. Model accesses db, controller works on logic and view displays information/data. But in my code, my Model code is empty. Can anyone please help in analyzing on how I can use MVC correctly? Mo...
{ "domain": "codereview.stackexchange", "id": 13063, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ruby, ruby-on-rails, mvc, sqlite", "url": null }
quantum-electrodynamics, scattering, fermions, dirac-equation And finnaly: $$z_1^*=\left[\bar{v}_{s_1^\prime}\right]\gamma_\alpha\gamma_0 \gamma_0\left[u_{s_2^\prime}\right]$$ Using that $\gamma_0^2=1$ we obtain the expression from the book: $$z_1^*=\left[\bar{v}_{s_1^\prime}\right]\gamma_\alpha\left[u_{s_2^\prime}\ri...
{ "domain": "physics.stackexchange", "id": 89017, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "quantum-electrodynamics, scattering, fermions, dirac-equation", "url": null }