text
stringlengths
1
1.11k
source
dict
ros, kinect, log4cxx, ros-fuerte, openni-camera Title: Undefined reference to log4cxx when adding openni_camera dependency to package Hi, I've been struggling with this for a few hours. I created a package depending on openni, openni_camera and openni_launch. My problem is: on compilation, i'm getting Linking CXX exe...
{ "domain": "robotics.stackexchange", "id": 13797, "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, kinect, log4cxx, ros-fuerte, openni-camera", "url": null }
java, object-oriented, calculator } Due to time constraints, I have only viewed the first two classes, here are my comments: Main.java There is no need for a private default constructor, unless you explicitly want to prevent from calling that method (e.g. in a singleton design pattern) In my eyes, the whole class is ...
{ "domain": "codereview.stackexchange", "id": 36902, "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, calculator", "url": null }
“Calculus III”. Both of these properties must be given in order to specify a vector completely. Multiplication of a nonzero vector by a nonzero scalar results in a vector that is parallel to the original. Introduction to vectors mc-TY-introvector-2009-1 A vector is a quantity that has both a magnitude (or size) and a d...
{ "domain": "cleanupthepackers.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9852713874477228, "lm_q1q2_score": 0.8008949145233167, "lm_q2_score": 0.8128673223709251, "openwebmath_perplexity": 542.805935340855, "openwebmath_score": 0.7808359265327454,...
c++, programming-challenge, c++11 the hourglass sum is 7 and we need to find the maximum sum of all hourglass in an array. My implementation: #include <vector> #include <iostream> #include <climits> using std::vector; int hourglassSum(vector<vector<int>> &arr) { int highestSum = INT_MIN; for (size_t i = 1; i...
{ "domain": "codereview.stackexchange", "id": 37129, "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++, programming-challenge, c++11", "url": null }
javascript, canvas const calcVectors = (A, B) => { const dx = B.x - A.x; const dy = B.y - A.y; const rSqr = dx * dx + dy * dy, r = rSqr ** 0.5; const nx = dx / r; const ny = dy / r; return {nx, ny, rSqr, r, axis: Math.atan2(ny, nx)}; } const eccentricAnomaly = (M, e) => { // newtons method...
{ "domain": "codereview.stackexchange", "id": 41194, "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, canvas", "url": null }
general-relativity, differential-geometry, tensor-calculus, density, covariance Title: Using $\sqrt{-g}$ in integrals of proper volume I am a little confused over integration using proper volume element. When do we use $\sqrt{-g}$ in calculations? For example, in many calculations involving stars, say when using TOV e...
{ "domain": "physics.stackexchange", "id": 30318, "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, differential-geometry, tensor-calculus, density, covariance", ...
# Find the fourier transform of $f(t)=e^{-at}$ Firstly, because I've seen many different definitions of the fourier transform with many different variations of the coefficients, my definition is $F(\omega)=\frac{1}{2\pi}\int_{-\infty}^{\infty}f(t)e^{-i\omega t}dt$ I want to find the fourier transform of $f(t)=\begin{...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9840936092211993, "lm_q1q2_score": 0.8022650783831191, "lm_q2_score": 0.8152324848629215, "openwebmath_perplexity": 191.8365956161001, "openwebmath_score": 0.9819169640541077, "tag...
quantum-mechanics, schroedinger-equation, boundary-conditions The solution that you have written is the solution to the time-independent Schrodinger Equation $$-\frac{\hbar^2}{2 M R^2}\frac{\partial^2\psi}{\partial\theta^2} = E\,\psi.$$ The solutions to this equation are $e^{im\theta}$ and $e^{-im\theta}$ where the bo...
{ "domain": "physics.stackexchange", "id": 72947, "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, boundary-conditions", "url": null }
functional-programming, optimization, erlang loopJNumber(LowerLim,UpperLim,_,Product) when LowerLim > UpperLim -> Product; loopJNumber(LowerLim,UpperLim,ILimit,Product) -> Product = ILimit * LowerLim, %% some logic here.. loopJNumber(LowerLim+1,UpperLim,ILimit,Product). start(ILimit,JLimit) -> loopINumbe...
{ "domain": "codereview.stackexchange", "id": 8716, "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": "functional-programming, optimization, erlang", "url": null }
cc.complexity-theory (0,f(\mathbf{x}),L(\mathbf{x}),\mathbf{z})$$ for each $\mathbf{x},\mathbf{z}$. Let $N$ be the circuit where $N(\mathbf{w},\mathbf{x},\mathbf{y},\mathbf{z})= (\mathbf{w},\mathbf{x},\mathbf{y},\mathbf{x}\oplus\mathbf{z})$. Then let $H=C^{-1}\circ N\circ C$. Then $$H(\mathbf{x},\mathbf{0},\mathbf{0},...
{ "domain": "cstheory.stackexchange", "id": 4269, "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": "cc.complexity-theory", "url": null }
tensorflow, pytorch, bert Title: Implementation of BERT using Tensorflow vs PyTorch BERT is an NLP model developed by Google. The original BERT model is built by the TensorFlow team, there is also a version of BERT which is built using PyTorch. What is the main difference between these two models? There are not only 2...
{ "domain": "datascience.stackexchange", "id": 7441, "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": "tensorflow, pytorch, bert", "url": null }
c++, game, matrix, dependency-injection, sfml && activePlayer->m_currentY == players[i].m_currentY) { reachablePlayers.push_back(&players[i]); } else if (activePlayer->m_currentY > 0 && activePlayer->m_currentY - 1 == players[i].m_currentY ...
{ "domain": "codereview.stackexchange", "id": 30750, "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++, game, matrix, dependency-injection, sfml", "url": null }
mathematical-physics, differential-geometry, resource-recommendations, hamiltonian-formalism Also check out Ana Canna's Da Silva's Lectures on Symplectic Geometry. It's pretty mathematical but definitely discusses applications to physics. It's available online here http://www.math.ist.utl.pt/~acannas/Books/symplectic...
{ "domain": "physics.stackexchange", "id": 15241, "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": "mathematical-physics, differential-geometry, resource-recommendations, hamiltonian...
javascript, jquery, html, css, game if (cellGuess === actualCell) { classes.push("nonogram_correct_guess"); } return classes.join(" "); }, _guessToCSSClass: function (guess) { return "nonogram_" + guess + "_cell"; } }; /* _____ _ _ _ ...
{ "domain": "codereview.stackexchange", "id": 4460, "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, html, css, game", "url": null }
c, linked-list, queue Title: Queue With Variable Size Buffer I'm working on creating a queue to hold variable sized data buffers up to 256 bytes in length, however most often the buffers will be much smaller (typically around 10-15 bytes). To avoid the wasted memory I attempted to create a queue based on a linked lis...
{ "domain": "codereview.stackexchange", "id": 29381, "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, queue", "url": null }
particle-physics, cosmology, standard-model, protons, quark-gluon-plasma Why do the quarks constantly change colors? None of these give satisfactory answers as to how exactly the quark gluon plasma prevents quarks from forming protons. I have two main possibilities: in the early universe, quarks had extremely high ki...
{ "domain": "physics.stackexchange", "id": 81998, "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": "particle-physics, cosmology, standard-model, protons, quark-gluon-plasma", "url"...
c#, parsing return tokens.OrderBy(t => t.Index).ToArray(); } private static IEnumerable<Token> TokenizeInternal(string input, bool[] occupied, TokenDefinition tokenDefinition) { foreach (Match match in tokenDefinition.Matches(input)) { if (!match.Success) contin...
{ "domain": "codereview.stackexchange", "id": 20188, "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#, parsing", "url": null }
c#, multithreading, producer-consumer Monitor.Enter(_buffer); char c = buffer[i % buffSize]; avail--; Console.WriteLine("Consumed: {0}", buffer[i % buffSize]); Monitor.Exit(_buffer);
{ "domain": "codereview.stackexchange", "id": 10587, "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, producer-consumer", "url": null }
neural-networks, machine-learning, comparison, function-approximation Title: Why are neural networks preferred to other classification functions optimized by gradient decent Consider a neural network, e.g. as presented by Nielsen here. Abstractly, we just construct some function $f: \mathbb{R}^n \to [0,1]^m$ for some ...
{ "domain": "ai.stackexchange", "id": 2275, "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-networks, machine-learning, comparison, function-approximation", "url": null }
java, file, compression if (numberOfMessages < 1) { return; } for (int i = 0; i < loopCounter / 2; i++) { Message message1 = fileMessageReader.readMessage(); Message message2 = fileMessageReader.readMessage(); compressingMessageWr...
{ "domain": "codereview.stackexchange", "id": 12270, "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, file, compression", "url": null }
algorithm, c, programming-challenge, time-limit-exceeded return counter; } int main(){ initialize_matrix(); // the rest of the logic goes here } You can also try to ask in the Mathematics SE site if there is a formula you can use. Let me know if anything's unclear.
{ "domain": "codereview.stackexchange", "id": 18033, "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": "algorithm, c, programming-challenge, time-limit-exceeded", "url": null }
group-theory, tensor-calculus, group-representations, lorentz-symmetry, invariants Title: Srednicki QFT ch34: invariants of the Lorentz group In chapter 34 of his Quantum Field theory handbook, Srednicki discusses invariants of the Lorentz group and how they appear in the decomposition in irreducible representations o...
{ "domain": "physics.stackexchange", "id": 37608, "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": "group-theory, tensor-calculus, group-representations, lorentz-symmetry, invariants...
predictive-modeling, forecast # forecast monthly order quantity at item level with the dummy variable 'Quarter' using AR(2) mape = forecast(dataset, 'M', ['ItemId'], 'Quarter', 2, output_file) elif forecast_type == 7: # forecast weekly order quantity at customer level with the dummy variable 'Month' using AR(8...
{ "domain": "datascience.stackexchange", "id": 1117, "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": "predictive-modeling, forecast", "url": null }
python, parsing, django, haml Correctness and simplicity first, speed later. You can always port the parser to C if nothing else will do. My answer to question 1 applies here too. See below. 2. Designing a parser Now, let's look at the code. I thought about making a series of comments on the various misfeatures, bu...
{ "domain": "codereview.stackexchange", "id": 2356, "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, parsing, django, haml", "url": null }
reference-request, counting-complexity, nt.number-theory, permanent, decision-trees Examples from lattices, polytopes, point counting, number theory will be appreciated. Here's a truly excellent example (I may be biased). Given a partially ordered set: a) does it have a linear extension (i.e., a total order compatib...
{ "domain": "cstheory.stackexchange", "id": 3791, "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": "reference-request, counting-complexity, nt.number-theory, permanent, decision-tree...
cv-bridge To cv::COLOR_RGB2GRAY cv_bridge isn't that big so I'd try to fix those errors (and perhaps do a pull request when you are done) Originally posted by Hansg91 with karma: 1909 on 2014-02-26 This answer was ACCEPTED on the original site Post score: 0
{ "domain": "robotics.stackexchange", "id": 17090, "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": "cv-bridge", "url": null }
machine-learning, reinforcement-learning If your starting state is special (e.g. cars all in fixed places, and no requests in progress) this could also be an issue, because the real world system will rarely be in that state but you will have many episode starts with it. If you cannot start the system in a reasonable r...
{ "domain": "ai.stackexchange", "id": 2295, "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": "machine-learning, reinforcement-learning", "url": null }
k. ) b) Use the divisibility lemma to prove that an integer is divisible by 5 if and only if its last digit. Suppose that p is an even number, then p is divisible by 2. The problem is rich in the mathematics it can involve and produce, and it is for this reason that it is something that requires further study. [3] b) G...
{ "domain": "nonsolomacaron.it", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9770226300899744, "lm_q1q2_score": 0.8323771654553151, "lm_q2_score": 0.8519528000888386, "openwebmath_perplexity": 246.13508952048485, "openwebmath_score": 0.5762020945549011, "ta...
c, arduino void loop() { buttonStateChangeDetect(); } Currently, the code works fine but I still see some flaws in my implementation: A lot of if-statements need to be added if the Arduino uses more buttons. Example:if(i==3), if (i==4), if(i==5).. The responsiveness of the buttons is dependent on the number of but...
{ "domain": "codereview.stackexchange", "id": 37990, "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, arduino", "url": null }
c++, beginner, c++17, iterator, opencv using iterator = ImageIterator<false>; using const_iterator = ImageIterator<true>; const_iterator begin() const { return const_iterator(data, 0); } const_iterator end() const { return const_iterator(data, (size_t)rows() * columns()); } iterator begi...
{ "domain": "codereview.stackexchange", "id": 41257, "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, c++17, iterator, opencv", "url": null }
quantum-field-theory, condensed-matter, research-level, gauge-theory, gauge-invariance $$ U(r,r';A) = \langle O(r)\bar{O}(r') \rangle_{A}$$ where $O$ has the right charge. Or it could be something more complicated, the details don't matter. I've explicitly noted this correlator must depend on the gauge field $A$. This...
{ "domain": "physics.stackexchange", "id": 8410, "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, condensed-matter, research-level, gauge-theory, gauge-invaria...
c#, parsing, generics, extension-methods result = (T)System.Convert.ChangeType(value, targetType); } } else { result = default; } } } Each other Deconstructors is based on the one that is taking one generic parameter less. public class Deconstructor<T1, T2, ...
{ "domain": "codereview.stackexchange", "id": 30778, "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#, parsing, generics, extension-methods", "url": null }
matlab, filters, sampling Title: Choosing right cut-off frequency for a LP filter in upsampler I'm implementing a upsample function in Matlab but it's not perfect right now,for reasons I'm not sure. Here is my code: U=5; %upsampling rate N = U*length(x); % Init x_up = zeros(1,N); % Zero-pad ind=1; for n=1:N if m...
{ "domain": "dsp.stackexchange", "id": 8286, "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, filters, sampling", "url": null }
computability, computation-models, turing-completeness, bio-inspired-computing Title: Can one consider living (biological) cell to be Turing Complete? Universal Turing Machine can be boiled down to two components. Infinite tape of input and an action table, a finite state machine that moves read/write head along the t...
{ "domain": "cs.stackexchange", "id": 21093, "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": "computability, computation-models, turing-completeness, bio-inspired-computing", "url...
gazebo Title: Accurate bumper simulation Hi! I'm trying to simulate a bumper as 'real' as possible. I would like to have the 3D model of the bumper move when it bumps into an object and then measure the position or even have a switch inside the bumper to trigger a message with the bumper information. Is this possible...
{ "domain": "robotics.stackexchange", "id": 3587, "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", "url": null }
thermodynamics, optics, energy, perpetual-motion The second law of thermodynamics in optics is equivalent to the non-decreasing of étendue, which is the volume of a system of rays representing a light field in optical phase space and thus a measure of entropy. If étendue cannot be decreased, this means that density o...
{ "domain": "physics.stackexchange", "id": 40991, "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, optics, energy, perpetual-motion", "url": null }
normal vectors of the two planes, as well as a point on the line of intersection. none of em. Pro Lite, Vedantu 3. Two or more lines that do not intersect each other are called non-intersecting lines. The analytic determination of the intersection curve of two surfaces is easy only in simple cases; for example: a) the ...
{ "domain": "resellernews.pl", "id": null, "lm_label": "1. Yes\n2. Yes\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9688561694652216, "lm_q1q2_score": 0.8347066077150777, "lm_q2_score": 0.8615382076534742, "openwebmath_perplexity": 497.78685200673294, "openwebmath_score": 0.49194785952568054, ...
java, algorithm, programming-challenge int i = 0; for (i = 0; i < n; i++) { I would prefer to use for (int i = 0; ...) and similarly for the other loop over i: they don't need to use the same variable, and keeping scopes as small as possible helps understanding and maintenance. But if you prefer to keep the v...
{ "domain": "codereview.stackexchange", "id": 33573, "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, programming-challenge", "url": null }
thermodynamics, temperature, entropy, calculus, chemical-potential $$S(U,V,N) = \log\left[\frac{1}{N! h^{3N}}\underbrace{\int d^{3N}p \int d^{3N}x}_{E(p_i,x_i)<U\text{ and }x\in V}\right]$$ Assuming that the total energy $E = \sum_{i=1}^N \frac{p^2}{2m}$, the volume integral yields a factor of $V$ while the momentum i...
{ "domain": "physics.stackexchange", "id": 66584, "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, temperature, entropy, calculus, chemical-potential", "url": null...
inorganic-chemistry, molecular-structure, halides, noble-gases $$\ce{F^-\bond{...}Xe^+-F <-> F-Xe^+\bond{...}F-}$$ Each $\ce{Xe-F}$ bond has a bond order of ½, and for each fluorine there is another with a bond angle $\angle(\ce{F-Xe-F}) \approx 180^\circ$ as part of the same 4e3c bond. Also note that this means that ...
{ "domain": "chemistry.stackexchange", "id": 6982, "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": "inorganic-chemistry, molecular-structure, halides, noble-gases", "url": null }
like that to what is bijective function input set, and each output value connected!, and each output value is connected to only one input value have just few! Not true definition: a function is invertible if and only if it crosses more than once is. Read injective, surjective and bijective and can be inverted that is b...
{ "domain": "lyaart.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9626731105140616, "lm_q1q2_score": 0.8311638749216445, "lm_q2_score": 0.8633915976709976, "openwebmath_perplexity": 565.8390496117695, "openwebmath_score": 0.8533709645271301, "tags":...
audio, signal-synthesis Here are some of the sources I've been reading and have found most helpful: http://the-all.org/tx81z/fm_overview.html http://www.soundonsound.com/sos/apr00/articles/synthsecrets.htm https://www.soundonsound.com/sos/may00/articles/synth.htm the code on the bottom looks like a triple-nested FM os...
{ "domain": "dsp.stackexchange", "id": 3895, "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": "audio, signal-synthesis", "url": null }
quantum-state, quantum-operation $$\text{min out }(\Psi) = \text{min} \{d \in \mathbb{N} : \exists \, \text{channel } \Phi : M_n \rightarrow M_d \text{ such that } \Phi \leq_{\text{iso}}\Psi \}.$$ I claim that for any given channel $\Psi : M_n \rightarrow M_m$, $$\text{min out }(\Psi) = \text{rank}\,\Psi (\mathbb{I_n}...
{ "domain": "quantumcomputing.stackexchange", "id": 2504, "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-state, quantum-operation", "url": null }
frequency-spectrum, continuous-signals, nyquist On the other hand the condition on the figure-b tells that if you want to preserve the signal only in the band of $-1000< f < 1000$ , then you can relax the aliasing condition to lower the sampling rate so that aliasing is prevented only in the band of ineterest; $-1000<...
{ "domain": "dsp.stackexchange", "id": 5846, "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-spectrum, continuous-signals, nyquist", "url": null }
organic-chemistry, acid-base, resonance Note: As pointed out by both @Mithoron and @GaurangTandon, this answer does not explain why p-toluic acid is a weaker acid than o-toluic acid or benzoic acid. The answers in this earlier question better answer this question.
{ "domain": "chemistry.stackexchange", "id": 6895, "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, acid-base, resonance", "url": null }
python, pandas, sql So I'm trying to understand why Pandas is so popular. The real first question is why are people more productive with DataFrame abstractions than pure SQL abstractions. TLDR; SQL is not geared around the (human) development and debugging process, DataFrames are. The main reason is that DataFrame abs...
{ "domain": "datascience.stackexchange", "id": 12018, "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, pandas, sql", "url": null }
python, beginner, python-3.x user_choice() user_choice is your main loop, and so it would be better described as main. Whilst fairly undescriptive on what it does you can add a docstring to add information on what it performs. It is more idiomatic to use loops in Python rather than recursion. This is partly due to th...
{ "domain": "codereview.stackexchange", "id": 37044, "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, python-3.x", "url": null }
ros Title: [HELP!]Has indigo vmware or virtual-box image file? I know ROS Hydro Medusa has a pre-installed virtual machine file with Ubuntu 12.04.1 LTS . This link said: http://wiki.ros.org/hydro/Installation Alternatively, you can use a virtual machine with Ubuntu 12.04.1 LTS and ROS Hydro Medusa pre-installed. It i...
{ "domain": "robotics.stackexchange", "id": 19609, "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 }
javascript, beginner, html, sorting It's not a good idea to use inline event handlers in modern Javascript, because they require global pollution and can have some very strange behavior. Leave the HTML markup to be the actual content of the site - keep the styling and Javascript to their own self-contained sections in...
{ "domain": "codereview.stackexchange", "id": 38174, "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, sorting", "url": null }
planet, solar-system, rotation I have been looking around, but have so far not been able to find a source for any kind of information like this. The closest I've found was https://en.wikipedia.org/wiki/Poles_of_astronomical_bodies , but that only gives me an up-vector, not a 'forward' (and is for J2000, not the curren...
{ "domain": "astronomy.stackexchange", "id": 3786, "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": "planet, solar-system, rotation", "url": null }
Find a matrix with given row and column sums Please forgive my intrusion. I've been working for days on this problem and it's vexing me. It doesn't seem to have a solution and I could really use some help. I have a "math square" (not a magic square) that looks like this when filled in $$\begin{array}{ccccc|c} 9 & 4 &...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9693241991754918, "lm_q1q2_score": 0.835109829746726, "lm_q2_score": 0.8615382040983515, "openwebmath_perplexity": 209.0588964123639, "openwebmath_score": 0.7725829482078552, "tags...
You can solve the first recurrence for powers of $2$. The recurrence (without the big O and with an arbitrary base case) reads $$T(2^k) = 2^{k-1} T(2^{k-1}) + 4^k, \quad T(2^0) = 4^0.$$ Opening the recurrence, we get $$T(2^k) = 4^k + 2^{k-1} \cdot 4^{k-1} + 2^{k-1+k-2} \cdot 4^{k-2} + \cdots + 2^{k-2+\cdots+1} 4^0.$$ D...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9688561676667173, "lm_q1q2_score": 0.8135814357214473, "lm_q2_score": 0.8397339696776499, "openwebmath_perplexity": 425.43503063327296, "openwebmath_score": 0.768772304058075, "tag...
organic-chemistry, acid-base, everyday-chemistry Title: Explanation of Lemon Juice-Invisible Ink A cute homegrown spy-trick we all know: lemon juice invisible ink. But there is no scholary article available in the internet about this phenomenon. A rough explanation I found in Scientific American: Lemon juice—and the ...
{ "domain": "chemistry.stackexchange", "id": 8570, "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, acid-base, everyday-chemistry", "url": null }
option = 5.33 X2, substitute the Mahalanobis function in R calculates the Mahalanobis distance simply...: Validate your input before running the program inverse of the Chi-square distribution matrix is sequence of numbers a. A 'correct'/standard way to calculate the pooled covariance matrix, this is using! Around the h...
{ "domain": "dobrewiadomosci.eu", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9763105287006255, "lm_q1q2_score": 0.8177771892521221, "lm_q2_score": 0.8376199633332891, "openwebmath_perplexity": 1350.5458421304695, "openwebmath_score": 0.5691320896148682, ...
homework-and-exercises, electromagnetism Title: Is the thought on this problem on LC circuits correct? I have the following problem and I want to know if my thought is correct: In one $LC$ circuit, on which $C=4,0\mu F$, the maximum potential difference across the capacitor during the oscilations is $V_m=1,25V$ and th...
{ "domain": "physics.stackexchange", "id": 8343, "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, electromagnetism", "url": null }
Graphs and Dijkstra's Algorithm Weighted Graph. g) where (V. Flow networks are weighted directed graphs where two nodes are distinguished, a source and a sink. Let's construct a weighted graph from the following adjacency matrix: As the last example we'll show how a directed weighted graph is represented with an adjace...
{ "domain": "incommunity.it", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.982287698185481, "lm_q1q2_score": 0.8185645006034283, "lm_q2_score": 0.8333245973817158, "openwebmath_perplexity": 763.2774657729245, "openwebmath_score": 0.5039048194885254, "tags": ...
taxonomy, nomenclature ... in contrast to the situation in zoology, where no authorship change is recognized within family-group, genus-group, and species-group names, thus a change from subspecies to species, or subgenus to genus, is not associated with any change in cited authorship So under the Zoological code, th...
{ "domain": "biology.stackexchange", "id": 6209, "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": "taxonomy, nomenclature", "url": null }
typescript, ramda.js Avoid default exports - see Typescript Deep Dive You are correct, Ramda can help simplify this code. pluckStateEnum is equivalent to R.prop('enum') ordersByState can have the nesting level reduced, additionally, checking if the intersection of two arrays is empty can be better represented with ...
{ "domain": "codereview.stackexchange", "id": 29747, "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": "typescript, ramda.js", "url": null }
algorithms, asymptotics, runtime-analysis, big-o-notation a) An algorithm with an execution time of type Θ(n^2). b) An algorithm with an execution time of type O(2^n). c) An algorithm with an execution time of type Θ(2^n). d) None of the above. I want to know how I can think about these problems in order to solve the...
{ "domain": "cs.stackexchange", "id": 15819, "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, asymptotics, runtime-analysis, big-o-notation", "url": null }
energy, particle-physics, wave-particle-duality Title: Is $E=h\upsilon$ applicable to an electron If we consider the wave nature of electron whose frequency is $\nu$, is the equation $E=h\nu$ applicable to electrons? The de Broglie equations relate the wavelength $\lambda$ to the momentum $p$, and frequency $\nu$ to t...
{ "domain": "physics.stackexchange", "id": 77988, "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": "energy, particle-physics, wave-particle-duality", "url": null }
java //If the first one was indeed the longest one and the only one... log.add(index); for(int i = 0; i < teams.size(); i++) { if ((teams.get(i)).length() > elementLength) { //overwrite index and elementLength if the new one is larger than the default index...
{ "domain": "codereview.stackexchange", "id": 18956, "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", "url": null }
cnn, image-classification, supervised-learning, image-recognition There are several approaches but usually, in a first step, the image is upsampled using Bicubic interpolation. Afterwards, the quality of the upsampled image is enhanced using a CNN. The second step yields additional improvements in image quality since ...
{ "domain": "datascience.stackexchange", "id": 5676, "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": "cnn, image-classification, supervised-learning, image-recognition", "url": nu...
kinematics Title: Difference between constant curvature kinematics and rigid link kinematics What is the difference between constant curvature kinematics and rigid link kinematics and what is their respective definition? Rigid link kinematics assumes that the robot is made of rigid structural elements connected by piv...
{ "domain": "robotics.stackexchange", "id": 2179, "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", "url": null }
algorithms return !(seq1 + seq2 > 2); } but I didn't get the part comparing sequence[i] with sequence[i+1] andsequence[i+2] to increment the counter which are seq1 and seq2. How does this cover all the cases? It does not cover all cases! Consider the sequence [2, 6, 4, 8, 7]. Before the return statement, the values ...
{ "domain": "cs.stackexchange", "id": 15705, "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", "url": null }
ros, slam, navigation, gui /home/morteza/fuerte_workspace/sandbox/rgbdslam_freiburg/rgbdslam/bin/rgbdslam __name:=rgbdslam __log:=/home/morteza/.ros/log/f811358e-8d3c-11e4-abdb-08edb96bfa77/rgbdslam-23.log]. log file: /home/morteza/.ros/log/f811358e-8d3c-11e4-abdb-08edb96bfa77/rgbdslam-23*.log Initiating shutdown!
{ "domain": "robotics.stackexchange", "id": 20438, "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, slam, navigation, gui", "url": null }
molecular-biology, terminology, epigenetics Now, the main issue is where to draw the line between gene regulation and epigenetics? In my opinion, the epigenetic mechanisms are one of the ways to regulate the gene expression. Although histone modifications and DNA methylation regulate gene expression and also confer he...
{ "domain": "biology.stackexchange", "id": 5933, "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": "molecular-biology, terminology, epigenetics", "url": null }
java, array, iteration Output: middle first first Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3 i1.hasNext() has to be called before i1.next(), else there will be an ArrayIndexOutOfBoundsException: -1 error. When i1.hasNext() is called twice in succession, "middle" is returned from calling i1...
{ "domain": "codereview.stackexchange", "id": 16033, "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, array, iteration", "url": null }
I used to feel uncomfortable about this also. One point is that there is no harm in allowing $\vec v$ not to be a unit vector, and it is arguably simpler to omit this requirement because it's not necessary anyway. Another point is that it is sometimes interesting and useful to think of the directional derivative $D_{\v...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9833429638959674, "lm_q1q2_score": 0.8016531279293796, "lm_q2_score": 0.8152324848629214, "openwebmath_perplexity": 276.974260410978, "openwebmath_score": 0.8498514294624329, "tags...
python, beginner, object-oriented, game, rock-paper-scissors Games have players: # The player's only responsibility is to make a selection from a given set. Whether it be computer or human. class Player: _type = '' _selection = '' def make_selection(self, arrayOfOptions): index = -1 if (se...
{ "domain": "codereview.stackexchange", "id": 1224, "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, object-oriented, game, rock-paper-scissors", "url": null }
quantum-mechanics, operators, inertial-frames, harmonic-oscillator, galilean-relativity Piece 1 is just the ground state of the stationary harmonic oscillator potential, but now evaluated at the moving position $(x-vt)$ instead of evaluated at $x$. Piece 2 has the usual energy factor $e^{-iEt}$, but the energy $E$ is ...
{ "domain": "physics.stackexchange", "id": 99824, "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, operators, inertial-frames, harmonic-oscillator, galilean-relat...
java, android, mvp, rx-java It makes little sense for a retrofit api call to be represented as an Observable. An api call either succeeds with 1 item (the response) or it errs. Rx has a great match for this: Single. There might be exceptions to this but I do not know of any. If anyone does, please let me know. I would...
{ "domain": "codereview.stackexchange", "id": 30601, "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, mvp, rx-java", "url": null }
ros, kinematics, inverse Title: Inverse Kinematics algorithm implementation Dear Friends, I am newbie to ROS and Ubuntu and a Masters Student. I am basically a windows user and have now switched to Ubuntu to learn ROS. But ROS + UBUNTU = (GREAT FUN); As my masters project I have designed an Inverse Kinematics algorit...
{ "domain": "robotics.stackexchange", "id": 13394, "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, kinematics, inverse", "url": null }
logic, first-order-logic, propositional-logic (c) $∀x(b(x)↔c(x))$ - All boys are clever & all those who are clever are boys (d) $∀x(b(x))↔∀x(c(x))$ - If all are boys, then all are clever & if all are clever then all are boys I am trying to determine all conditional $(→,↛)$ / bi-conditional $(↔)$ relations between each...
{ "domain": "cs.stackexchange", "id": 5805, "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, first-order-logic, propositional-logic", "url": null }
ros And it is still not possible to subscribe to it. I have checked the documentation both for the robot state publisher (https://index.ros.org/r/robot_state_publisher/) and for the quality of service profile (http://docs.ros2.org/latest/api/rclpy/api/qos.html) and it seems to me that I am doing it correctly. Am I mis...
{ "domain": "robotics.stackexchange", "id": 36068, "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 }
java, beginner, matrix Title: A grid and a menu walked into a program A program that creates a grid 10x10 and assigns a random number in each tile. It then asks you if you want to: create a new grid view the current one count how many of each number there are in the grid sum the rows sum the columns exit the program ...
{ "domain": "codereview.stackexchange", "id": 11717, "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, beginner, matrix", "url": null }
c++, state-machine, sfml, entity-component-system, pong virtual void DrawTransform(const b2Transform& transform) { float line_length = 0.4; Vector_2 <float> x_axis {transform.p + line_length * transform.q.GetXAxis()}; sf::Vertex red_line[] = { sf::Vertex({{transform.p.x, t...
{ "domain": "codereview.stackexchange", "id": 42092, "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++, state-machine, sfml, entity-component-system, pong", "url": null }
Wikipedia has the one I've usually seen. Cauchy-Schwarz Inequality Nothing especially tricky about it, just a really clever setup. The proof on Wikipedia is valid, and is instructive because it uses ideas which are applicable elsewhere in linear algebra. The proof I've usually seen selects vectors u,v and defines $...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9783846634557752, "lm_q1q2_score": 0.8296386499018371, "lm_q2_score": 0.8479677583778257, "openwebmath_perplexity": 548.8208095117154, "openwebmath_score": 0.9938066005706787, "tag...
Hint: the likelihood for $$T$$ is $$f_{T}(t ; N) = N(1-e^{-t})^{N-1}e^{-t}.$$ To verify this, first find the cdf of $$T$$, and then differentiate. \begin{align*} F_T(t) &= P(T \le t)\\ &= [F_{X_i}(t)]^N. \end{align*} Regarding your other question as to whether there is an MLE estimate for this: yes there is, but the l...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9748211597623861, "lm_q1q2_score": 0.8266169117903178, "lm_q2_score": 0.8479677564567912, "openwebmath_perplexity": 200.19742986726018, "openwebmath_score": 0.9652726054191589, "ta...
homework-and-exercises, statistical-mechanics, fourier-transform, statistics, stochastic-processes $$\langle \eta(\omega)\eta(\omega')\rangle = 2 \pi q \delta(\omega+\omega')$$ contrary to your notes. With this the final result is obtained step-by-step as $$ \begin{split} \langle (\delta r(t))^2\rangle &= \frac{1}{4 \...
{ "domain": "physics.stackexchange", "id": 36143, "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, statistical-mechanics, fourier-transform, statistics, stoc...
performance, windows, powershell } elseif (($ADuser.Enabled -eq $false) -and ($O365User.isLicensed -eq $true)) { Get-MsolUSer -UserPrincipalName $ADuser.UserPrincipalName Set-MsolUserLicense -UserPrincipalName $ADuser.UserPrincipalName -RemoveLicenses "company:ENTERPRISEPACK" #"$ADuser....
{ "domain": "codereview.stackexchange", "id": 22072, "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": "performance, windows, powershell", "url": null }
python, beginner else: return iter_to_inspect print("1st level: ", GetItersFromLevel(dct_test, 1)) # returns dct_test.values() so it's correct print("2nd level: ", GetItersFromLevel(dct_test, 2)) print("3rd level: ", GetItersFromLevel(dct_test, 3)) print("4th level: ", GetItersFromLevel(dct_test, 4)) ...
{ "domain": "codereview.stackexchange", "id": 42442, "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", "url": null }
rotation, rigid-body-dynamics, angular-velocity For the latter I'm assuming that a constant angular velocity $\Omega$ of the propeller produces a proportional lift force $F_{lift} = c_f \Omega$ which will constantly accelerate the propeller by $a = \frac{F_{lift}}{m} = \frac{c_f\Omega}{m}$
{ "domain": "physics.stackexchange", "id": 29975, "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": "rotation, rigid-body-dynamics, angular-velocity", "url": null }
newtonian-mechanics, angular-momentum, string, home-experiment An ideal infinitely thin rope. An infinitely thin pivot than the rope wraps around (the finger in the video). No friction. Especially the no friction assumption is clearly flawed, because the effect of stopping completely relies on friction. But as we saw...
{ "domain": "physics.stackexchange", "id": 65639, "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, angular-momentum, string, home-experiment", "url": null }
mechanical-engineering All that said, the Machinery's Handbook has information on hose threads and gives some tolerances. It's on page 1873 (at least in the 28th edition.) Depending on the material and processes, they list a minimum major diameter for the male thread as low as 1.035. This website also lists the approp...
{ "domain": "engineering.stackexchange", "id": 1063, "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": "mechanical-engineering", "url": null }
java Title: DnD-like Fight (Single Round) Let's Fight: one Entity can perform an attack (thus making him an attacker) on another Entity (defender). This follows some Rules, described within the AttackProcedure.performAttack(). The FightRules describe, what Chances one Entity has to succeed (or not) and what Damage wil...
{ "domain": "codereview.stackexchange", "id": 38379, "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", "url": null }
mathematics Discrete optimization (e.g. for factoring numbers using quantum annealing and also.) Optimal control theory (here's a review on quantum optimal control theory) Game theory (for quantum games) Boolean algebra (see this book on Boolean functions and quantum mechanics) Coding theory (e.g. Quantum Error Correc...
{ "domain": "quantumcomputing.stackexchange", "id": 285, "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": "mathematics", "url": null }
python, email, pandas, beautifulsoup, data-visualization Using this, you don't over-define actions (with your shebang function). Also, if something goes wrong, the loop is stopped with a proper error message and you can figure out what went wrong (instead of just knowing that something when wrong with absolutely no wa...
{ "domain": "codereview.stackexchange", "id": 18183, "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, email, pandas, beautifulsoup, data-visualization", "url": null }
reinforcement-learning, q-learning, terminology, value-functions, policies The maths notation for how you derive the policy from a Q table can be written: $$\pi(s) = \text{argmax}_a Q(s,a)$$ Or a bit more formally: $$\pi: \mathcal{S} \rightarrow \mathcal{A} = \text{argmax}_{a \in \mathcal{A}(s)} Q(s,a)\qquad \forall s...
{ "domain": "ai.stackexchange", "id": 2578, "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, q-learning, terminology, value-functions, policies", "url": nu...
everyday-chemistry, aqueous-solution Title: How could chlorine dioxide be stabilized in aqueous solution? There is a water-based mouthwash product which is advertised as having the ingredient "stabilized chlorine dioxide." The only other listed ingredients are trisodium phosphate and citric acid. I assume this is a bu...
{ "domain": "chemistry.stackexchange", "id": 4276, "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": "everyday-chemistry, aqueous-solution", "url": null }
The two previous paragraphs proves that $A \subseteq B \leftrightarrow A - B = \varnothing$ Last edited: May 21, 2013 11. May 21, 2013 ### reenmachine Just a random question , if $A - B = \{x \in A : x \notin B\}$ , then what is $A + B$ ??? I can't start a notation by saying "The set of all $x \in A$ such that..." ...
{ "domain": "physicsforums.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9820137868795702, "lm_q1q2_score": 0.8161939298122952, "lm_q2_score": 0.831143045767024, "openwebmath_perplexity": 292.1076274053971, "openwebmath_score": 0.943154513835907, "tags"...
fluid-dynamics, tensor-calculus, vector-fields The temperature field $T(\vec{r},t)$ is a scalar function of $x,y,z$ and $t$. The difference in temperature of the parcel between $t_1$ and $t_2$ is (to lowest order in $dt$), $$\begin{align} T(\vec{r}_2, t_2) - T(\vec{r}_1, t_1) &= T(\vec{r}_1+\vec{u}dt, t_1+dt) - T(\vec...
{ "domain": "physics.stackexchange", "id": 87884, "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, tensor-calculus, vector-fields", "url": null }
javascript, beginner } else { $('#controls_status').html($('#controls_status').html() + '<span id="' + controller + '_state"><p><a href="' + newMessage['args']['info'][controller]['url'] + '">' + controller + ...
{ "domain": "codereview.stackexchange", "id": 18239, "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", "url": null }
javascript, object-oriented, game return this; } Game.prototype.getRandomNumber = function(min,max){ // interval [) return Math.random() * (max - min) + min; } Game.prototype.getRandomShipPosition = function(shipSize){ return this.getRandomNumber(1,this.columns - shipSize + 2); } Game.prototype.init = function(...
{ "domain": "codereview.stackexchange", "id": 21552, "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, object-oriented, game", "url": null }
operating-systems, proof-techniques, scheduling, process-scheduling, real-time $J_{i,c}$ misses its deadline at $t$ tells us that any current job whose deadline is after $t$ is not given any processor time to execute before $t$ and that the total processor time required to complete $J_{i,c}$ and all the jobs with dead...
{ "domain": "cs.stackexchange", "id": 17180, "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": "operating-systems, proof-techniques, scheduling, process-scheduling, real-time", "url...
java, strings, hash-map try { Scanner sc = new Scanner(theFile); while (sc.hasNext()) { int freq = 0; String word = sc.next().replaceAll("[^A-Za-z]+", "").toLowerCase(); totalCount++; if (wordFile.contains(word)) { freq = (int) wordFile....
{ "domain": "codereview.stackexchange", "id": 30520, "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, hash-map", "url": null }
electromagnetism It seems that you find this a bit counterintuitive. Why is it that Ampère's law can tell you something about the total magnetic field around the loop, even though there are contributions to the magnetic field from currents that don't pass through the loop? The answer is that if there is any current th...
{ "domain": "physics.stackexchange", "id": 89961, "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", "url": null }
cosmology, spacetime, space-expansion, universe, curvature Title: Does the increasing rate of expansion of the universe have any implication on or alter the curvature of the universe? I'm not really knowledgeable on physics but was curious about this and couldn't find any good answers related to it. Yes. "The curvatur...
{ "domain": "physics.stackexchange", "id": 70062, "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, spacetime, space-expansion, universe, curvature", "url": null }
binary-trees, search-trees, cpu-cache Title: Depth first or breadth first ordering in binary search trees? Let's say that I make a binary search tree and store it in an array so that I end up with an array that is more cache friendly to binary search compared to a sorted array. The binary tree is full on all levels ex...
{ "domain": "cs.stackexchange", "id": 5797, "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": "binary-trees, search-trees, cpu-cache", "url": null }
organic-chemistry, acid-base I know that as a general guideline, $\ce{sp^3}$ hybridized atoms are more basic than $\ce{sp^2}$. Bases are electron pair donors; having the electrons further away from the nucleus makes donation easier. On the other hand, protonating the double bonded nitrogen enables effective resonance ...
{ "domain": "chemistry.stackexchange", "id": 6491, "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, acid-base", "url": null }
c# Title: Interrupt lengthy for loops I have this piece of code I would like some help with. I'm running a lengthy process that I want to interrupt at any time. The thing is, as you can see in the code, I have if(stop) everywhere, also in the methods inside the for (since they have for loops also). stop is a member va...
{ "domain": "codereview.stackexchange", "id": 90, "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#", "url": null }