text
stringlengths
1
1.11k
source
dict
python, optimization, numpy, statistics Lots and lots of formulas. Suggests that you can perhaps break some of it into functions to greater explicate the high level logic. # Update posterior parameters of Normal-Wishart distribution. # Then draw the new parameters pos_mu and pos_sigma f...
{ "domain": "codereview.stackexchange", "id": 4116, "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, optimization, numpy, statistics", "url": null }
ros, ros-melodic Title: Generating 3D map from Lidar data I have a rosbag file of Velodyne 64. My question is that how I can generate a 3D map from that rosbag file? Originally posted by AM97 on ROS Answers with karma: 139 on 2019-06-14 Post score: 0 Original comments Comment by PeteBlackerThe3rd on 2019-06-14: Wha...
{ "domain": "robotics.stackexchange", "id": 33183, "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, ros-melodic", "url": null }
ros, camera1394, ros-fuerte, stereo, bumblebee2 left_cam_info_.D.resize(5); right_cam_info_.D.resize(5); memcpy(&left_cam_info_.D[0], &left_D_data[0], sizeof(left_D_data)); memcpy(&left_cam_info_.K[0], &left_K_data[0], sizeof(left_K_data)); memcpy(&left_cam_info_.R[0], &left_R_data[0], sizeof(l...
{ "domain": "robotics.stackexchange", "id": 12746, "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, camera1394, ros-fuerte, stereo, bumblebee2", "url": null }
homework-and-exercises, newtonian-mechanics, forces Now my confusion is for (b). Now as far as I know, impulse can be calculated in 2 ways- (i) Change in momentum (ii) integral of force over time interval I don't know how to find change in momentum directly neither integral for a particular time instant. Tl;dr How to ...
{ "domain": "physics.stackexchange", "id": 72522, "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", "url": null }
sampling, speech-recognition Therefore, "It depends on the data". But, if we assume that the recordings are not problematic and a lower $Fs$ does indeed contain the frequency band of interest, then what might be worth considering more is the size of the transforms that are involved in the derivation of the MFCC that y...
{ "domain": "dsp.stackexchange", "id": 6082, "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, speech-recognition", "url": null }
c++, multithreading, thread-safety, concurrency, c++20 void push(T&& value) { { std::lock_guard lock(mutex_); data_.push(std::forward<T>(value)); } condition_variable_.notify_all();` }
{ "domain": "codereview.stackexchange", "id": 42417, "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, thread-safety, concurrency, c++20", "url": null }
botany Imagine that SOB hanging onto your upper arms for support (not the guy, the grapevine). Smaller vines (which can also be destructive) that climb up the sides of trees are Oriental Bittersweet, Poison Ivy, Virginia Creeper, etc. (Probably Kudzu as well, but we don't have that here yet.) But these aren't likely t...
{ "domain": "biology.stackexchange", "id": 4882, "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": "botany", "url": null }
special-relativity, spacetime, inertial-frames, observers, thought-experiment \end{array} \right. \end{equation} $ WolframAlpha gives me the following solution: $t_{B'} \approx 1.87$, $\beta' \approx 0.54$, $t_{A'} \approx 0.71$, and $\alpha' \approx 1.56$ Is there some other equation that I would need to properly cal...
{ "domain": "physics.stackexchange", "id": 99289, "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, spacetime, inertial-frames, observers, thought-experiment", ...
c#, game, mvc, winforms, chess class PromotionEventArgs : EventArgs { public PromotionEventArgs(PieceColour colour, Coords coords) { PromotingCoords = coords; PromotingColour = colour; } public Coords PromotingCoords { get; set; } public PieceColour P...
{ "domain": "codereview.stackexchange", "id": 44851, "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, mvc, winforms, chess", "url": null }
filter-design, finite-impulse-response This result seems to confirm my suspicion that in degenerate cases it is numerically more stable to directly solve the overdetermined system $(2.8)$ instead of the square system $(2.9)$. Luckily, in most practical cases I've encountered, with specs that are chosen carefully to ma...
{ "domain": "dsp.stackexchange", "id": 11452, "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": "filter-design, finite-impulse-response", "url": null }
human-biology, neuroscience, brain, vision, human-eye never reach normal values. Specifically, they continue to suffer from poor visual acuity - the gold standard to assess visual function. Nonetheless, some higher-order aspects of vision do seem to be improving. Within a week to a few months after surgery, the childr...
{ "domain": "biology.stackexchange", "id": 5983, "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": "human-biology, neuroscience, brain, vision, human-eye", "url": null }
# Equality constraints A_eq_ex2_dual = np.array([[1, -1.06, 0, 1, 0, 0, 0], [0, 1, -1.06, 0, 1, 0, 0], [0, 0, 1, 0, 0, 1, 0]]) b_eq_ex2_dual = np.array([0, 0, 1.06]) # Inequality constraints A_ub_ex2_dual = - np.array([[1, 1, 1, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 1]]) b_ub_ex2_dual = - np.arra...
{ "domain": "quantecon.org", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9901401470240553, "lm_q1q2_score": 0.8048525655947445, "lm_q2_score": 0.8128673178375735, "openwebmath_perplexity": 936.0125792507591, "openwebmath_score": 0.998445451259613, "tags": n...
qiskit, random-quantum-circuit For the full matrix form of this gate, see the underlying gate documentation. Args: qubit: The qubit(s) to apply the gate to. label: The string label of the gate in the circuit. and maybe that is the reason for error that gate can't be visualized as sugg...
{ "domain": "quantumcomputing.stackexchange", "id": 3776, "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": "qiskit, random-quantum-circuit", "url": null }
newtonian-mechanics, classical-mechanics, centrifugal-force In either case, the fictious force has the same value, but the actual type of fictitious force between the two cases is different, because of the different motions of the non-inertial frames.
{ "domain": "physics.stackexchange", "id": 88973, "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, classical-mechanics, centrifugal-force", "url": null }
reinforcement-learning, ai-design, multi-agent-systems because the env can execute both in parallel, wait till they are done, and then return the next states and rewards. But in the scenario that I described previously, it is not clear how to implement this (at least to me). Here, we need to explicitly track time, a c...
{ "domain": "ai.stackexchange", "id": 1407, "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, ai-design, multi-agent-systems", "url": null }
ros-kinetic, turtlebot3, quaternion Title: why the robot position coordinate change a lot when doing rotation? Dear all, Sorry forget my silly question, here I follow some tutorial code to write a test code to control TB3 burger to move a triangle shape. Below are part of code that to obtain the current position and ...
{ "domain": "robotics.stackexchange", "id": 32989, "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, turtlebot3, quaternion", "url": null }
quantum-mechanics, standard-model, higgs One does not necessarily need a measurement to make SSB make sense, but one does need decoherence. A superposition over the degenerate states of a system in SSB is necessarily a macroscopic superposition, and as a result we can expect that it will decohere along the relevant ba...
{ "domain": "physics.stackexchange", "id": 26101, "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, standard-model, higgs", "url": null }
quantum-chemistry, computational-chemistry, theoretical-chemistry, reference-request Title: Where can I get potential energy surface for simple molecules? I'm looking for potential energy functions for simple molecules, such as water or hydrogen sulfide. I only need the region around the equilibrium geometry, preferab...
{ "domain": "chemistry.stackexchange", "id": 10471, "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-chemistry, computational-chemistry, theoretical-chemistry, reference-req...
c, interview-questions return 1; } int main() { char s1[] = "aaabbbccc"; char s2[] = "aabbaccbc"; printf("%d\n", are_anagrams(s1, s2)); return 0; } Any suggestion or advice is welcome, thanks for your time. Avoid magic numbers, especially if they, like 26 in your code, are used repeatedly. Along the...
{ "domain": "codereview.stackexchange", "id": 35030, "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, interview-questions", "url": null }
???(3^2)^3?? If a is any real number (rational or irrational), then d dx g(x)a = ag(x)a 1 g ′(x) derivative of g(x)a = (the simple power rule) (derivative of the function inside) Example : d dx {g(x) 1:7} = 1:7g(x) 2:7 g′(x) d dx {g(x) p 3} = p 3g(x) p 3 1 g′(x) Note. Section 2.7: Extended Power and Natural Exponential...
{ "domain": "rpics.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9658995733060718, "lm_q1q2_score": 0.8090567730068117, "lm_q2_score": 0.8376199714402812, "openwebmath_perplexity": 1401.4262520202064, "openwebmath_score": 0.6466473340988159, "tags": nul...
fluid-dynamics, pressure, flow, bernoulli-equation The change in pressure would be $$P_2-P_1=\frac{1}{2}\rho v_1^2$$ and the "suction force" would be $$F=\Delta P*A=\frac{1}{2}\rho v_1^2*A$$ where $A$ is the area of the open window? PS: I know doors or windows can't be opened mid air. I just want to know if my underst...
{ "domain": "physics.stackexchange", "id": 85359, "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, pressure, flow, bernoulli-equation", "url": null }
javascript, sync Title: Realtime collaborative editor: a CodeMirror extension for MobWrite I wrote up the following script for the realtime synchronization service, MobWrite, to be used with the browser-based editor, CodeMirror: // Based on MobWrite's code for TextBoxes /*Instructions for use: Set an 'id' property for...
{ "domain": "codereview.stackexchange", "id": 5952, "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, sync", "url": null }
java, beginner, role-playing-game Consider setCurHp(). What does it do? It sets the current Hp. That's nice, but what is your code actually doing? Your code is raising the current HP, subject to a maximum. Why don't you write a method that raises the current HP, subject to a maximum of maxHp? It might be called public...
{ "domain": "codereview.stackexchange", "id": 28238, "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, role-playing-game", "url": null }
c++, algorithm, sorting, c++14, benchmarking // Results for std::sort std::array<std::chrono::milliseconds, sizeof...(Ind)> second = { std::get<Ind>(results)[1u]... }; return { first, second }; } int main() { using indices = std::make_index_sequence<64u>; auto sorts_times = time_them<int>...
{ "domain": "codereview.stackexchange", "id": 15080, "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++, algorithm, sorting, c++14, benchmarking", "url": null }
general-relativity, metric-tensor, coordinate-systems, terminology, notation Motivated by the coordinate expression on the right and classical terminology, in Physics, we refer to $Q_g$ as the infinitesimal squared distance, or also as the line element (associated to $g$), and in SR/GR also the (infinitesimal) spaceti...
{ "domain": "physics.stackexchange", "id": 88649, "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, metric-tensor, coordinate-systems, terminology, notation", "...
c#, meta-programming, rubberduck return; } if (TargetIsReferencedFromMultipleMethods(target)) { var message = string.Format(RubberduckUI.MoveCloserToUsage_TargetIsUsedInMultipleMethods, target.IdentifierName); _messageBox.Show(message, RubberduckUI.MoveCloserToUsage_Cap...
{ "domain": "codereview.stackexchange", "id": 17579, "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#, meta-programming, rubberduck", "url": null }
thermodynamics Title: Why doesn't oxyhydrogen flame travel through a narrow pipe? In this video someone filled a syringe with oxyhydrogen (2:1 hydrogen-oxygen mixture obtained with a "brown gas generator", an efficient electrolyzer). The mixture at the tip of the needle was lit and is burning, which is understandable...
{ "domain": "physics.stackexchange", "id": 49771, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "thermodynamics", "url": null }
## Solution None of the Scheme implementations I checked have a runtime primitive, but many have similar functionality. Mzscheme and Chicken provide current-milliseconds, which returns the number of milliseconds that have passed since a particular event (e.g., since starting the Scheme process). The code provided here...
{ "domain": "drewhess.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9425067179697694, "lm_q1q2_score": 0.8048185114729961, "lm_q2_score": 0.8539127585282744, "openwebmath_perplexity": 3147.018314901285, "openwebmath_score": 0.5616828799247742, "tags": n...
$\displaystyle = \frac{1}{18}x(2x + 5)^9 - \frac{1}{360}(2x + 5)^{10} + C$. • October 21st 2010, 08:29 PM tonio Quote: Originally Posted by Taurus3 Evaluate the indefinite integral of x(2x+5)^8dx Alright, so far I've got: u=2x+5, du=2dx, (1/2)du=dx, x = (u-5)/2 integral of (u-5)/2*u^8*1/2du 1/2integral of (u-5)/2*u^...
{ "domain": "mathhelpforum.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9766692284751636, "lm_q1q2_score": 0.8074239763411024, "lm_q2_score": 0.8267118004748677, "openwebmath_perplexity": 12651.97836171391, "openwebmath_score": 0.9755516052246094, "tag...
computability, computation-models, primitive-recursion No. What we get are far far from all $\mu$-recursive functions since all functions we get are still total recursive functions as primitive recursion preserves totality. Recall that $\mu$-recursive functions means partially recursive functions or, what is equivalen...
{ "domain": "cs.stackexchange", "id": 12538, "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, primitive-recursion", "url": null }
beginner, ruby Title: Array even and odd indexes sorting and printing its values I'm looking for a more elegant solutions of this task. Task: Given a string, print its even-indexed and odd-indexed characters as space-separated strings on a single line. Input Format: The first line contains an integer (the number of te...
{ "domain": "codereview.stackexchange", "id": 25816, "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", "url": null }
electric-circuits $$ Q = CV $$ For a typical battery the capacitance is very, very small, so the charge built up on the ends of the battery is very, very small. However in principle the charge is not zero, and as a result a battery will be surrounded by a very, very small electrostatic field. I have to confess I have ...
{ "domain": "physics.stackexchange", "id": 28316, "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", "url": null }
pointcloud text_1.scale.z = 0.12; text_1.color.r = 0.0f; text_1.color.g = 1.0f; text_1.color.b = 0.0f; text_1.color.a = 1.0f; text_1.lifetime = ros::Duration(); marker_pub.publish(text_1);
{ "domain": "robotics.stackexchange", "id": 20519, "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": "pointcloud", "url": null }
special-relativity, reference-frames, speed-of-light, inertial-frames, observers (Symmetry of Description) In particular, if frame $F_3$ is moving relative to frame $F_2$ at velocity $-v$, then frames $F_1$ and $F_3$ have to be the same and $T(v) T(-v) = I$ (here $I$ = identity transformation - my running away fro...
{ "domain": "physics.stackexchange", "id": 9724, "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, speed-of-light, inertial-frames, observers", ...
performance, comparative-review, swift, combinatorics Which brings my benchmark time down from ~2.06 seconds to ~1.46 seconds. If we're going for maximal performance here, we can also use Range's init(unchecked​Bounds:​) initialiser to skip the precondition check that lowerBound <= upperBound, given that we know j + 1...
{ "domain": "codereview.stackexchange", "id": 32763, "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, comparative-review, swift, combinatorics", "url": null }
ros, object-detection, ros-groovy, object-recognition-kitchen Originally posted by bit-pirate on ROS Answers with karma: 2062 on 2013-08-07 Post score: 2
{ "domain": "robotics.stackexchange", "id": 15200, "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, object-detection, ros-groovy, object-recognition-kitchen", "url": null }
big-o-notation Title: Possible Error in TAOCP In section 1.2.11.2 of Donald Knuth's first volume of TAOCP, he gives an exercise at the end to prove that $g(n) = \Omega (f(n)) \iff f(n) = O(g(n))$ (exercise 13). His solution is simply: "we may take $L = \frac{1}{M}$ in the definitions of $O$ and $\Omega$." However, ear...
{ "domain": "cs.stackexchange", "id": 19784, "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": "big-o-notation", "url": null }
angular-momentum, rotation, rotational-kinematics, moment-of-inertia To stop completely, you would have to increase $I$ to an infinite value. You might do this if you had infinitely long arms. Another approach that almost works is used by a spinning ice skater. She spins on a point of a skate. To stop spinning, she p...
{ "domain": "physics.stackexchange", "id": 38127, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "angular-momentum, rotation, rotational-kinematics, moment-of-inertia", "url": nu...
quantum-field-theory Title: Peskin and Schroeder "Particle Creation by a Classical Source" In page 32 of Peskin & Schroeder, it is written: But if $j(x)$ is turned on for only a finite time, it is easiest to solve the problem using the field equation directly. I am wondering:
{ "domain": "physics.stackexchange", "id": 10290, "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", "url": null }
I will give a shorter proof that $\alpha$ is a permutation on $\mathbb Z/11\mathbb Z$. (All the operations here are modulo $11$.) First of all, we make the following observation: 1. If $x = 0$, then $\alpha (x) = 0$. 2. If $x \neq 0$ is a quadratic residue modulo $11$, then $x^5 = 1$. Therefore, $\alpha(x) = x^2(4-3) ...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9838471642306267, "lm_q1q2_score": 0.8133580521321965, "lm_q2_score": 0.826711791935942, "openwebmath_perplexity": 90.71666026256348, "openwebmath_score": 0.9510725140571594, "tags...
performance, c, beginner, hash-map, trie It's hard to include info from the spec in this post (since a lot of it doesn't make since out of context), but I will try. Also, a library is included with the virtual machine that is used for the course, so any function that you see which is not defined in the base libraries ...
{ "domain": "codereview.stackexchange", "id": 8277, "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, c, beginner, hash-map, trie", "url": null }
file-formats, python, gff3, sequence-annotation Eterm 16667 16698 + 9.829 2 0 0 scaffold_12-snap.5 Einit 17809 17898 - -5.390 0 0 0 scaffold_12-snap.6 Exon 17299 17350 - 6.978 0 1 2 scaffold_12-snap.6 Eterm 17029 17129 ...
{ "domain": "bioinformatics.stackexchange", "id": 177, "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": "file-formats, python, gff3, sequence-annotation", "url": null }
• What actually do you try to solve? Do you need numerical solution at $\delta \rightarrow 0$ or you try to compare different numerical method? Dec 28 '20 at 10:36 • I need a numerical solution ideally via NDSolveValues for as small as possible $\delta$. As written, I have an analytical.solution for the limit $\delta \...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9678992923570262, "lm_q1q2_score": 0.8148024559446857, "lm_q2_score": 0.8418256551882382, "openwebmath_perplexity": 902.0248722421479, "openwebmath_score": 0.6717526316642761, "tag...
python, recursion, computational-geometry, divide-and-conquer dmin_rec = dis_storage_min else: for m in range(0,len(xy_arr_y_sorted)-1): dis_storage = [] for n in range (1,len(xy_arr_y_sorted)-m): d_m_mpn = two_point_distance(xy_arr_y_sorted[m], xy_arr_y_sorted[m+n])...
{ "domain": "codereview.stackexchange", "id": 31290, "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, recursion, computational-geometry, divide-and-conquer", "url": null }
t7-promoter A key component affecting initiation of translation in prokaryotes is the RBS that occurs between 5 and 15 bases upstream of the open reading frame (ORF) AUG start codon. Binding of the ribosome to the Shine–Dalgarno (SD) sequence within the RBS localizes the ribosome to the initiation codon... Affinity of...
{ "domain": "biology.stackexchange", "id": 74, "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": "t7-promoter", "url": null }
arithmetic, numeral-representations That seems kinda silly, but I'd speculate that that characterization was in a context in which the signed-bit acted like a sub-type qualifier that may've been removed at some point, kinda like how Java strips generic-type qualifiers. That wouldn't seem like a fair comparison because...
{ "domain": "cs.stackexchange", "id": 10463, "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": "arithmetic, numeral-representations", "url": null }
• IIRC, in the Barendregt lambda calculus book there's an equational axiomatization of combinatory logic, which should prove your goal. It contains several non trivial equations. – chi May 12 '16 at 7:12 • @chi I've ordered the Barendregt book (just prior to asking this question) but I live in Japan and Amazon has a fi...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9693241965169939, "lm_q1q2_score": 0.823897632432609, "lm_q2_score": 0.8499711813581708, "openwebmath_perplexity": 615.5973992259977, "openwebmath_score": 0.8153346180915833, "tags...
reference-request, graph-theory, co.combinatorics, treewidth, integer-lattice I know already that $tw(G) = (3/4) k^2 + O(k)$, i.e. it is really smaller than $k^2$. To me, this suggests that the standard arguments showing that the $k\times k$ 2D-grid has treewidth and pathwidth $k$ will not easily generalize. To see th...
{ "domain": "cstheory.stackexchange", "id": 543, "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, graph-theory, co.combinatorics, treewidth, integer-lattice", "...
bash Like this: function sockets_found { screen -ls | grep -q "There is a screen on" } That is: You can remove the if statement, as the exit code of grep naturally becomes the exit code of the function If the exit code of grep is greater than 1, the original function exits with 0. That's inappropriate. Such exit...
{ "domain": "codereview.stackexchange", "id": 19958, "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": "bash", "url": null }
is involved X } _n\ } {... In the usual sense ), every real number is a continuous random variable, then would n't that that! Us something very different and is primarily used for hypothesis testing more demanding than the standard definition hand almost-sure., np ( 1 −p ) ) distribution. we write to infinity distributi...
{ "domain": "yewtreeapps.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9840936054891429, "lm_q1q2_score": 0.8324865412561228, "lm_q2_score": 0.8459424353665381, "openwebmath_perplexity": 707.8092446788913, "openwebmath_score": 0.87774658203125, "tag...
telecommunication, wireless-communication According to https://en.wikipedia.org/wiki/International_mobile_subscriber_identity, the 3GPP specification 23.003 recommends that the "length of the MNC is uniform within a given MCC area". Looking at the OP's link, presumably India was allocated MCC = 404 and started using t...
{ "domain": "engineering.stackexchange", "id": 1562, "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": "telecommunication, wireless-communication", "url": null }
quantum-field-theory, quantum-electrodynamics, gauge-theory, gauge-invariance ADDENDUM. Actually if we add a mass to $A_\mu$ and we assume the field describes particles with spin $1$ (avoiding problems with temporal modes) the condition $\partial_\mu A^\mu =0$ has to be added just to remove a degree of freedom (or is ...
{ "domain": "physics.stackexchange", "id": 32335, "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, quantum-electrodynamics, gauge-theory, gauge-invariance", ...
quantum-mechanics, potential-energy, physical-chemistry I feel like these formulations have already been posed, but I can't find it in the literature. References would be greatly appreciated if these two problems have been posed before. Thank you. There is no simple ODE for $P(t)$. The discipline that deals with calcu...
{ "domain": "physics.stackexchange", "id": 79974, "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, potential-energy, physical-chemistry", "url": null }
computer-architecture, cpu-pipelines 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 S1 S2 S2 S3 S3 S3 S3 S4 S1 S2 S2 S3 S3 S3 S3 S4 S1 S2 S2 S3 S3 S3 S3 S4 S1 S2 S2 S3 S3 S3 S3 S4 Each stage of the pipeline is only as fast as the slow...
{ "domain": "cs.stackexchange", "id": 3321, "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": "computer-architecture, cpu-pipelines", "url": null }
arm-navigation [ INFO] [1310134527.268940800, 1310134527.264225959]: waitForService: Service [/ompl_planning/plan_kinematic_path] has not been advertised, waiting... [ERROR] [1310134527.285647063, 1310134527.274550914]: No default planner configuration defined under 'default_planner_config'. A default planner must be ...
{ "domain": "robotics.stackexchange", "id": 6072, "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": "arm-navigation", "url": null }
organic-chemistry, nomenclature, cis-trans-isomerism Title: What is the E/Z configuration of cyclic compounds? What are the configurations of 1-bromo-3-methylcyclopent-1-ene and 1-nitro-2-(propan-2-yl)benzene? Are they E or Z? Are they cis or trans?
{ "domain": "chemistry.stackexchange", "id": 3107, "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, nomenclature, cis-trans-isomerism", "url": null }
and parallel to one side. \end{equation*} If the object is made of a number of parts, each of whose moment of inertia is known, the total moment of inertia is the sum of the moments of inertia of the pieces. 1 to the differential element gives the differential moment of inertia. The moments of inertia of an angle can b...
{ "domain": "ilegnidimarcello.it", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9881308779050736, "lm_q1q2_score": 0.825567085040988, "lm_q2_score": 0.8354835411997897, "openwebmath_perplexity": 336.1724646115016, "openwebmath_score": 0.6558020114898682, "ta...
context-free, formal-grammars, closure-properties Where A,B,C are nonterminals and a and b are terminals representing internal nodes and leaf nodes respectively. The tree can be recovered from any word in the language by a preorder traversal. The set of all such grammars forms a class of languages which is a subset of...
{ "domain": "cs.stackexchange", "id": 1252, "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": "context-free, formal-grammars, closure-properties", "url": null }
thermodynamics, fluid-dynamics Title: Why are turbines built differently when a change of entropy or temperature is involved? We are talking about turbines for extraction of energy from a fluid. Consider a typical wind turbine, or a francis turbin for water - we have one hub with on set of vanes that are driven by the...
{ "domain": "physics.stackexchange", "id": 3419, "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, fluid-dynamics", "url": null }
homework-and-exercises, newtonian-mechanics, spring Title: Affect on Spring constant on cutting the spring into 2 unequal parts Question : A uniform spring with a constant 120 N/m is cut into two pieces, one twice as long as the other. What are the spring constants of the two pieces?
{ "domain": "physics.stackexchange", "id": 100237, "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, spring", "url": null }
The answer to your first question is yes; you may, if you wish, call any $$a \in \mathbb{R}$$ a vector. However, there isn’t much purpose, since they fulfill exactly the same purpose as what you may wish to call a scalar. For instance, the vector $$<3>$$ and the scalar $$3$$both produce the same vector if you take thei...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9637799482964025, "lm_q1q2_score": 0.8373578238446399, "lm_q2_score": 0.8688267745399466, "openwebmath_perplexity": 251.2535447979867, "openwebmath_score": 0.8300259709358215, "tag...
First, assume that each $U_ i$ is Jacobson. We claim that in this case $X_0 \cap U_ i = U_{i, 0}$. Namely, suppose that $x \in U_{i, 0}$, i.e., $x$ is closed in $U_ i$. Let $\overline{\{ x\} }$ be the closure in $X$. Consider $\overline{\{ x\} } \cap U_ j$. If $x \not\in U_ j$, then $\overline{\{ x\} } \cap U_ j = \emp...
{ "domain": "columbia.edu", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9869795125670754, "lm_q1q2_score": 0.8224743028912161, "lm_q2_score": 0.8333245953120233, "openwebmath_perplexity": 151.07212500491295, "openwebmath_score": 0.9704275131225586, "tags": ...
tides, astronomy Title: Why do high tides occur simultaneously on opposite sides of the Earth? Most explanations for high tides say high tides come from water being attracted by the moon (2/3) and the sun (1/3). Attraction occurring in the direction of the moon is visible on the side close to the moon below: Source: ...
{ "domain": "earthscience.stackexchange", "id": 1714, "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": "tides, astronomy", "url": null }
complexity-theory, speedup, quantum-advantage I.e., I secretly flip a coin fairly; if I get heads I hand you a black box (classical or quantum, resp.) circuit for a uniform random 1-to-1 function $f$, whereas if I get tails I hand you a black box circuit for a uniform random 2-to-1 function $f$. How much do you have ...
{ "domain": "quantumcomputing.stackexchange", "id": 3450, "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": "complexity-theory, speedup, quantum-advantage", "url": null }
homework-and-exercises, atomic-physics, spectroscopy Title: Predicting spectral lines In the spectrum of some hydrogen-like ions the three lines are known, which belong to the same series and have the wavelengths 992, 1085, 1215 angstroms. What other lines can be predicted?
{ "domain": "physics.stackexchange", "id": 99442, "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, atomic-physics, spectroscopy", "url": null }
fft, cross-correlation The interesting thing to notice is that the frequencies you are looking for are there. Said frequencies are 1/8 Hz or omega = 1/8/500 = 0.00025 omega and 1/6 Hz or omega = 1/6/500 = 0.00033 Which is where the first two peaks are in the frequency domain. Further out are many more repeating pe...
{ "domain": "dsp.stackexchange", "id": 754, "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, cross-correlation", "url": null }
thermodynamics, chemical-potential $$ Are all these definitions equivalent? Why? Or they give rise to different quantities and one should be consistent when using one definition or the other? I have tried to work out one definition from the other using thermodynamics identities but I could not make it out. Let's start...
{ "domain": "physics.stackexchange", "id": 18706, "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, chemical-potential", "url": null }
### Show Tags 06 Dec 2017, 10:12 1 KUDOS Expert's post 1 This post was BOOKMARKED gmatm8 wrote: Bunuel Thanks so much! Super useful!! Question: The problem sets referenced at the end of number theory pdf are based on edition 12 of the GMAT official guide. I would like to try prep questions for number theory but don't...
{ "domain": "gmatclub.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9770226314280634, "lm_q1q2_score": 0.8668189653116194, "lm_q2_score": 0.8872045922259088, "openwebmath_perplexity": 711.1701522916192, "openwebmath_score": 0.8090343475341797, "tags": n...
ros, c++ if (!n.getParam("checkDiagonalStepCorner", checkDiagonalCornerUnBlocked)) checkDiagonalCornerUnBlocked = false; else { std::cout << "Diagonal Corner: " << checkDiagonalCornerUnBlocked << std::endl; } When I run this command on terminal: rosrun nav_astar_nodes astar_controller _diagonalSteps:=t...
{ "domain": "robotics.stackexchange", "id": 1958, "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, c++", "url": null }
performance, algorithm, c, sorting, mergesort // Advance the run points over the two runs we just merged. source += (size * run_length) << 1; target += (size * run_length) << 1; } // Here we deal with the remaining "orphan" run. We must copy it to // 'target' as it may...
{ "domain": "codereview.stackexchange", "id": 20436, "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, algorithm, c, sorting, mergesort", "url": null }
What exactly is the difference between a mathematician, a physicist, and a layman? Let us suppose that they all start measuring the angles of hundreds of triangles of various shapes, find the sum in each case and keep a record. Suppose the layman finds that with one or two exceptions, the sum in each case comes out to ...
{ "domain": "madhavamathcompetition.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9752018390836984, "lm_q1q2_score": 0.8040167847538366, "lm_q2_score": 0.8244619242200081, "openwebmath_perplexity": 770.5620613873772, "openwebmath_score": 0.741341054439544...
validation, console, shell, sh, posix Title: POSIX shell function for asking questions I've written a tiny function for asking questions intended for my POSIX shell scripts, where I often need user input. The function takes 2+ arguments, where: Is a string containing the question. , 3., ... = arguments containing the...
{ "domain": "codereview.stackexchange", "id": 34484, "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": "validation, console, shell, sh, posix", "url": null }
ros, syncronization, service Comment by Pi Robot on 2011-06-11: Ooops. Looks like a spoke too soon. I just added a second test detector node that tries to draw random markers on the display image using the service approach and while its markers show up on the display, the face boxes from my first detector node (the ...
{ "domain": "robotics.stackexchange", "id": 5814, "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, syncronization, service", "url": null }
in every case, Cartesian system of axes x,y. This problem has been solved! See the answer. The last topic I want to cover in Statics and Centroids and moments of inertia is moments of inertia and related polar moments of inertia. The centroid taken from the bottom must then be equal to 1/3 of h. Find the centroid of I-...
{ "domain": "radiofakenews.it", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.983596967483837, "lm_q1q2_score": 0.8018602109440925, "lm_q2_score": 0.8152324960856177, "openwebmath_perplexity": 552.9579720696739, "openwebmath_score": 0.577366828918457, "ta...
general-relativity, coordinate-systems, observers, equivalence-principle $$\eqalign{ u^t &= {dt \over d\tau} = {\pd t \over \pd \xi}\,\dxi = x\,\dxi \cr u^x &= {dx \over d\tau} = {\pd x \over \pd \xi}\,\dxi = t\,\dxi \cr}$$ (dot means $d/d\tau$) and since $\left({u^t}\right)^2-\left({u^...
{ "domain": "physics.stackexchange", "id": 52815, "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, coordinate-systems, observers, equivalence-principle", "url"...
planets, spectroscopy, stars, exoplanets, chemical-compounds Title: Spectroscopy and the current state of our ability to determine the composition of extra-solar planets I was interested in learning more about the status of our scientific understanding and technological instruments regarding extra solar spectroscopy. ...
{ "domain": "physics.stackexchange", "id": 13391, "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": "planets, spectroscopy, stars, exoplanets, chemical-compounds", "url": null }
c++, object-oriented, c++14, networking, wrapper void configureTimeout(const size_t seconds); void configureReadWriteFd(); }; } // namespace simple_telnet_client #endif // SIMPLE_TELNET_CLIENT__TELNET_CLIENT_HPP_ PS: I am using C++14 and GCC 9.4 in Ubuntu 20.04 LTS. Avoid using malloc() in C++ There are much b...
{ "domain": "codereview.stackexchange", "id": 43637, "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, c++14, networking, wrapper", "url": null }
nuclear-physics, time, symmetry-breaking, time-reversal-symmetry, cp-violation but, same as John Rennie, I'm struggling to see how he connects the (known, possibly stronger than accepted) $P$ violation they found to a confirmation of a $T$ violation, let alone relating that to time travel. Onwards from this, the BBC p...
{ "domain": "physics.stackexchange", "id": 31993, "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, time, symmetry-breaking, time-reversal-symmetry, cp-violation", ...
bicycles There is an additional alternating moment to cancel out too. As legs pump, there is need for a twisting moment to maintain orientation. You may see cyclists swing their bikes left and right between their legs sometimes in order to reduce the effects of their pumping legs. Bikes can impart this moment to th...
{ "domain": "engineering.stackexchange", "id": 4727, "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": "bicycles", "url": null }
general-relativity, cosmology, spacetime, universe, cosmological-constant Title: Einstein's Static Solution with $\Lambda =0$ to The Friedmann Equations? Is it possible to show the universe is static (i.e., $a=a_*=\rm{const}$) without assuming $a=\rm{const}$ to begin with, and using a mix of $w=0$ and $w=-1$? Let $\La...
{ "domain": "physics.stackexchange", "id": 78496, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "general-relativity, cosmology, spacetime, universe, cosmological-constant", "url...
quantum-field-theory, integration, topology, topological-insulators, wick-rotation +\frac{\mathrm{tr}\left[P_{\text{E}}\frac{\partial \text{P}_G}{\partial k_i}P_{\text{G}}\frac{\partial \text{P}_G}{\partial k_j}P_{\text{E}}\frac{\partial \text{P}_G}{\partial k_k}P_{\text{G}}\frac{\partial \text{P}_G}{\partial k_l}\rig...
{ "domain": "physics.stackexchange", "id": 97813, "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, integration, topology, topological-insulators, wick-rotation...
quantum-field-theory, condensed-matter, symmetry, hamiltonian "Chapter 2: Quantization of the scalar field" (http://cftp.ist.utl.pt/~gernot.eichmann/2015-qft), which is one of the first sources I found in a quick search for "momentum operator in QFT." The preceding equations explain how to express $U(\mathbf{x})$ i...
{ "domain": "physics.stackexchange", "id": 98936, "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, symmetry, hamiltonian", "url": null }
ros, tutorial, node [rosmake-3] Starting >>> chapter2_tutorials [ make ] [ rosmake ] Last 40 linesapter2_tutorials: 3.8 sec ] [ 1 Active 24/25 Complete ] {----...
{ "domain": "robotics.stackexchange", "id": 18197, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros, tutorial, node", "url": null }
python, game #If the player has no money and no stake in the pot, they're out of the game def checkIfOut(self): if self.cash == 0 and self.chipsInPlay == 0: self.activeRound = 0 self.activeTurn = 0 self.activeGame = 0 #Checks if the player has enough money to bet th...
{ "domain": "codereview.stackexchange", "id": 41559, "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", "url": null }
performance, beginner, c, hash-map #endif misc.c #include "misc.h" #include <stdbool.h> #include <limits.h> #define FNV_OFFSET 14695981039346656037UL #define FNV_PRIME 1099511628211UL /* Definition of prime number functions */ /*! @function @param n number to test @return ture if is prime, false if is...
{ "domain": "codereview.stackexchange", "id": 44486, "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, beginner, c, hash-map", "url": null }
fundamental-astronomy, coordinate, azimuth 210 -11.4723 207.9104 -60.0000 66.5600 225 -16.3366 222.5357 -45.0000 66.5600 240 -20.1510 237.8186 -30.0000 66.5600 255 -22.5962 253.7196 -15.0000 66.5600 270 -23.4400 270.0000 -0.0000 66.5600 285 -22.5962 286.2804 15.0000 66.5600 ...
{ "domain": "astronomy.stackexchange", "id": 1593, "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": "fundamental-astronomy, coordinate, azimuth", "url": null }
orbit, rotation, weather Because of the increased distance at aphelion, only 93.55% of the solar radiation from the Sun falls on a given area of land as does at perihelion. But on this page, it says Orbital eccentricity can influence temperatures, but on Earth, this effect is small and is more than counteracted by ...
{ "domain": "astronomy.stackexchange", "id": 549, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "orbit, rotation, weather", "url": null }
javascript, beginner, php, html, css Security The random numbers are being generated on the front-end, and as a result are very simple for any interested abuser with a bit of understanding of JS to bypass. (Admittedly, this is unlikely for a small-time website, but it's still something that would be good to fix.) All ...
{ "domain": "codereview.stackexchange", "id": 39224, "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, php, html, css", "url": null }
optics, electromagnetic-radiation, reflection Now, apply Snell's law to find the relation between $\theta_T$ and $\theta_I$: $$\frac{\sin \theta_T}{\sin \theta_I}=\frac{n_1}{n_2}\tag{3}$$ In the case of zero incidence angle ($\theta_I=0\text{ or }\cos\theta_I=1$) , $(3)$ implies that $\cos \theta_T=1$ and according t...
{ "domain": "physics.stackexchange", "id": 8867, "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, electromagnetic-radiation, reflection", "url": null }
python, beginner, roman-numerals # If the number is at least 1 but smaller than 10 if len(l) == 1: format = format + encode(l, c, 'I', 'V', "IX") return format Impressions That's a very long solution. The comments were generally helpful, but the code itself could have been easier to understand if ...
{ "domain": "codereview.stackexchange", "id": 21954, "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, roman-numerals", "url": null }
thermodynamics, energy, temperature, kinetic-theory If you have a beaker full of gas sitting in direct contact with a hot object (like a hot plate), the molecules of the beaker will occasionally collide with those of the hot object. Collisions tend to evenly divide the kinetic energy between the participating molecule...
{ "domain": "physics.stackexchange", "id": 91576, "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, energy, temperature, kinetic-theory", "url": null }
thermodynamics Title: Does too little ice make my martinis watery? When I make martinis, the recipe I use is 2.5 fluid ounces1 of gin2 and 1/2 fluid ounce dry vermouth3, shaken or stirred4 with 7 ice cubes5, then strained into a cocktail glass (I mix until it's cold enough, and not for some specific length of time.) M...
{ "domain": "physics.stackexchange", "id": 42032, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "thermodynamics", "url": null }
c#, security The user salt is stored together with the hashed password in the database. Additionally, every time a user's password is changed, the user salt is regenerated. The reasoning behind a common salt and a user salt is: access to the database alone isn't enough to figure out how the hashing works. And then in ...
{ "domain": "codereview.stackexchange", "id": 1757, "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#, security", "url": null }
homework-and-exercises, electromagnetism, superconductivity, differentiation, functional-derivatives Two small modifications Hopefully the derivation above wasn't new to you. But already it is essentially all you need for your problem. There are just two small modifications. The first modification is if $q$ were a vec...
{ "domain": "physics.stackexchange", "id": 42144, "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, superconductivity, differentiation, func...
botany, metabolism, plant-physiology, nutrition, amino-acids See below for some interesting Papers about citrulline, watermelon, and mechanisms of drought-resistance: Ann Bot. 2002 Jun;89 Spec No:825-32. Citrulline and DRIP-1 protein (ArgE homologue) in drought tolerance of wild watermelon. FEBS Lett. 2001 Nov 23;508(...
{ "domain": "biology.stackexchange", "id": 4946, "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": "botany, metabolism, plant-physiology, nutrition, amino-acids", "url": null }
thermodynamics, adiabatic Title: Speed of a process in thermodynamics As per my understanding, all adiabatic processes carried out in absence of an adiabatic wall need to be fast enough so that there is no heat exchange with the surrounding. Similarly, all isothermal processes are slow so that thermal equilibrium can ...
{ "domain": "physics.stackexchange", "id": 47184, "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, adiabatic", "url": null }
qiskit, programming, quantum-algorithms More generally, for an arbitrary number of qubits, when you want to measure in a given basis, it will always be possible to write this basis as $(U|i\rangle)_i$. If you apply $U^\dagger$ to $|\psi\rangle$ and measure in the computational basis, you will measure $|i\rangle$ with ...
{ "domain": "quantumcomputing.stackexchange", "id": 5273, "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": "qiskit, programming, quantum-algorithms", "url": null }
java, algorithm, tree, pathfinding, breadth-first-search /** * The left child node. */ protected N left; /** * The right child node. */ protected N right; /** * Constructs a new binary tree node with <code>element</code> as the * satellite datum. * * @param e...
{ "domain": "codereview.stackexchange", "id": 13497, "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, tree, pathfinding, breadth-first-search", "url": null }
general-relativity, differential-geometry, coordinate-systems, vectors In doing some of his exercises, I also found that the tangent vectors to the coordinate curves are the same as the basis vectors of that coordinate system! For example: In polar coordinates, the coordinate curve parameterised by $r$, keeping $\thet...
{ "domain": "physics.stackexchange", "id": 75542, "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, coordinate-systems, vectors", "url": ...
chemical-engineering, vaporization $$ -400\cdot\dot m_{out} = -200\cdot\dot m_{out} + 400 $$ $$ (-200\text{ kJ/kg})\cdot\dot m_{out} = 400\text{ kW} $$ $$ \dot m_{out} = -2.0\text{ kg/s} $$ So... I found a negative mass outflow... as if it was actually an inflow, with vapour condensing into liquid water. M...
{ "domain": "engineering.stackexchange", "id": 5203, "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": "chemical-engineering, vaporization", "url": null }