text
stringlengths
1
1.11k
source
dict
general-relativity, lagrangian-formalism, differential-geometry, metric-tensor, tensor-calculus Title: A question regarding $f(R)$ Lagrangians Consider the class of Lagrangian known as $f(R)$ Lagrangians where the Lagrangian is some function $f(R)$, \begin{equation} S=\int\sqrt{g}d^4x\ f(R) \end{equation} assuming t...
{ "domain": "physics.stackexchange", "id": 29176, "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, lagrangian-formalism, differential-geometry, metric-tensor, te...
c++, object-oriented, design-patterns Another thing I tried to do was make the PID, Arrival Time and Burst Time variables const and public. This allowed algorithms to read their values but not modify them. However, the code wouldn't compile because const members aren't default assignable. I would like suggestions as ...
{ "domain": "codereview.stackexchange", "id": 35390, "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, design-patterns", "url": null }
Using sets and functions allows one to generalize the idea of "counting" to infinite sets. The "measuring sticks" then become transfinite numbers (more precisely, cardinal numbers). To answer your question, there is an equal number of positive and negative numbers, because there exists a bijection between these two se...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9850429098941399, "lm_q1q2_score": 0.8522828531471422, "lm_q2_score": 0.8652240877899776, "openwebmath_perplexity": 192.7089493282372, "openwebmath_score": 0.8539766073226929, "tag...
infinite-impulse-response Title: Polyphase decomposition of IIR filter Is there a way to decompose IIR filter into set of poly phase components, that are All pass. E.g. a an IIR filter of order M, can be decomposed into a cascade of All zero filter of order 2*M( which can be implemented as polyphase) and all pole of ...
{ "domain": "dsp.stackexchange", "id": 2826, "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": "infinite-impulse-response", "url": null }
• arch1 says: (chuckle) I actually tend to find them more invigorating than humiliating, partly for noble reasons but mostly I think because I can’t wait to spring them on others. Ironically the closest I’ve come to humiliation recently was last week when I, er, “judged” a high school science fair project which expla...
{ "domain": "wordpress.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9828232869627774, "lm_q1q2_score": 0.8624046110592909, "lm_q2_score": 0.8774767778695834, "openwebmath_perplexity": 1206.523883410803, "openwebmath_score": 0.7304139733314514, "tags": ...
c++, strings, parsing, regex, validation ReadFile(lines_in_file); std::string users_converted_pattern = RegexConverter(user_specified_pattern); FindMatchingLines(lines_in_file, users_converted_pattern); return 0; } void ReadFile(std::vector<string> &lines_in_file) { std::stringstream input_file; input_file...
{ "domain": "codereview.stackexchange", "id": 8600, "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++, strings, parsing, regex, validation", "url": null }
matlab, peak-detection repeticoes = [inicios finais]; end Any suggestions are welcome! You mentioned that you have tried the signal derivative to catch the declines. What problems have you faced? It seems that your problem might be addressed with different words: Let $s(t)$ be your signal, and let $u(t)=ds(t)/dt$. Y...
{ "domain": "dsp.stackexchange", "id": 4625, "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": "matlab, peak-detection", "url": null }
javascript let isStartClicked = false; startBtn.addEventListener('click', () => { const today = new Date(); let eventDay = new Date(eventDate.value); if (isValid('time')) { const splitedTime = eventTime.value.split(':'); eventDay.setHours(splitedTime[0]); eventDay.setMinutes(splitedTime[1]); } ...
{ "domain": "codereview.stackexchange", "id": 40027, "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 }
quantum-mechanics, energy, momentum, many-body Any operator on a single-particle Hilbert space, say $A:\mathcal H_k\to\mathcal H_k$ can be lifted to act on the whole of $\mathcal H$ by tensoring it with a bunch of identity operators, one for each of the other Hilbert spaces: $\tilde A=\mathbb I\otimes\cdots\otimes A\o...
{ "domain": "physics.stackexchange", "id": 86760, "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-mechanics, energy, momentum, many-body", "url": null }
ros copy and extract the new SDK file (in my case it was 'Vicon_SDK_1.3_Linux.tar') to the folder vicon_sdk; open the file 'CMakeLists.txt' and replace the line set(VICON_SDK vicon_sdk/vicon_datastream_SDK_1.2.59611_x64) with set(VICON_SDK vicon_sdk/Vicon_SDK_1.3_Linux/Linux64-boost-1.53.0/201305...
{ "domain": "robotics.stackexchange", "id": 16691, "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 }
python, performance, design-patterns auth_manager = urllib.HTTPBasicAuthHandler(password_manager) opener = urllib.build_opener(auth_manager) urllib.install_opener(opener) handler = urllib.urlopen(req) break # used this to only ge...
{ "domain": "codereview.stackexchange", "id": 19124, "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, design-patterns", "url": null }
gazebo, rosservice An example which does not show the behavior : <model:physical name="pioneer2dx_model1"> <xyz>1 1 0.145</xyz> <rpy>0.0 0.0 0.0</rpy> <include embedded="true"> <xi:include href="../models/pioneer2dx.model" /> </include> </model:physical> Any other models, that do not use the <attach>...</...
{ "domain": "robotics.stackexchange", "id": 6619, "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, rosservice", "url": null }
vba, excel Wire_Type = "Loan Closing" Call Find_Recurring(Unique_Identifier, Wire_Type) Sheet7.Visible = xlSheetVisible 'Checklist Sheet13.Visible = xlSheetVisible 'Wire Transfer Request - Brokered-Internet End Select .Range("B7")....
{ "domain": "codereview.stackexchange", "id": 37442, "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": "vba, excel", "url": null }
php, security, pdo * * If set to 'obj', will return an anonymous object with property names that correspond to the column * names returned in your result set * * If set to 'lazy', will return a combination of 'both' and 'obj', creating the object variable names * as they are accessed * ...
{ "domain": "codereview.stackexchange", "id": 882, "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": "php, security, pdo", "url": null }
quantum-mechanics, energy, hamiltonian Clearly in your proposed expression (if it is correct) $\pm m$ will have the same energy, so your energy levels are at least 2-fold degenerate, except for $m=0$. Assuming $a\ne b$, your Hamiltonian is that of a rigid rotor or rigid top, Now pick a value of $\ell$ and make a tabl...
{ "domain": "physics.stackexchange", "id": 66164, "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-mechanics, energy, hamiltonian", "url": null }
fft, downsampling Title: Downsampling - how many extra samples to include I want to downsample a finite section of an equidistant time-series $$x_i, \qquad i=0\dots n-1$$ by doing an FFT and dropping the upper part of the spectrum. Since the FFT looks at $x_i$ as a cyclic series, it will show edge effects (ringing)...
{ "domain": "dsp.stackexchange", "id": 8827, "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": "fft, downsampling", "url": null }
electrostatics, electric-current, charge, capacitance Title: What will happen if a capacitor is given a very large amount of charge within a very small period of time? When a capacitor reaches its maximum potential, and charge is still being given to it, it just leaks through. A teacher asked us to consider it simila...
{ "domain": "physics.stackexchange", "id": 68106, "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, electric-current, charge, capacitance", "url": null }
algorithms, complexity-theory, graphs, reference-request, shortest-path Title: Is single-source single-destination shortest path problem easier than its single-source all-destination counterpart? Dijkstra's algorithm (wiki) and Bellman-Ford (wiki) algorithm are two typical algorithms for the single-source shortest pat...
{ "domain": "cs.stackexchange", "id": 3611, "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": "algorithms, complexity-theory, graphs, reference-request, shortest-path", "url": null ...
will result in a non-terminating, repeating • Focuses on decimal conversions and allows for conjecture about the structure of decimal expansions of fractions . Consider The first step is always to establish an equation by seeing the decimal in question equal to x. In this topic, we'll look at how to go from a recurring...
{ "domain": "clean-igm.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9835969703688159, "lm_q1q2_score": 0.8175097776455764, "lm_q2_score": 0.8311430415844384, "openwebmath_perplexity": 1116.3885719091054, "openwebmath_score": 0.6260017156600952, "ta...
the heat equation is parabolic and the. Here's the Laplace transform of the function f (t): Check out this handy table of […]. The sum on the left often is represented by the expression ∇ 2 R, in which the symbol ∇ 2 is called the Laplacian, or the Laplace operator. F ( s) = ∫ 0 ∞ f ( t) e − t s d t. b) Find the induce...
{ "domain": "danieledivittorio.it", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9871787842245938, "lm_q1q2_score": 0.8204867835014967, "lm_q2_score": 0.8311430478583169, "openwebmath_perplexity": 631.7991365899385, "openwebmath_score": 0.8082199096679688,...
⁡ Learn how to solve a triangle using the law of sines with this step by step example. Setting these two values of h equal to each other: Next, draw altitude h from angle A instead of B, as shown below. The Law of Sines has three ratios — three angles and three sides. {\displaystyle \cos A} 1 {\displaystyle E} I like t...
{ "domain": "fanthai.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9752018376422666, "lm_q1q2_score": 0.822968054788499, "lm_q2_score": 0.8438951025545426, "openwebmath_perplexity": 684.4689505701622, "openwebmath_score": 0.7975123524665833, "tags": nul...
cosmology, universe, space-expansion, dark-energy, cosmological-constant $$ \frac{\ddot{a}}{a} = - \frac{4\pi g \rho}{3} + \frac{\Lambda c^2}{3} $$ The density $\rho \propto a^{-3}$ so for times near the Big Bang $\rho$ can be arbitrarily large and therefore: $$ \frac{4\pi g \rho}{3} \gt \frac{\Lambda c^2}{3} $$ and t...
{ "domain": "physics.stackexchange", "id": 41082, "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, universe, space-expansion, dark-energy, cosmological-constant", "url"...
php, javascript, ajax Details on the isDomAttrModifiedSupported function can be found on this post about detecting if the DomAttrModified event listener is supported. But using that approach leaves my with no solution for the WebKit browsers (Chrome, Safari). Is there a way to refactor my code so I can do my AJAX call...
{ "domain": "codereview.stackexchange", "id": 680, "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": "php, javascript, ajax", "url": null }
$$(a_1, a_2, ..., a_n)$$ with $$a_i \in \mathbb{Z}_{p_i}$$, and the group operation corresponds to vector addition. This "representation" establishes a group isomorphism. My question: how do you match this "representation" of $$G$$ with a true irreducible representation of $$G$$, which, since $$G$$ is Abelian, must b...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9817357216481429, "lm_q1q2_score": 0.8324802373194647, "lm_q2_score": 0.8479677564567913, "openwebmath_perplexity": 132.94160743934998, "openwebmath_score": 0.925105631351471, "tag...
quantum-mechanics, schroedinger-equation, hilbert-space, hamiltonian, eigenvalue The last question is even confusing. The text said the system could has many different states. But when you measure it, only one of the eigenstate will be shown and the measured value will be the corresponding eigenvalue. I don't understa...
{ "domain": "physics.stackexchange", "id": 7138, "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-mechanics, schroedinger-equation, hilbert-space, hamiltonian, eigenvalue", ...
Also, $\frac{3y}{\sin(C)} = \frac{2x}{\sin(B)} = \frac{4z}{\sin(A)} \Longrightarrow \sin(C) = \frac{3y\sin(B)}{2x} = \frac{3y\sin(A)}{4z}$ The area of $$\triangle CEF$$ is $\frac{1}{2} \cdot x \cdot [ (3z)\cdot \sin(180^\circ - C)] = \frac{1}{2} \cdot x \cdot [ (3z)\cdot \sin(C) ] = \frac{1}{2} \cdot x \cdot 3z \cdot \...
{ "domain": "hpmuseum.org", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9664104972521579, "lm_q1q2_score": 0.8252302445971783, "lm_q2_score": 0.8539127492339909, "openwebmath_perplexity": 599.9081437511267, "openwebmath_score": 0.7620023488998413, "tags...
Here is an image showing the least squares solution with the sum of squares of distances of the solution and its norm. As can be seen, the norm is $$0.5937$$ and the distance is $$1.4704$$. But clearly, there is a contour that has a lower sun of squared distance in the image, as shown here for $$(x_0, y_0) = (-0.3,0)$$...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9744347883040039, "lm_q1q2_score": 0.8517312640110423, "lm_q2_score": 0.8740772335247532, "openwebmath_perplexity": 195.72931657823568, "openwebmath_score": 0.806755781173706, "tag...
lstm, pytorch, dropout self.fc = nn.Sequential( nn.Dropout(0.1), nn.Linear(hidden_size*2, num_classes), nn.Softmax(dim=1) ) def init_hidden(self,x): return(Variable(torch.zeros(self.num_layers*2, x.size(0), self.hidden_size)).cuda(), Variable(torch.zeros(self.num_layers*2, x.size...
{ "domain": "datascience.stackexchange", "id": 2981, "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": "lstm, pytorch, dropout", "url": null }
beginner, ruby, statistics ai = ai + 1.0 ns = ns - 1 #p "ai = #{ai}" #p "ns = #{ns}" if 0 <= ns temp = qq - ai rx = xx if ns == 0 else temp = psq psq = psq + 1.0 end end return value end
{ "domain": "codereview.stackexchange", "id": 35862, "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": "beginner, ruby, statistics", "url": null }
starred version doesn't number the equations. I am attaching a screenshot of the result: How would one justify public funding for non-STEM (or unprofitable) college majors to a non college educated taxpayer? Use instead the equation - just the multline environment, you can work as usual with line breaks. TeX - LaTeX St...
{ "domain": "kineticmediaworks.com", "id": null, "lm_label": "1. Yes\n2. Yes", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.935346511643776, "lm_q1q2_score": 0.8579958343066884, "lm_q2_score": 0.9173026505426831, "openwebmath_perplexity": 1662.1740442029873, "openwebmath_score": 0.8269694447517395, ...
of a^x. F = 51-2, 22, 1-1, 12, 10, 02, 11, 32, 12, 526 (We have defined F so that each second component is used only once. 7 Modeling with Exponential and Logarithmic Functions/Logarithmic Scales Please review Section 4. These notes were written during the Fall 1997 semester to accompany Larson's College Algebra: A Gra...
{ "domain": "ratingcomuni.it", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.986777179414275, "lm_q1q2_score": 0.8327364290202919, "lm_q2_score": 0.8438951025545426, "openwebmath_perplexity": 990.6958519519495, "openwebmath_score": 0.6009328961372375, "tags":...
javascript, beginner, interview-questions, file, async.js var createUniqueListFromFile = function(cb) { var uniqueList = []; readFile( function (line, lineReader) { uniqueList = buildListSizeN(line, listSizeN); if (uniqueList.length < howMany) { ...
{ "domain": "codereview.stackexchange", "id": 22441, "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, interview-questions, file, async.js", "url": null }
python, python-3.x, io, awk Output: ('D', '0', '0', '6', '0') Column with header: from awk import Column columns = Column('testinput', header=True) for line in columns.get('A', 'C', 'E'): print(line) Output: ('2', '0', '5') ('3', '7', '0') ('2', '5', '6') ('0', '1', '8') Concept In many ways, the functionality o...
{ "domain": "codereview.stackexchange", "id": 22780, "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, python-3.x, io, awk", "url": null }
python, python-3.x, selenium break except (ElementNotInteractableException, NoSuchElementException, TimeoutException): time.sleep(1) while True: try: reboot = wait.until(EC.element_to_be_clickable(('id', "reboot"))) break ...
{ "domain": "codereview.stackexchange", "id": 44577, "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, python-3.x, selenium", "url": null }
c++, c++20 auto pop() -> T { if (empty()) throw std::logic_error{"queue is empty"}; auto result = *std::move(m_data[m_head]); m_data[m_head].reset(); // Advance the head. If it's past-the-end, wrap it around. m_head = (++m_head) % N; return result; } auto clear() noexcept -> voi...
{ "domain": "codereview.stackexchange", "id": 40026, "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++, c++20", "url": null }
deep-learning, reinforcement-learning, dqn, open-ai, deepmind Used PongFrameskip-v4 instead of PongDeterministic-v4 Used a small replay buffer of size 10000 During a step_update() or replay() call, changed the condition for a return from buffer_fill_size < learn_start to t < learn_start, where t is the current timest...
{ "domain": "ai.stackexchange", "id": 955, "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": "deep-learning, reinforcement-learning, dqn, open-ai, deepmind", "url": null }
ros, navigation, mapping, laser, bagfiles Title: simultaneous Rosbag record and playback Can I playback .bag at the same time as it is getting recorded ? Can I map my laser scans in real-time ? Originally posted by aniket on ROS Answers with karma: 7 on 2014-10-25 Post score: 0 No; you cannot play back a log file w...
{ "domain": "robotics.stackexchange", "id": 19847, "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, navigation, mapping, laser, bagfiles", "url": null }
electric-circuits, electric-current, potential, voltage, capacitance When you discharge the capacitor, conventional current will exit its positive plate and enter its negative plate. The capacitor acts as a source, or a generator. This is in line with the sign conventions adopted for consumers and generators of energy...
{ "domain": "physics.stackexchange", "id": 94530, "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": "electric-circuits, electric-current, potential, voltage, capacitance", "url": nu...
lagrangian-formalism, time, variational-principle, action, variational-calculus &\frac{d}{ds}\left(-\, \frac{\partial L}{\partial \dot{q}^j}\left( q, \, \Big(\,\frac{dt}{ds}\,\Big)^{-1}\frac{d q}{ds}, \, t \,\right)\frac{dt}{ds} \Big(\,\frac{dt}{ds}\,\Big)^{-2}\frac{d q^j}{ds} + L\left( q, \, \Big(\,\frac{dt}{ds}\,\Bi...
{ "domain": "physics.stackexchange", "id": 52869, "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": "lagrangian-formalism, time, variational-principle, action, variational-calculus", ...
observational-astronomy, distances Answer to edited final part. QSOs have a different spectrum to a bog-standard galaxy (and are much more luminous). You need a spectrum to get a redshift (certainly one to 3 significant figures). The spectrum tells you it is a QSO. The distance is estimated from the redshift and an as...
{ "domain": "astronomy.stackexchange", "id": 6075, "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": "observational-astronomy, distances", "url": null }
newtonian-mechanics, collision, projectile Title: Will a dropped ball compress faster than it decompresses? I'm modelling how a ball's compression changes over the duration of an impact. However, I'm not sure if on the physics behind the compression/decompression rate... Or would decompress at the same rate it compres...
{ "domain": "physics.stackexchange", "id": 65742, "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, collision, projectile", "url": null }
coordinate, astrometry, frame-of-reference ... the galactic-rest-frame (grf) proper motions ... which are those seen by an observer at the location of the Sun and at rest with respect to the Galactic center. This is identical to the definition of the GSR above. Another paper similarly defines the GRF. Removing the c...
{ "domain": "astronomy.stackexchange", "id": 1799, "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": "coordinate, astrometry, frame-of-reference", "url": null }
javascript, jquery, json, ajax, callback You can alter your code to something like this: $.post("/php/cv_db/ajax_log_linkedin_application.php", {application: jsonReturnObj});
{ "domain": "codereview.stackexchange", "id": 3784, "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, json, ajax, callback", "url": null }
c++, performance, c++11, design-patterns, tree But why does the handler node get a shared_ptr by value. Why did you not pass a shared pointer by reference? Why does it even get a shared pointer? The handler should not be able to modify the tree (as it may break the constraints on the tree). In my opinion the only thin...
{ "domain": "codereview.stackexchange", "id": 30044, "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, design-patterns, tree", "url": null }
# Given an arbitrary positive integer, find the nearest perfect square. Proof? Yesterday I gave my 10-year-old son the following problem: "Given an arbitrary positive integer, find the nearest perfect square." This is his solution (pseudocode): int tal = input("Enter an integer: ") float x = sqrt(tal) int a = round...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.967899295134923, "lm_q1q2_score": 0.8044627701783564, "lm_q2_score": 0.8311430478583168, "openwebmath_perplexity": 460.5546172493688, "openwebmath_score": 0.8997772336006165, "tags...
control, ros, drone, tum-simulator, ardrone Originally posted by frenchie007 on ROS Answers with karma: 3 on 2016-11-16 Post score: 0 Original comments Comment by patricia on 2017-09-11: Hi frenchie007, I'm having the same problem, my guess it has something to do with sonar sensor..have you manage to solve it? Have ...
{ "domain": "robotics.stackexchange", "id": 26263, "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": "control, ros, drone, tum-simulator, ardrone", "url": null }
java, strings, integer Instead of comparing two ever lengthening strings, this compares just the string representation of the current value. Does this matter? You choose to parse into a long value. That only matters if the number is more than ten digits. Every single nine-digit value will fit into an int. This s...
{ "domain": "codereview.stackexchange", "id": 26558, "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, strings, integer", "url": null }
operators, quantum-information, hilbert-space, quantum-computer For the first step, I understand that placing $U^\dagger U$ on the right hand side has no effect; it resolves to the identity matrix. I follow what the text is saying about considering the the right hand side as applying $U N U^\dagger$ after $U$ has been...
{ "domain": "physics.stackexchange", "id": 30521, "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": "operators, quantum-information, hilbert-space, quantum-computer", "url": null }
newtonian-mechanics, newtonian-gravity, momentum, energy-conservation This is What I did using forces: -> If the separation of the particles is d at an instant after they start to move, I know the particles will be attracted with a force $F=G\frac{mM}{d^2}$, in the direction of the other particle, along the line joini...
{ "domain": "physics.stackexchange", "id": 77684, "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, newtonian-gravity, momentum, energy-conservation", "url": n...
fluid-dynamics, simulations, numerical-method Could someone explain what is meant here? What's the Jacobian matrix and why are the eigenvalues imaginary? What's the region of stability? Consider the one-dimensional flow of quantity $q(x,t)$. The advection equation is generalized to, $$ \partial_tq+\partial_xF(q,x)=0\t...
{ "domain": "physics.stackexchange", "id": 22109, "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": "fluid-dynamics, simulations, numerical-method", "url": null }
nuclear-physics, air, order-of-magnitude, fermi-problem I have not been able to find any references explaining how he made this calculation. Please provide a reference or an example calculation. See also: http://en.wikipedia.org/wiki/Fermi_problem I describe this in my book "Guesstimation 2.0" (Princeton University Pr...
{ "domain": "physics.stackexchange", "id": 91366, "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": "nuclear-physics, air, order-of-magnitude, fermi-problem", "url": null }
dna, replication, primer Title: Does DNA replication in 5' to 3' (leading strand) need RNA primase? https://www.youtube.com/watch?v=27TxKoFU2Nw In the above video it shows that during DNA replication, the lagging strand require RNA primase to add 3' -OH group for further addition of nucleotides. However, it hasn't bee...
{ "domain": "biology.stackexchange", "id": 2924, "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, replication, primer", "url": null }
python, performance, perl scripttitle="PYTHON SIMPLE PROCESSOR (regex parsing)" Python convention is to put constants in ALL_CAPS linecount=0 commentary=0 unknownline=0 DATA={} This isn't a constant, so it really shouldn't be all caps. pattern_data=re.compile(r"^(\d+)\s+(\S+)\s+(\S+)\s+(\d+(?:\.\d+)?)") print("#",s...
{ "domain": "codereview.stackexchange", "id": 1522, "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, perl", "url": null }
nuclear-physics, mass-energy, antimatter, fusion Title: Is fission/fusion to iron the most efficient way to convert mass to energy? Is fission/fusion of any element to iron-56 (or nickel-62?) the best way to convert mass to energy, that doesn't involve black holes? In other words, will we be always limited to convert ...
{ "domain": "physics.stackexchange", "id": 58887, "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": "nuclear-physics, mass-energy, antimatter, fusion", "url": null }
ros-kinetic std_msgs/Header header uint32 seq ...
{ "domain": "robotics.stackexchange", "id": 36106, "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-kinetic", "url": null }
quantum-field-theory, hilbert-space, renormalization, unitarity, regularization renormalize away can in some formulations (causal perturbation theory, also sometimes called Epstein-Glaser renormalization) be directly related to a choice of how to define the point-wise product of such distributions.
{ "domain": "physics.stackexchange", "id": 90036, "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-field-theory, hilbert-space, renormalization, unitarity, regularization", ...
c, linked-list //void reverse_sll() { // Node* prev = NULL, *cur = head, *next; // while (cur) { // next = cur->next; // cur->next = prev; // prev = cur; // cur = next; // } // head = prev; // Node* temp = head; // head = prev; // prev = temp; //} void clear_sll() { //...
{ "domain": "codereview.stackexchange", "id": 44388, "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 }
quantum-mechanics, general-relativity, special-relativity, cosmology Is there some aspect of his reasoning that I have misunderstood? If so please let me know. In Penrose’s construction, the m is the invariant mass… and thus the frequency obtained is invariant (independent of frame). For a photon, the invariant mass i...
{ "domain": "physics.stackexchange", "id": 80527, "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-mechanics, general-relativity, special-relativity, cosmology", "url": nu...
ros Originally posted by tonybaltovski with karma: 2549 on 2013-06-13 This answer was ACCEPTED on the original site Post score: 4 Original comments Comment by Gazer on 2013-06-13: thank you verymuch. I am actually using view_frames Comment by Gazer on 2013-06-13: and do you know where is the generated pdf? Comment by...
{ "domain": "robotics.stackexchange", "id": 14552, "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 }
c#, json, generics, reflection return json.ToString(); } Is there something that I'm missing out on, or is my code not optimal/pretty? Nice try, however there are potential optimization and code quality improvements. First obvious thing is handling of the trailing comma. If you try to generalize your code for the oth...
{ "domain": "codereview.stackexchange", "id": 13826, "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#, json, generics, reflection", "url": null }
protein-structure, pdb Title: Can foldx position-scan produce different result with different lists of mutations? I am running foldx position scan for GFPmut2 (PDB: 6GO9) and I use a config file with the following template: command=PositionScan pdb=6GO9.pdb pdb-dir= <pdb location> output-dir= <output directory> output...
{ "domain": "bioinformatics.stackexchange", "id": 1176, "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": "protein-structure, pdb", "url": null }
c++, strings If you don't feel like reading through it, the long and short is I have a large data set (850k records) in an Access table that needs to be updated. In my company, we receive new data from a partner in a .xlsx file and need to update said Access database from this file. The unfortunate part is the file se...
{ "domain": "codereview.stackexchange", "id": 36507, "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++, strings", "url": null }
optics, adaptive-optics Use openCV or your favorite utility to get images into your computer and a) subtract background b) make sure the camera does not saturate (adjust exposure time, retake the dark background and try again) c) calculate the peak intensity of each spot and which pixel coordinates that is in d) Draw ...
{ "domain": "astronomy.stackexchange", "id": 5464, "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": "optics, adaptive-optics", "url": null }
classical-mechanics, physical-chemistry, molecules, degrees-of-freedom Title: Why do molecules have $3N-5$ or $3N-6$ degrees of freedom? In linear molecule, it has $3N-5$ degree of freedom in vibration mode and $3N-6$ in non-linear molecule.
{ "domain": "physics.stackexchange", "id": 31833, "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": "classical-mechanics, physical-chemistry, molecules, degrees-of-freedom", "url": ...
c++, image, template, classes, c++20 return recursive_transform<unwrap_level - 1>(execution_policy, f, element); }); return output; } else { return std::invoke(f, input); } } }
{ "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 }
ros, roslib What am I doing wrong? Originally posted by Anton Belev on ROS Answers with karma: 15 on 2015-01-14 Post score: 0 This looks like a rosbuild package. It looks like it's expecting to be placed in a folder named organizer but instead you've placed it in a folder named organizer-baxter-master. You may want ...
{ "domain": "robotics.stackexchange", "id": 20571, "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, roslib", "url": null }
ros2, rasbperrypi Title: Which SBC for ROS2? Hello, I try to use ROS2 Foxy on my Raspberry pi 3 with Ubuntu 20.04 Server but it seems to be difficult to run something.. So I'm thinking to buy another SBC. Which SBC do you recommend for ROS2 ? Thanks Originally posted by Vaneltin on ROS Answers with karma: 7 on 2021...
{ "domain": "robotics.stackexchange", "id": 36337, "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": "ros2, rasbperrypi", "url": null }
javascript, performance, sqlite _db.utilityMethods.logErrors(error); deferred.reject(new Error(error)); }); } else { tx.executeSql(selectStatement, [], function(tx, result) { ...
{ "domain": "codereview.stackexchange", "id": 21371, "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, performance, sqlite", "url": null }
ros, moveit, ros-kinetic, action-server Well, I tried to include the joint_trajector action server it like this: <!-- Load joint controller configurations from YAML file to parameter server --> <rosparam file="$(find kuka_eki_hw_interface)/config/hardware_controllers.yaml" command="load"/> <!-- Load standard kuka co...
{ "domain": "robotics.stackexchange", "id": 34796, "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, moveit, ros-kinetic, action-server", "url": null }
beginner, c, vigenere-cipher We've finally found the place where that global i is used. You should declare variables right when you need them. I'm pretty sure you're missing a } at the end of this for loop. Here, you're copying the key into an array of ints. There is a bit of duplicate work here. If you know that a c...
{ "domain": "codereview.stackexchange", "id": 31887, "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": "beginner, c, vigenere-cipher", "url": null }
electromagnetism, energy, waves, frequency The reason this is important is that if you have a biological tissue that's absorbing, say, one UV photon's worth of energy spread over a bunch of infrared photons, then the energy absorbed by each individual molecule can be quite small. However, if the light is in the UV, th...
{ "domain": "physics.stackexchange", "id": 51348, "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, energy, waves, frequency", "url": null }
sampling, nyquist, square You can reason this out yourself, in the time domain. Consider a square wave with values -1 and 1; and sample it at exactly five times its period. You'll get something like {+1, +1, -1, -1, -1, +1, +1 ...}. If you just have to think about this in the frequency domain, you can, after a great...
{ "domain": "dsp.stackexchange", "id": 8216, "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": "sampling, nyquist, square", "url": null }
reinforcement-learning, probability, probability-distribution, expectation, statistics Title: How does $\mathbb{E}$ suddenly change to $\mathbb{E}_{\pi'}$ in this equation? In Sutton-Barto's book on page 63 (81 of the pdf): $$\mathbb{E}[R_{t+1} + \gamma v_\pi(S_{t+1}) \mid S_t=s,A_t=\pi'(s)] = \mathbb{E}_{\pi'}[R_{t+1...
{ "domain": "ai.stackexchange", "id": 2050, "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, probability, probability-distribution, expectation, statistics",...
cosmology, neutrinos, dark-energy As for expansion/acceleration: There is a steady source of additional neutrinos from fusion in stars. Is there a reason to exclude neutrinos to contribute to DE? Dark energy has a characteristic equation of state relating the density to the pressure. Typically in cosmology we assume t...
{ "domain": "physics.stackexchange", "id": 92286, "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, neutrinos, dark-energy", "url": null }
special-relativity, reference-frames, relativity Does this mean that if we treat light as a frame relative to some other frame with coordinates xx, then the frame of light will always have coordinates at infinity? has no answer.
{ "domain": "physics.stackexchange", "id": 35918, "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, reference-frames, relativity", "url": null }
java, algorithm, strings, array Bonus point: Do it now but without the words being splitted. (This one I did not manage to do it). Thank you!!! Overall, your code does the job correctly, and does it in a way that is not unnecessarily complicated. Good job. The rest of my comments are just how you can make the code a l...
{ "domain": "codereview.stackexchange", "id": 41890, "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, algorithm, strings, array", "url": null }
fourier-transform, python, power-spectral-density, background-subtraction This contains a background, which makes the signal's base-surface locally convex-concave. I would like to identify and subtract the background such that the bottom of the signal becomes approximately planar and further processing can be done. My...
{ "domain": "dsp.stackexchange", "id": 8353, "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": "fourier-transform, python, power-spectral-density, background-subtraction", "url": nu...
python, game, adventure-game if bar_keep=="rumore": if int(person.lvl) < 20: print("I don't know anything.") else: print("No, rumors at the moment.")
{ "domain": "codereview.stackexchange", "id": 10889, "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, game, adventure-game", "url": null }
# An integral identity evaluating the gamma function While reading a number theory paper I encountered the identity $$\int_{- \infty}^{\infty} (1 + x^2)^{ - \frac{z}{2} - 1} dx = \sqrt{\pi} \frac{ \Gamma(\frac{z + 1}{2}) }{\Gamma(\frac{z}{2} + 1)},$$ apparently true for all $z \in \bf{C}$ for which the integral on t...
{ "domain": "mathoverflow.net", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9719924793940119, "lm_q1q2_score": 0.831880883693519, "lm_q2_score": 0.8558511524823263, "openwebmath_perplexity": 371.5504180404282, "openwebmath_score": 0.8876601457595825, "tags"...
python, opencv, scipy, video # Read Source Data cap = cv2.VideoCapture('/home/stephen/Desktop/ss5_id_412.MP4') fourcc = cv2.VideoWriter_fourcc(*'XVID') out = cv2.VideoWriter('/home/stephen/Desktop/parabola.avi', fourcc, 120.0, (480,848)) frameNum = 0 ### This is the second loop through the video ### In this loop the s...
{ "domain": "codereview.stackexchange", "id": 41805, "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, opencv, scipy, video", "url": null }
clojure ; Then pick the trailer (if-first-three-lines (str "Because I was not a " (classes i) ".\n") ""))))) I generally like how it turned out, but I have a problem with it: the redundancy of the use of the if-first-three-lines function. I've racked my brain to think of a way to simplify ...
{ "domain": "codereview.stackexchange", "id": 27133, "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": "clojure", "url": null }
electromagnetic-radiation, thermal-radiation, neutron-stars Neutron stars are optically thick, and photons are made in a very small layer (a few inches, on top of star 10km radius) called the neutron star atmosphere. The composition of NS atmospheres is not always known, it may depend on the history of the NS (accreti...
{ "domain": "physics.stackexchange", "id": 49339, "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, thermal-radiation, neutron-stars", "url": null }
unit-testing, react.js, dom, jsx, state Use .toHaveTextContent() rather than .innerHTML Instead of h2.innerHTML, you can use expect(h2).toHaveTextContent() brought to you by jest-dom. See Common mistakes with React Testing Library: Using the wrong assertion. In general, the philosophy of RTL is not to be dipping into ...
{ "domain": "codereview.stackexchange", "id": 43506, "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": "unit-testing, react.js, dom, jsx, state", "url": null }
c++, recursion, template, c++20, constrained-templates Title: A recursive_reduce_string Template Function Implementation in C++ This is a follow-up question for A recursive_sum Template Function Implementation with Unwrap Level in C++, A recursive_reduce_all Template Function Implementation in C++, A recursive_reduce ...
{ "domain": "codereview.stackexchange", "id": 45095, "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++, recursion, template, c++20, constrained-templates", "url": null }
general-relativity, black-holes, spacetime, event-horizon, faster-than-light Title: If spacetime can expand faster than the speed of light, then can a black hole do that too? I have read this question: Yes, the expansion of space itself is allowed to exceed the speed-of-light limit because the speed-of-light limit on...
{ "domain": "physics.stackexchange", "id": 99329, "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, black-holes, spacetime, event-horizon, faster-than-light", "...
logic, lambda-calculus, first-order-logic data Term = Belong Var Var | Bot | Imply Term Term | Forall Var Term equalVar :: [(Var,Var)] -> Var -> Var -> Bool equalVar [] x y = (x == y) equalVar ((x,y):bound) z w = (x == z && y == w) || (x /= z && y /= w && equalVar bound z w) equal' :: [...
{ "domain": "cs.stackexchange", "id": 9150, "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": "logic, lambda-calculus, first-order-logic", "url": null }
acid-base, molecules, protons If you wanted to perform the experiment however, this could be done in a fairly straight-forward way with a low energy proton accelerator and its associated machine shop, instrument builders, and graduate students. Proton beams from a Tandem or other MeV range accelerator can be focused t...
{ "domain": "chemistry.stackexchange", "id": 8008, "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": "acid-base, molecules, protons", "url": null }
homework-and-exercises, newtonian-mechanics, acceleration, velocity, distance As the object decelerates to $0$, it still has $40$ meters left to travel. What is the correct formula then? The formula $$ a = \frac{ v_{\rm final}^2 - v_{\rm initial}^2}{2\,\text{(distance)}} $$ is correct. The problem you have is that for...
{ "domain": "physics.stackexchange", "id": 65390, "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, acceleration, velocity, distance", ...
java, console Title: Using Bukkit conversations for a coding console I have a class that serves to carry data between my JavaScript evaluation class and the player, via the Bukkit Conversations API, available in full on GitHub (you will need Bukkit and Rhino as libraries (you can just comment out the JNBT code, it's n...
{ "domain": "codereview.stackexchange", "id": 6218, "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, console", "url": null }
c++, console, snake-game, curses class Game { private: GameUI *m_ui; Field *m_field; Player *m_player; void tick(); void update(); public: Game(GameUI *p_ui); ~Game(); void start(); }; game.cpp #include <chrono> #include <unistd.h> #include "g...
{ "domain": "codereview.stackexchange", "id": 33832, "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++, console, snake-game, curses", "url": null }
symmetry, gauge-theory, symmetry-breaking Another way to describe the situation, from a less gravitational perspective, is given by Maldacena in this amusing essay: http://arxiv.org/abs/1410.6753.
{ "domain": "physics.stackexchange", "id": 25746, "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": "symmetry, gauge-theory, symmetry-breaking", "url": null }
homework-and-exercises, newtonian-mechanics, forces, electrostatics, free-body-diagram Title: Electricity problem • Two small metallic spheres, each of mass 5 g, are suspended as pendulums by light strings from a common point as shown in Figure. The spheres are given the same electric charge, and it is found that th...
{ "domain": "physics.stackexchange", "id": 28487, "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, forces, electrostatics, free-body-dia...
will be. Generally speaking, Least-Squares Method has two categories, linear and non-linear. We need this cost function because we want to minimize it. The fact that the rm wants produce y units of output is given by the constrain f(x 1;x 2) = y: Remember that the production function, f(x 1;x 2) corresponds to the maxi...
{ "domain": "foresteria-lacura.it", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9902915249511565, "lm_q1q2_score": 0.8002221063062406, "lm_q2_score": 0.8080672066194946, "openwebmath_perplexity": 933.8220002034989, "openwebmath_score": 0.5395734310150146,...
measurement-problem, wavefunction-collapse, quantum-measurements And hence my question: I interpreted the last statement to mean that when the measuring apparatus is really precise, it perturbs the original system very heavily, and thus causes what we would call more of a spike, leading to a very low spread in the wav...
{ "domain": "physics.stackexchange", "id": 80441, "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": "measurement-problem, wavefunction-collapse, quantum-measurements", "url": null }
bell-experiment, non-locality Then Alice and Bob win if $xy = a + b \mod 2$. For example if Alice chooses to measure in her basis $x=0$ and Bob chooses to measure in his basis $y=1$ then they will win if their outcomes are the same, i.e. if $a=b=0$ or $a=b=1$. Conversely, they will lose if $a\neq b \mod 2$. Note that ...
{ "domain": "quantumcomputing.stackexchange", "id": 1942, "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": "bell-experiment, non-locality", "url": null }
python, python-3.x, integer, number-systems The number The base the number you just inputted is in The base you'd like your output to be in import sys def convertToBase10(n, base): number = [] negative = False # If n is a negative number (it's a string at this moment of the code).. # then replace th...
{ "domain": "codereview.stackexchange", "id": 11791, "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, python-3.x, integer, number-systems", "url": null }
then f has an absolute maximum value and an absolute minimum value on [a,b]. You cannot have a closed bound of ±∞ because ∞ is never a value that can actually be reached. There are a couple of key points to note about the statement of this theorem. From MathWorld--A The extreme value theorem was originally proven by Be...
{ "domain": "waqsp.org", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9863631647185701, "lm_q1q2_score": 0.8344064653798489, "lm_q2_score": 0.8459424431344437, "openwebmath_perplexity": 259.6843062088817, "openwebmath_score": 0.8095170855522156, "tags": ...
dft, self-study The center-of-mass, aka centroid, interpretation sees the DFT as a weighted average calculation, where a set of Roots of Unity are being averaged and the weighting is the signal. It is a strong argument for a 1/N normalization factor. Spectral leakage is also very well understood in this model, check...
{ "domain": "dsp.stackexchange", "id": 8146, "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": "dft, self-study", "url": null }
statistical-mechanics, hamiltonian-formalism $$ E(X)=\int dX\,\rho(X)\,X $$ where $X$ refers to the value for the single particle. Notice that the above does not have to hold true in general and is just a characterisation of some simple systems (ideal gas, for example, or particles in a box with well-behaving potentia...
{ "domain": "physics.stackexchange", "id": 23137, "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": "statistical-mechanics, hamiltonian-formalism", "url": null }
c#, entity-framework, winforms, databinding // navigate to name selected in ListBox private void lstResults_SelectedIndexChanged(object sender, EventArgs e) { List<student> students = new List<student>(); foreach (student s in bsStudents) { if (s.FullName == lstResults.Text...
{ "domain": "codereview.stackexchange", "id": 37026, "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#, entity-framework, winforms, databinding", "url": null }