text
stringlengths
49
10.4k
source
dict
newtonian-mechanics, newtonian-gravity, orbital-motion, celestial-mechanics, stability Title: Why is Larry Niven's Ringworld Unstable? In his 1970 science fiction novel Ringworld, author Larry Niven describes the eponymous Ringworld, a gigantic structure shaped as a ring with a radius of around 1 AU, rotating around a...
{ "domain": "physics.stackexchange", "id": 32036, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "newtonian-mechanics, newtonian-gravity, orbital-motion, celestial-mechanics, stabi...
• $$\begin{bmatrix} A \\ B \end{bmatrix} C = \begin{bmatrix} AC \\ BC \end{bmatrix}.$$ • $$\begin{bmatrix} A & B \end{bmatrix} \begin{bmatrix} C \\ D \end{bmatrix} = AC + BD.$$ (For each rule, we must assume that the matrices $$A, B, C$$, and $$D$$ have compatible shapes.) \begin{align} \begin{bmatrix} A & B \\ C & D \...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9697854103128328, "lm_q1q2_score": 0.8081460285669729, "lm_q2_score": 0.8333245891029456, "openwebmath_perplexity": 130.61056223165494, "openwebmath_score": 0.9999163150787354, "ta...
source material useful in giving your own lectures. You may also find the following books highly relevant:. Hidden Markov Models and Dynamic Programming Jonathon Read October 14, 2011 1 Last week: stochastic part-of-speech tagging Last week we reviewed parts-of-speech, which are linguistic categories of words. Python h...
{ "domain": "asainfo.it", "id": null, "lm_label": "1. Yes\n2. Yes", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9766692277960746, "lm_q1q2_score": 0.8117518326123543, "lm_q2_score": 0.8311430415844385, "openwebmath_perplexity": 1282.145413049841, "openwebmath_score": 0.23353199660778046, "tags": nu...
ros, navigation, global-costmap, move-base, costmap-2d Originally posted by David Lu with karma: 10932 on 2015-07-25 This answer was ACCEPTED on the original site Post score: 2 Original comments Comment by Naman on 2015-07-25: Thanks @David for the reply. I have made the change you suggested but it looks like I am st...
{ "domain": "robotics.stackexchange", "id": 22285, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros, navigation, global-costmap, move-base, costmap-2d", "url": null }
• @Dylan Indeed it seems we had pretty much the same idea. I think you basically proved Pólya's theorem in your answer. I would say yours is probably cleaner as a combinatorial proof though :) – Milten Feb 1 '20 at 9:16
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9773708026035287, "lm_q1q2_score": 0.8474154498758273, "lm_q2_score": 0.8670357735451835, "openwebmath_perplexity": 147.08019970613853, "openwebmath_score": 0.8838981986045837, "ta...
ruby, datetime, ruby-on-rails Title: Fabricate with work dates I am using code like this everywhere. How can I reduce such this code so that my Ruby code looks a lot cleaner? Fabricate(:tl, :when =>Date.yesterday.to_s,:work => 266,:type => "fast" ) Fabricate(:tl, :when =>Date.yesterday.to_s,:work => 100,:type => "supe...
{ "domain": "codereview.stackexchange", "id": 647, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ruby, datetime, ruby-on-rails", "url": null }
homework-and-exercises, newtonian-mechanics, harmonic-oscillator Title: What shape must a bowl be to have a ball rolling in the bowl execute perfect simple harmonic motion? If we imagine a 2d semisphere "bowl" with a ball resting at the bottom. The ball can be slightly displaced and will roll back and forth crossing t...
{ "domain": "physics.stackexchange", "id": 84104, "lm_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, harmonic-oscillator", "url": null }
quantum-mechanics, hilbert-space, operators, wavefunction, integration $$ we have that $$ \frac{1}{\sqrt{g'(x)}}\psi(x) = \frac{1}{\sqrt{g'(x)}}\left\langle x | \psi \right\rangle = \left( \left\langle x \right\rvert \frac{1}{\sqrt{g'(x)}}\right)\left\lvert \psi \right\rangle = \left(\left\langle x \right\rvert \frac...
{ "domain": "physics.stackexchange", "id": 84245, "lm_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, hilbert-space, operators, wavefunction, integration", "url": ...
# A question on probability of choosing coins Six identical-looking coins are in a box, of which five are unbiased, while the sixth comes up heads with probability $3 \over 4$ and tails with probability $1 \over 4$. Three coins are chosen from the box at random and removed. One of those three is chosen at random and t...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9848109480714625, "lm_q1q2_score": 0.8370609118474058, "lm_q2_score": 0.84997116805678, "openwebmath_perplexity": 151.2502451351604, "openwebmath_score": 0.9127453565597534, "t...
I'd like to refer to the Maple documentation on this topic. I think so does Mathematica. Also consider the Riemann surface for PolyLog[2, z]. • Thanks. I don't see anywhere under PolyLog help which describes how to evaluate or plot PolyLog for other branches nor does Mathworld describe this. Can you direct me to that ...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9715639686018701, "lm_q1q2_score": 0.8075086319576062, "lm_q2_score": 0.8311430415844385, "openwebmath_perplexity": 1323.8432178986288, "openwebmath_score": 0.5490282773971558, "ta...
Some useful functions: • np.amin, np.amax. Returns min and max value of array. • np.argmin, np.argmax. Returns the index of the min and max value of an array. • np.argwhere. Returns the indices where a condition is true. For example a = np.array([0,1,2,3,10]) np.argwhere(a>1) would yield [2,3,4]. Coefficients of wa...
{ "domain": "jupyter.org", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9848109485172559, "lm_q1q2_score": 0.8466062664639717, "lm_q2_score": 0.8596637433190939, "openwebmath_perplexity": 1356.4796297145695, "openwebmath_score": 0.44402772188186646, "tags": ...
## Properties The Hadamard product is commutative, associative and distributive over addition. That is, $A \circ B = B \circ A,$ $A \circ (B \circ C) = (A \circ B) \circ C,$ $A \circ (B + C) = A \circ B + A \circ C.$ The identity matrix under Hadamard multiplication of two m-by-n matrices is m-by-n matrix where all ...
{ "domain": "wikipedia.org", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9940889299179002, "lm_q1q2_score": 0.808062402154387, "lm_q2_score": 0.8128673178375734, "openwebmath_perplexity": 506.8069565086896, "openwebmath_score": 0.934747576713562, "tags": nu...
ros, beginner Originally posted by dornhege with karma: 31395 on 2014-01-10 This answer was ACCEPTED on the original site Post score: 1
{ "domain": "robotics.stackexchange", "id": 16622, "lm_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, beginner", "url": null }
newtonian-mechanics, energy, velocity, integration, calculus Title: If kinetic energy is mass times the integral of velocity, isn't it just a product of mass times distance? I'm still learning Calculus at the moment and I'm currently on integration. The moment I realized the "$1/2$" and square value in $v^2$ are just ...
{ "domain": "physics.stackexchange", "id": 55454, "lm_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, energy, velocity, integration, calculus", "url": null }
quantum-field-theory, lagrangian-formalism, symmetry, group-theory, group-representations Title: How to diagonalise the Lagrangian mass term with SU(4) symmetry and self-dual tensors I should write the mass term of the Lagrangian with global SO(4) symmetry in tensor representation with anti-symmetric tensors and then ...
{ "domain": "physics.stackexchange", "id": 18805, "lm_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, lagrangian-formalism, symmetry, group-theory, group-represen...
ros, arduino, ros-kinetic, rosserial, rosserial-python ros::NodeHandle nh; std_msgs::UInt64 msgs; ros::Publisher unnamed_publisher("empty_topic", &msgs); bool publish_flag = false; void intFunc() { msgs.data = millis(); publish_flag = true; } void setup() { nh.initNode(); nh.advertise(unnamed_publis...
{ "domain": "robotics.stackexchange", "id": 29940, "lm_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, arduino, ros-kinetic, rosserial, rosserial-python", "url": null }
Then repeat the same argument for $$-f(x)$$ to find that only $$f=0$$ remains.
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9532750387190132, "lm_q1q2_score": 0.8212828665642701, "lm_q2_score": 0.8615382058759129, "openwebmath_perplexity": 60.70532502782708, "openwebmath_score": 0.9838752150535583, "tag...
python-3.x, web-scraping from lib.exceptions import ( TooManyFailedRequests, TooManyTimedOut ) from lib.utils import ExceptionCounter # ------------------------------------------------------------------------- # From loguru to be able to see the colors in pm2 # ------------------------------------------------...
{ "domain": "codereview.stackexchange", "id": 41091, "lm_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-3.x, web-scraping", "url": null }
Let me proceed with another natural and interesting approach according to the conditions. How can we count distinct distinct MSTs of a given unlabelled weighted graph $$G$$? Here is one reasonable procedure. Initially we have counted 0 MST. Now someone will present to us the MSTs one at a time together with $$G$$ to us...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9653811591688145, "lm_q1q2_score": 0.8086225370153838, "lm_q2_score": 0.8376199694135333, "openwebmath_perplexity": 374.1738351553616, "openwebmath_score": 0.7718506455421448, "tag...
javascript, jquery, html, html5, jquery-ui Title: Replacing simple jQuery methods for better use There are a few common jQuery call I find my self calling when creating my app. I need some help and maybe a better way to do all this or rewrite it. 1) Singleton Selector If I want to select only one class I would do it l...
{ "domain": "codereview.stackexchange", "id": 3844, "lm_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, html5, jquery-ui", "url": null }
ros, nxt, lego Title: how can i use roborealm software (vision for machines) in ros? Dear sirs, Hello. I want to know how can i use roborealm software for my Lego nxt in Ros ?? I have created my robot model in Lego digital designer and i want to convert it into robot models compatible with ROS and then i want to use ...
{ "domain": "robotics.stackexchange", "id": 5942, "lm_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, nxt, lego", "url": null }
java, beginner, sorting, mergesort In Java6 and above, the Arrays utility class can be used too: int[] left = Arrays.copyOfRange(inputArray, 0, leftSize); int[] right = Arrays.copyOfRange(inputArray, leftSize, inputArray.length); I would go with the Arrays.copyOfRange(...) call. The above changes do not change the l...
{ "domain": "codereview.stackexchange", "id": 23169, "lm_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, sorting, mergesort", "url": null }
ros, roomba, ubuntu-precise, ubuntu Title: Roomba 560 "Could not connect to Roomba" Error in ROS (Ubuntu 12.04) I've built an SCI-RS-232-USB cable for connecting to my Roomba using the following tutorial: blog.makezine.com/2008/02/29/how-to-make-a-roomba-seri/ The cable works as I tested it on my Windows machine usi...
{ "domain": "robotics.stackexchange", "id": 14304, "lm_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, roomba, ubuntu-precise, ubuntu", "url": null }
numpy is simly the addition of the arrays a and B Queue (... These points for more information.. / array right division '', translation memory discuss these points season virus-linked... Translation memory one-dimensional array with one element, or element in a linear amplifier size, unless one of is! Hour ) is a 501 (...
{ "domain": "forret.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9559813526452771, "lm_q1q2_score": 0.81817774065564, "lm_q2_score": 0.8558511506439708, "openwebmath_perplexity": 990.8298076485557, "openwebmath_score": 0.6768138408660889, "tags": n...
optics Title: View distance as a function of elevation of observer I'm currently reading Jules Verne's Mysterious Island and the author, through his engineer character, keeps repeating the statement that if he climbs up to the top of a mountain to a height of 2500 ft (762 m) - the highest peak on the island - he will ...
{ "domain": "physics.stackexchange", "id": 99736, "lm_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", "url": null }
water, phase, temperature Title: Why does water evaporate at room temperature? When water temperature reaches $100\ ^\circ \mathrm{C}$, the molecules get so excited that the hydrogen atoms lose the bonds to the oxygen atom and therefore the water starts to become gas. I get that, but at room temperature ($23\ ^\circ \...
{ "domain": "chemistry.stackexchange", "id": 778, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "water, phase, temperature", "url": null }
pr.probability, vc-dimension, high-dimensional-geometry, epsilon-nets How $\left|\mathcal{W}_{\epsilon}\right| \leq\left(60 W J \epsilon^{-1}\right)^{p}$???
{ "domain": "cstheory.stackexchange", "id": 5418, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "pr.probability, vc-dimension, high-dimensional-geometry, epsilon-nets", "url": n...
ros, fanuc Title: Motion performance between fanuc_driver/fanuc_driver_exp vs offline trajectory generation Hi, We are using a Fanuc robot model for dense cartesian trajectories. I have read a few topics to understand what would be the best way to interface with ROS to do that (#q299442, #q291577 and gavanderhoorn/fa...
{ "domain": "robotics.stackexchange", "id": 36046, "lm_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, fanuc", "url": null }
# If $f \in L^{p_1}$ and $f \in L^{p_2}$ with $1 \le p_1 \lt p_2 \lt \infty$, then $f \in L^{p}$ for all $p$ such that $p_1 \leq p \leq p_2$. Let $(X, \Sigma, \mu)$ be a measure space. If $f \in L^{p_1}$ and $f \in L^{p_2}$ with $1 \le p_1 \lt p_2 \lt \infty$, then $f \in L^{p}$ for all $p$ such that $p_1 \leq p \leq ...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9830850897067342, "lm_q1q2_score": 0.81051621837136, "lm_q2_score": 0.8244619177503205, "openwebmath_perplexity": 51.4679618409422, "openwebmath_score": 0.9802744388580322, "tags":...
38. ParthKohli Yes - how did you get that? 39. ganeshie8 The trick is to call "x" as the length of block that is on the friction surface 40. Kainui Ok here's my attempt, hopefully it works out. The work done by an individual particle that starts at point s and slides to 1 will be: $dW =\int_s^1 \bar f_k \cdot d \b...
{ "domain": "openstudy.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9609517028006207, "lm_q1q2_score": 0.8129098181383421, "lm_q2_score": 0.8459424295406087, "openwebmath_perplexity": 848.9151851810269, "openwebmath_score": 0.8917829394340515, "tags": ...
thermodynamics = T_1( C_v + \frac{P_{ext}R}{P_1})$$ and thus we have our desired result as, $$T_2=[\frac{C_v + (\frac{P_{ext}}{P_1})R}{C_v + (\frac{P_{ext}}{P_2})R}]T_1$$
{ "domain": "chemistry.stackexchange", "id": 10273, "lm_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 }
optics Another device which will test alignment I believe very effectively in your case is the point diffraction interferometer. It won't get your final alignment, but it will help you find the neighbourhood of where you need.
{ "domain": "physics.stackexchange", "id": 16840, "lm_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", "url": null }
quantum-field-theory, feynman-diagrams, propagator, regularization, wick-rotation How did the textbook come to this? Why does the exponential blow up at those limits? Why does argument being purely imaginary help in this not happening? P&S first replaced $$ \int d^4z e^{iz \cdot \sum_i \ell_i} \longrightarrow \lim_{T\...
{ "domain": "physics.stackexchange", "id": 80250, "lm_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, feynman-diagrams, propagator, regularization, wick-rotation"...
ruby, converting, brainfuck open(output_file, File::CREAT | File::WRONLY) do |output| output.puts <<-END.gsub(/^[ \t]*\||\s*#@.*$/, '') |#!/usr/bin/env ruby |class Mem < Hash #@ Hash because it's more memory-efficient and allows negative values. | def initialize; super(0); end | def []=(i, val); su...
{ "domain": "codereview.stackexchange", "id": 14282, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ruby, converting, brainfuck", "url": null }
game, vba, excel Methods AddDrawable, RemoveDrawable and ClearDrawables are the main methods for interacting with the display. Any item added to the container will be rendered. Refresh forces the display to repaint itself. If changes were made to any of the properties that alter how it is rendered on the Worksheet, ...
{ "domain": "codereview.stackexchange", "id": 22054, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "game, vba, excel", "url": null }
{{ x -> 2 Pi/ 3 }} Integrate the area below the 2nd curve over the whole domain minus the area under the 4th curve for 0 through 2.094... NIntegrate[upperCurve, {x, 0, Pi}, WorkingPrecision -> 25] - NIntegrate[lowerCurve, {x, 0, 2.0943951117546921736334297747816890478125.}, WorkingPrecision -> 25] 3.498055833660998...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.951142217223021, "lm_q1q2_score": 0.8538358840174605, "lm_q2_score": 0.8976952852648487, "openwebmath_perplexity": 4621.230410626539, "openwebmath_score": 0.46566471457481384, "tag...
electromagnetism, magnetic-fields, electric-fields, electromagnetic-induction In the absence of electric field from the other charges, the middle charge would execute a circular path at constant speed and kinetic energy. No work would be done. Because of the other charges, the charge will initially veer to the right w...
{ "domain": "physics.stackexchange", "id": 72317, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electromagnetism, magnetic-fields, electric-fields, electromagnetic-induction", ...
• You've found two linearly independent solutions Just to nitpick, that's iff $a \ne \pm 2$. – dxiv Jul 8 '18 at 23:29 • @Chilote: This was actually overkill, since you only asked about the uniqueness of one particular solution, not about all solutions being combinations of the geometric series. I edited the answer acc...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9863631675246404, "lm_q1q2_score": 0.8987541037619194, "lm_q2_score": 0.9111797088058519, "openwebmath_perplexity": 176.84608042968154, "openwebmath_score": 0.8752542734146118, "ta...
quantum-gate, programming, simulation Both have no control qubits and it seems like the control gates lost the control qubit. Any idea on where the control qubit is stored? The control qubits are only added to the command after it is received by the ControlEngine further down the chain after the MainEngine. For imple...
{ "domain": "quantumcomputing.stackexchange", "id": 621, "lm_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-gate, programming, simulation", "url": null }
snakemake And this is my driver script which I'm submitting as a job itself: #!/bin/bash module load snakemake snakemake --jobs 1 --local-cores 20 --cluster-config /crex/proj/uppstore2018136/publication/jupyterNotebooks/recipes/cluster.json --latency-wait 120 --max-jobs-per-second 1 -c "sbatch -A {cluster.account} -...
{ "domain": "bioinformatics.stackexchange", "id": 810, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "snakemake", "url": null }
strings, swift, extension-methods, rags-to-riches, numbers-to-words var plainEnglish: [String] = [] var isTeen = false let totalPlaces = digits.count var currentPlace = 0 for (index, digit) in enumerate(digits.reverse()) { currentPlace = totalPlaces - index if ...
{ "domain": "codereview.stackexchange", "id": 8960, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "strings, swift, extension-methods, rags-to-riches, numbers-to-words", "url": n...
sql, sql-server Now we can integrate it into your original query: SELECT ... dbo.funcSellIdByPropId(T0.id) as SellerId, ... FROM T0 ... To SELECT ... S2P.ID, ... FROM T0 JOIN SellIDByPropertyID S2P ON T0.id = S2P.PropertyId ... Why this works Once again the key to understanding is to ...
{ "domain": "codereview.stackexchange", "id": 6873, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "sql, sql-server", "url": null }
parity, spherical-harmonics $${\bf X}_{l,m}(\theta,\phi)=\frac{1}{\sqrt{l(l+1)}}{\bf L}Y_{l,m}(\theta,\phi),$$ where ${\bf L}$ is the operator $\frac{1}{i}({\bf x}\times{\nabla})$ (which would be the angular momentum divided by $\hbar$ in quantum mechanics), then the parity of ${\bf X}_{l,m}$ is indeed equal to $(-1)^...
{ "domain": "physics.stackexchange", "id": 87186, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "parity, spherical-harmonics", "url": null }
Problem 2.M.2 1. A group of even order can be partitioned into equivalence classes by the relation defined so that $$a \sim b$$ iff $$a = b$$ or $$a = b^{-1}$$. Then the number of such equivalence classes of odd size must be even. The element 1 is in its own equivalence class, so there must be some other equivalence c...
{ "domain": "brianbi.ca", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9840936059556499, "lm_q1q2_score": 0.8157533851563289, "lm_q2_score": 0.8289388125473629, "openwebmath_perplexity": 73.26678730461299, "openwebmath_score": 0.9586514234542847, "tags": nul...
performance, vba With ActiveSheet '<~~ better as With Worksheets("Sheet1x") you really should know what worksheet you are on 'bulk load aJAYs and aKAYs; redim aEMs aJAYs = .Range(.Cells(4, "J"), .Cells(.Rows.Count, "J").End(xlUp)).Value2 aKAYs = .Range(.Cells(4, "K"), .Cells(.Rows.Count, "K...
{ "domain": "codereview.stackexchange", "id": 20750, "lm_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, vba", "url": null }
newtonian-mechanics, forces, kinematics, acceleration Now, if I were an enormous unbreakable-plane travelling in inter-galactic space, and travelling at a constant speed and direction; and if I encountered my clone, who were oriented as I were oriented, and travelling at a speed equal to mine, and travelling in a dire...
{ "domain": "physics.stackexchange", "id": 24022, "lm_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, forces, kinematics, acceleration", "url": null }
\begin{align}&\frac{dx}{1+x^2}\\ &\frac{dx}{1+x} \end{align} 3) \begin{align}1+\phi(x)&=\frac{2}{1+x}\\ 1-\phi(x)&=\frac{2x}{1+x}\\ 1+(\phi(x))^2&=\frac{2(1+x^2)}{(1+x)^2}\\ \end{align} Observe that $$1+x,1-x,1+x^2,1-x^2,x$$ are transformed into product/quotient of these same expressions. It's often nice when dealing...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9566341999997376, "lm_q1q2_score": 0.8072989163159614, "lm_q2_score": 0.8438951025545426, "openwebmath_perplexity": 362.0374628122545, "openwebmath_score": 0.881543755531311, "tags...
optics, reflection, geometric-optics The set of all images $\,\texttt A'\,$ of the fixed point $\,\texttt A\,$, a geometric locus, is a closed curve as shown in Figure-03. The properties of this curve will provide us later with the solution to the problem.
{ "domain": "physics.stackexchange", "id": 80477, "lm_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, reflection, geometric-optics", "url": null }
Hint There are two key observations here: The first is that $\bf V$ is radially symmetric (that is, we can write it as $f(r) {\bf r}$ for some function $f$ (here, ${\bf r}$ is just the unit radial vector field). So, while it is difficult to evaluate the integral over $R$ directly (because the expression for the compone...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9861513869353993, "lm_q1q2_score": 0.8322083180688067, "lm_q2_score": 0.8438950947024556, "openwebmath_perplexity": 127.6622237129843, "openwebmath_score": 0.9614601135253906, "tag...
logistic-regression, numpy b = 2.0 W = np.repeat(1.0, X_train.shape[1]) m = X_train.shape[0] cost = list() lr = 0.001 num_epochs = 100 for epoch in range(num_epochs): Y = predict(X_train, W, b) W = W - lr * X_train.T.dot(Y - y_train.T) b = b - lr * np.sum(Y - y_train.T) loss = -1/m * np.sum(y_train ...
{ "domain": "datascience.stackexchange", "id": 8854, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "logistic-regression, numpy", "url": null }
computer-architecture Fav[ourite]: HuC6280. Basically a 65CS02 set (Rockwell's added instructions). Optimizing is soo much fun. There are some super crazy optimizations for this style chip out there. I know people will fight to the death (or possibly argue) that it's not RISC, but it definitely had some precusor idea...
{ "domain": "cs.stackexchange", "id": 3085, "lm_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", "url": null }
probability, hydrogen I think you need to understand exactly what you are asking when you ask: What is the most probable value of $\theta$? It means this: integrate the probability density $|\psi|^2$ over a region with $\theta<\theta'<\theta+\delta\theta$ and the whole range of $r$ and $\phi$, for some fixed $\delta...
{ "domain": "physics.stackexchange", "id": 34134, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "probability, hydrogen", "url": null }
ros, rviz, visualization, ros-indigo #23 0x00007fff82003216 in rviz::CameraDisplay::onInitialize (this=0x168ffe0) at /home/likewise-open/FARADAYFUTURE/c-naman.kumar/catkin_ws/src/rviz/src/rviz/default_plugin/camera_display.cpp:138 #24 0x00007ffff79b1a17 in rviz::Display::initialize (this=0x168ffe0, context=0x129c430) ...
{ "domain": "robotics.stackexchange", "id": 26228, "lm_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, rviz, visualization, ros-indigo", "url": null }
c++, recursion, template, constrained-templates, c++23 template<std::size_t unwrap_level, typename F, typename T1, typename... Ts> using recursive_variadic_invoke_result_t = typename recursive_variadic_invoke_result<unwrap_level, F, T1, Ts...>::type; // recursive_array_invoke_result implementation template<std::size...
{ "domain": "codereview.stackexchange", "id": 45462, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, recursion, template, constrained-templates, c++23", "url": null }
ros-fuerte, rospack Title: Rospack error after switching to fuerte Hey guys, i recently installed Fuerte and tried to build a package (including services and action-file) that i use in Electric. I get the following error: (...) [rosbuild] Building package morsetesting [rosbuild] Cached build flags older than ma...
{ "domain": "robotics.stackexchange", "id": 9258, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros-fuerte, rospack", "url": null }
01 11. Originally Posted by VonNemo19 (1/2)^3=8 You mean 1/8. 01 12. Originally Posted by yeongil Nope... \begin{aligned} y &= 5.12 \left(\frac{1}{2}\right)^{\frac{2}{4}} \\ y &= 5.12 \left(\frac{1}{2}\right)^{\frac{1}{2}} \\ y &= 5.12 \left(\frac{1}{\sqrt{2}}\right) \\ y &\approx 3.62 \end{aligned} My teacher never...
{ "domain": "mathhelpforum.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.98593637543616, "lm_q1q2_score": 0.8106261712698196, "lm_q2_score": 0.8221891305219504, "openwebmath_perplexity": 1415.1096470417654, "openwebmath_score": 0.9957472085952759, "...
quantum-field-theory, quantum-spin, propagator The case of $(j,0)\oplus (0,j)$ yields similar behavior for massive particle. This analysis actually breaks down for massless particles because of the non semi-simple structure of the little group associated with $m=0$ case and there is not a definite relation between mas...
{ "domain": "physics.stackexchange", "id": 32934, "lm_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-spin, propagator", "url": null }
java, role-playing-game //Name Strings static String playerName; public String critterName; //booleans for battle locations boolean mountBattle; boolean forestBattle; boolean plainBattle; boolean coastBattle; //booleans for player actions boolean dronesOffensive; boolean dronesDefens...
{ "domain": "codereview.stackexchange", "id": 29718, "lm_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, role-playing-game", "url": null }
3d-navigation, rosmake, ros-diamondback Title: can't rosmake package "3d_navigation" I was told electric doesn't fully support 3d_navigation yet, so I installed ros-diamondback-desktop-full on my Ubuntu 10.04. However, when I tried to rosmake 3d_navigation, error occurred. bcddivad@bcddivad-laptop:~$ roscd 3d_navig...
{ "domain": "robotics.stackexchange", "id": 9268, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "3d-navigation, rosmake, ros-diamondback", "url": null }
python, matrix Exploring in all directions to compute the total. We just need to sum up the counts obtained from each direction and then make an adjustment to counteract the quadruple-counting of the starting location. def valid_count(matrix, row, col): tot = sum( count_ones(matrix, row, col, dr, dc) ...
{ "domain": "codereview.stackexchange", "id": 43279, "lm_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, matrix", "url": null }
special-relativity, reference-frames, coordinate-systems, observers Imagine the traveling twin constantly looking through the telescope and comparing the Earth clock to her rocket clock. I'm looking for an answer like "...now the Earth-clock appears to be ticking slower than her own clock on the rocket". And "...at th...
{ "domain": "physics.stackexchange", "id": 54511, "lm_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, coordinate-systems, observers", "url": nul...
javascript, html, css, responsive-design .title { text-align: center; } @media (max-width: 768px) { .flex-container { flex-flow: column nowrap; } .flex-item { max-width: 100%; } } </style> <script> "use strict"; function init() { // Populate...
{ "domain": "codereview.stackexchange", "id": 44636, "lm_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, html, css, responsive-design", "url": null }
c#, interview-questions public double GetNps() { double nps = 0; if (completedOrders.Count > 0) { double promoterPercent = (promoters / completedOrders.Count) * 100; double detractorPercent = (detractors / completedOrders.Count) * 100; int decimalPlaces ...
{ "domain": "codereview.stackexchange", "id": 34787, "lm_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 }
beginner, haskell, recursion Title: Equivalent partition sums I'm looking for feedback on my solution to the following prompt: Given an array of ints, return the index such that the sum of the elements to the right of that index equals the sum of the elements to the left of that index. If there is no such index, retu...
{ "domain": "codereview.stackexchange", "id": 41557, "lm_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, haskell, recursion", "url": null }
c, mathematics Title: Determine the roots of a Quadratic Equation A code that determines the roots of a quadratic equation. Also, determine the following based on the discriminant b² – 4ac: If b² − 4ac is positive, display: “There are TWO REAL SOLUTIONS.” If b² − 4ac is zero, display: “There is ONLY ONE REAL SOLUTION...
{ "domain": "codereview.stackexchange", "id": 40877, "lm_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, mathematics", "url": null }
html, css CSS #about{ display: flex; } .left-side, .right-side{ width: 50%; position: relative; } .div-inside-right-side{ position: absolute; } Maybe you need to use a min-height. I hope this helps.
{ "domain": "codereview.stackexchange", "id": 33893, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "html, css", "url": null }
algorithm, ruby, datetime, interview-questions, interval Title: "Can a list of meetings all be scheduled in a conference room?" I was given this question at an interview for a position I just got rejected by, so looking to improve and see what better answers there are! Input: List of meetings Output: Can conference ...
{ "domain": "codereview.stackexchange", "id": 18339, "lm_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, ruby, datetime, interview-questions, interval", "url": null }
c++, template, iterator, c++17, variadic Note here that the arguments to zip aren't necessarily l-values. Here is my implementation: // inductive case template<typename T, typename... Ts> struct zip : public zip<Ts...> { static_assert(std::tuple_size<T>::value == std::tuple_size<zip<Ts...>>::value, "...
{ "domain": "codereview.stackexchange", "id": 37727, "lm_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++, template, iterator, c++17, variadic", "url": null }
java, array, sorting, complexity Need to sort the above 3 based on there column[0] value: arr[2][1] - arr[2][0] -> 5-4 -> 1 — value here is 4 ie arr[2][0] arr[3][1] - arr[3][0] -> 3-2 -> 1 — value here is 2 ie arr[3][0] arr[4][1] - arr[4[0] -> 1-0 -> 1 — value here is 1 ie arr[4][0] So the the one with the least val...
{ "domain": "codereview.stackexchange", "id": 28845, "lm_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, sorting, complexity", "url": null }
c++ protected: const T* const data_; ///< pointer to data const index_type size_; ///< Number of elements in data. friend class Span<T>; }; /// \brief Span over contiguous memory. template<typename T> class Span : public Const_span<T> { static_assert(!std::is_const<T>::value, "Temp...
{ "domain": "codereview.stackexchange", "id": 30314, "lm_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 }
thermodynamics, statistical-mechanics, partition-function Title: Canonical Distribution (Partition Function) For the canonical distribution $$ w_{n}=e^{(F-E_{n})/T}, $$ is the sum $$ Z=\sum_{n}e^{E_{n}/T} $$ a sum over energies or a sum over states? Perhaps this is a silly question, but Landau and Lifshitz call this a...
{ "domain": "physics.stackexchange", "id": 18351, "lm_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, statistical-mechanics, partition-function", "url": null }
# Bias of method of moments estimator for Pareto distribution with known scale parameter Let $x$ be a Pareto distribution with a known scale parameter $m>0$, i.e. $x\sim f(x|a)=\frac{am^a}{x^{a+1}}, x>a, a>0$ $\mathrm{E}\left[X\right]=\frac{am}{a-1}$ Using method of moments estimator for the shape parameter, $\frac{...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9770226327661525, "lm_q1q2_score": 0.8323771640627194, "lm_q2_score": 0.8519527963298947, "openwebmath_perplexity": 517.773077000098, "openwebmath_score": 0.7505583167076111, "tags...
navigation, odometry, mapping, rviz, gmapping Edit: this is my tf_tree Originally posted by kesuke on ROS Answers with karma: 58 on 2018-03-26 Post score: 0 Original comments Comment by stevejp on 2018-03-26: It would be useful if you posted a picture of your TF tree. [kesuke, I have only recently started understan...
{ "domain": "robotics.stackexchange", "id": 30442, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "navigation, odometry, mapping, rviz, gmapping", "url": null }
c++, file, console, windows, quiz File_Vocabulary file_voc; Settings settings; std::string fname_settings; std::string fname_vocabulary; }; } #endif Menu.cpp #include"Menu.h" namespace voc { //____________________________Member functions Menu::Menu(const std::string& file_setting...
{ "domain": "codereview.stackexchange", "id": 31017, "lm_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++, file, console, windows, quiz", "url": null }
biochemistry, molecular-biology, lab-techniques, book-recommendation Chapter 20: Cross-Linking Technologies for Analysis of Chromatin Structure and Function1637 Protocol 1: Formaldehyde Cross-Linking Protocol 2: Preparation of Cross-Linked Chromatin for ChIP Protocol 3: ChIP Protocol 4: ChIPQuantitative PCR (ChIP-qPCR...
{ "domain": "biology.stackexchange", "id": 11177, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "biochemistry, molecular-biology, lab-techniques, book-recommendation", "url": nu...
And the last one is the difference between the first and the second, that is: $\displaystyle{ \sum_{n=1}^\infty (\zeta(2n+1)-1) = \frac{1}{4} }$ 3. Originally Posted by Unbeatable0 Cool ones! $\displaystyle{ \sum_{n=2}^\infty (\zeta(n)-1) = \sum_{n=2}^\infty\sum_{m=2}^\infty \frac{1}{m^n} = \sum_{m=2}^\infty\sum_{n=...
{ "domain": "mathhelpforum.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9863631667229061, "lm_q1q2_score": 0.8240901914426922, "lm_q2_score": 0.8354835411997897, "openwebmath_perplexity": 1305.4533966897534, "openwebmath_score": 0.992857038974762, "tag...
Jump to content • entries 13 • comments 40 • views 1,374 Formulas! 479 views For a while i have been trying to make a blog with every one of the equations that we use. and then people can post comments with the ones that i am missing - and i'll edit it (or if that isnt a setting, mr. fullerton could) so that we can...
{ "domain": "aplusphysics.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9871787842245939, "lm_q1q2_score": 0.8116476598197382, "lm_q2_score": 0.822189123986562, "openwebmath_perplexity": 1943.5705055558815, "openwebmath_score": 0.5088782906532288, "tags...
c++, image, template, lambda, c++20 #endif The testing code /* Developed by Jimmy Hu */ #include "image.h" #include "basic_functions.h" int main() { auto img1 = TinyDIP::Image<GrayScale>(10, 10, 4); auto img2 = TinyDIP::Image<GrayScale>(10, 10, 3); auto img3 = TinyDIP::Image<GrayScale>(10, 10, 2); a...
{ "domain": "codereview.stackexchange", "id": 41751, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, image, template, lambda, c++20", "url": null }
torque Title: Will my hard-drive wear/damage when I tilt my laptop? I have an old laptop that I turn off every 2 months or so, it's always on, and I use it whenever I need to do something away from my desk, where I have my real machine. Anyway, every time I grab the laptop (which was laying flat on my desk), I tilt ...
{ "domain": "physics.stackexchange", "id": 12922, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "torque", "url": null }
rust, binary-tree pub fn contains(&self, key: u64) -> bool { self.get(key).is_some() } pub fn insert(&mut self, key: u64, value: V) -> Option<V> { fn aux<V>(tree: &mut PatriciaTreeMap<V>, key: u64, value: V) -> Option<V> { fn do_insert<V>(diff: u64, key: u64, value: V, node: &mut N...
{ "domain": "codereview.stackexchange", "id": 42105, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "rust, binary-tree", "url": null }
homework-and-exercises, newtonian-mechanics, kinematics, projectile Title: Why is the constant velocity model used in a projectile motion derivation? I was re-studying university physics last week, I'm now in the chapter about kinematics in 2 dimensions and specifically the one treating projectile motion. In page 86 o...
{ "domain": "physics.stackexchange", "id": 45526, "lm_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, kinematics, projectile", "url": nul...
javascript, array Title: Filter objects out of an array in JS I have an array of objects arr. One object looks like this: obj = { name: 'name' email: 'email' } And then I have an array with strings (emails) var excludedEmails = ['email1','email2',...] I want to filter the excluded emails out of the arr. Is th...
{ "domain": "codereview.stackexchange", "id": 27797, "lm_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, array", "url": null }
c#, beginner, multithreading TaskQueue.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace Signature { internal class TaskQueue : IDisposable { private readonly object _locker = new object(); private readonly Thread[] _thre...
{ "domain": "codereview.stackexchange", "id": 22611, "lm_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, multithreading", "url": null }
c++ You don't need to create an objet and copy it. ps = std::make_unique<GPS>(GPS()); // ^^^^^ This creates a automatic object // When make_unique calls new // this automatic object is copy constructed ...
{ "domain": "codereview.stackexchange", "id": 26271, "lm_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 }
homework-and-exercises, supersymmetry, quantum-gravity, cpt-symmetry $$\lambda_0 =-\frac{3}{2}\hspace{1mm};\hspace{1mm} \left( \frac{3}{2};4 \times (-1) ; 6 \times \frac{-1}{2} ; 4 \times 0; \frac{1}{2}\right) \tag{4}$$ $$\lambda_0 =-2\hspace{1mm};\hspace{1mm} \left( -2;4 \times \frac{-3}{2} ; 6 \times (-1) ; 4 \time...
{ "domain": "physics.stackexchange", "id": 66719, "lm_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, supersymmetry, quantum-gravity, cpt-symmetry", "url": nu...
So the series has infinite convergence radius and is thus absolutely convergent for any $\,z\in\Bbb C\,$ , and from here it follows that $$e^{w+z}=\sum_{n=0}^\infty\frac{(w+z)^n}{n!}=\sum_{n=0}^\infty\sum_{k=0}^n\binom{n}{k}\frac{w^kz^{n-k}}{n!}=\sum_{n=0}^\infty\sum_{k=0}^n\frac{w^kz^{n-k}}{k!(n-k)!}=$$ $$=\sum_{k=0}^...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9759464443071381, "lm_q1q2_score": 0.8046306876185171, "lm_q2_score": 0.8244619285331332, "openwebmath_perplexity": 225.14575197292731, "openwebmath_score": 0.9765638113021851, "ta...
better multi-level-models than maximum models. Is learned from the data as well, the model has both indicator variables for each county!, Sage can be extracted for plotting and summarization information across clusters a! Neither of these models are regression models in which the constituent model parameters nested. Be...
{ "domain": "webd.pl", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.960361158630024, "lm_q1q2_score": 0.8237671659064492, "lm_q2_score": 0.8577680995361899, "openwebmath_perplexity": 2914.198867559362, "openwebmath_score": 0.4788624048233032, "tags": nul...
aqueous-solution, solubility, solutions, precipitation s &= \sqrt{4 \times 10^{-10}}\\ s &= 2 \times 10^{-5} \end{align} Now, when the solids is mixed in water, There should be $[\ce{SO4^2-}] =3 \times 10^{-5.5} $ and $[\ce{S2O3^2-}] =2 \times 10^{-5} $. Now I confuse what ion concentration should I use to determine ...
{ "domain": "chemistry.stackexchange", "id": 12005, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "aqueous-solution, solubility, solutions, precipitation", "url": null }
c++, c++11, language-design, lexical-analysis Title: Tokenizer for my programming language Here's my attempt at porting the Lua codebase for my programming language to C++(11). This is just the first step, the tokenizer, and I wanted to remove all the bad performance / practices / code before passing to the next steps...
{ "domain": "codereview.stackexchange", "id": 22014, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, c++11, language-design, lexical-analysis", "url": null }
fourier-transform, noise, sampling, dft Now, consider the case where $N_c$ and $N$ share a common factor, $M$. Let's say $M$ is the greatest common factor. In this case, $N_c = M K_c$ and $N = M K$. Using this and the expression derived for $\epsilon_q(n T_s)$, we can show that $$ \epsilon_q(n T_s) = \cos\left(\frac{2...
{ "domain": "dsp.stackexchange", "id": 4632, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "fourier-transform, noise, sampling, dft", "url": null }
lo.logic, kolmogorov-complexity However, this is only true if $L(T)$ is the absolute Chaitin constant. In particular, if $T'$ proves $\mathrm{Con}(T)$, then $$ T'\vdash \exists L\forall s\ \lceil T\not\vdash K(\overline{s})\geq \overline{L}\rceil $$ by internalizing Chaitin's argument. However, a concrete $l$ for whic...
{ "domain": "cstheory.stackexchange", "id": 3080, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "lo.logic, kolmogorov-complexity", "url": null }
javascript, game, html, css, rock-paper-scissors Red text color on a black background can cause trouble to red-color-blind persons. As it is a definite can and not a will be this will not necessarily be an issue but must be kept in mind. You miss a highlighting of a selected element in case a user decides to control a...
{ "domain": "codereview.stackexchange", "id": 44730, "lm_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, game, html, css, rock-paper-scissors", "url": null }
ros-kinetic Title: Conflicting libtinyxml libraries - Kinetic After a recent update I now am getting lots of warnings from catkin/cmake: CMake Warning at /home/dave/ros/current/ws_moveit/src/moveit/moveit_setup_assistant/CMakeLists.txt:132 (add_executable): Cannot generate a safe linker search path for target mov...
{ "domain": "robotics.stackexchange", "id": 28491, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros-kinetic", "url": null }
c++, c++11, queue I see very little use for the size() method in this context. Between the call to the size() method and other methods your object could have been mutated thus making your results stale. Any function that queries state like this is not returning you anything useful because it can immediately by out of ...
{ "domain": "codereview.stackexchange", "id": 5650, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, c++11, queue", "url": null }
beginner, c, homework, simulation According to the comments, this should do one thing if currentState is sjf and another if it's not. But that's not what the code actually does. If currentState is priority, nothing will ever be swapped. That else if clause is going with the inner if, not the outer one. This is why you...
{ "domain": "codereview.stackexchange", "id": 28112, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "beginner, c, homework, simulation", "url": null }
python, performance def main(): str = raw_input() minion(str.upper()) if __name__ == '__main__': main() Sample input / output: banana Stuart 12 guavaisanotherfruit Kevin 98 The big performance hit probably comes in this block of code, where you don a bunch of array manipulations and looping: all_w...
{ "domain": "codereview.stackexchange", "id": 34577, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python, performance", "url": null }
algorithms Title: Does deterministic imply algorithmic? I'm not exactly sure whether this question belongs to this SE or not, but it doesn't seem to fit elsewhere. Say a process behaves in a deterministic fashion (that is, it gives the same output when an input is entered over and over again), then can we build it as ...
{ "domain": "cs.stackexchange", "id": 7947, "lm_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 }
javascript, jquery, css, rss FeedManager.$feedContainer = FeedManager.config.feedContainer; $.each(result.feed.entries, function() { $('<li/>').append( $('<a/>').append(this.title).attr( { 'title': this.title, 'href': this.link } ...
{ "domain": "codereview.stackexchange", "id": 132, "lm_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, css, rss", "url": null }
and $$f$$ is Riemann integrable on $$[a,b]\text{.}$$ The second lemma says that we need the function to only be “Riemann integrable inside the interval,” as long as it is bounded. It also tells us how to compute the integral. #### Proof. Let $$M > 0$$ be a real number such that $$\abs{f(x)} \leq M\text{.}$$ As $$(b-...
{ "domain": "jirka.org", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9869795072052384, "lm_q1q2_score": 0.804617753952394, "lm_q2_score": 0.8152324826183822, "openwebmath_perplexity": 364.93857567528283, "openwebmath_score": 0.9992241859436035, "tags": null...
qiskit Title: Is there a Qiskit function to encode a list of ints into a quantum state by using basis encoding? Let's start from a basic example: suppose I have the following list containing $N=8$ non-negative ints: L = [2, 1, 2, 0, 0, 1, 3, 2] I want to encode the whole list $L$ into a quantum state $|\psi\rangle$ b...
{ "domain": "quantumcomputing.stackexchange", "id": 4403, "lm_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", "url": null }