text
stringlengths
1
1.11k
source
dict
c, binary-tree, binary-search-tree static int getfreq(struct tnode **, FILE *); static void putfreq(struct tnode *); static void addtree(struct tnode **, char *); static char *getword(FILE *); static void usage(void); /* word frequency count */ int main(int argc, char *argv[]) { struct tnode *root = NULL; FIL...
{ "domain": "codereview.stackexchange", "id": 38157, "lm_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, binary-tree, binary-search-tree", "url": null }
ros, boost, callback, parameters Note that the call to cref is necessary because you want to pass a const reference instead of passing sound by value, i.e. copying it. If you want a normal reference, not a const reference, use ref. Edit: I just updated my answer to explicitly qualify the namespace of cref (it should b...
{ "domain": "robotics.stackexchange", "id": 11595, "lm_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, boost, callback, parameters", "url": null }
$\text{ }$ $\displaystyle (7) \ \ \ \ \ E((X-d)_+)=\int_d^\infty (x-d) \ f_X(x) \ dx$ $\displaystyle (8) \ \ \ \ \ E((X-d)_+)=\sum \limits_{x>d} (x-d) \ P(X=x)$ $\text{ }$ Based on the definitions, the following is how the two averages are related. $\displaystyle E[(X-d)_+]=e_X(d) \ [1-F_X(d)] \ \ \ \text{or} \ \ ...
{ "domain": "wordpress.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9893474904166245, "lm_q1q2_score": 0.8111594208263365, "lm_q2_score": 0.8198933425148214, "openwebmath_perplexity": 262.62715424159506, "openwebmath_score": 0.9560127854347229, "tags":...
ros2 At the moment, I believe there is no way to rotate in vector map builder, but you can do it with JSOM which is a generic tool to modify OSM files. Install instruction is here https://josm.openstreetmap.de/wiki/Download#LinuxRepositories JOSM requires certain version tags to be specified which is not specified in ...
{ "domain": "robotics.stackexchange", "id": 36329, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros2", "url": null }
SavageWarrior Okay thanks, but is there a way to set up the problem so that the x calculated is from Emily's position? 9. Feb 12, 2012 LawrenceC Sure, take the equation 2.5t + .5at^2 = 10 and solve for t just as before. Then apply the time to Xe = Ve * t = 2.5 * t, t=3.06 sec which gives how far Emily moved fr...
{ "domain": "physicsforums.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9790357585701875, "lm_q1q2_score": 0.8241774033704943, "lm_q2_score": 0.8418256393148981, "openwebmath_perplexity": 2349.933248255314, "openwebmath_score": 0.6233665943145752, "tag...
php, laravel Title: Phishing Project Sending Email Reworked @Pimgd gave some good feedback on the previous post. I've made the changes that I think best suit my application and am looking to see what people think of this implementation. PhishingController /** * sendEmail * Function mapped to Laravel route. Defines v...
{ "domain": "codereview.stackexchange", "id": 20959, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "php, laravel", "url": null }
reaction-mechanism, experimental-chemistry Title: Why is ethanol not an oxidizer? I am attempting the 2016 Canadian Chemistry Contest Part A, and one of the questions concerns the WHMIS symbols and whether a compound is an oxidizer or not. The correct answer is that ethanol would not require a WHMIS oxidizer symbol. ...
{ "domain": "chemistry.stackexchange", "id": 8502, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "reaction-mechanism, experimental-chemistry", "url": null }
java, game, swing Game game = new Game(); this.add(game.getGamePanel()); this.setResizable(false); this.setVisible(true); } public static void main(String[] args) { EventQueue.invokeLater(() -> { try{ GameFrame tg = new GameFrame(); ...
{ "domain": "codereview.stackexchange", "id": 24230, "lm_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, game, swing", "url": null }
programming, qiskit, hhl-algorithm Title: Function in Qiskit to get the quantum circuit Is there any way to view the quantum circuit of pre implemented quantum algorithm in Qiskit? In the Qiskit textbook, there is an example given for HHL algorithm. Is there any function in Qiskit which lets us see the quantum circuit...
{ "domain": "quantumcomputing.stackexchange", "id": 2566, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "programming, qiskit, hhl-algorithm", "url": null }
python, programming-challenge, python-3.x, matrix Title: Matrix rotation algorithm - follow-up In a response to this post I wrote a solution in Python. It passed all the test cases given, so I would like help making it more pythonic and reducing the almost repeated lines. Link to the source of the question on HackerRa...
{ "domain": "codereview.stackexchange", "id": 15585, "lm_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, programming-challenge, python-3.x, matrix", "url": null }
quantum-state, pauli-gates, stabilizer-code, clifford-group, stabilizer-state $$ It is easy to check that $(6)$ defines a symplectic bilinear form. Its significance lies in the observation that $U,V\in P(n)$ commute if and only if $\langle h(U),h(V)\rangle = 0$. Now, $S_\psi$ is an abelian subgroup of $P(n)$, so the i...
{ "domain": "quantumcomputing.stackexchange", "id": 3298, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "quantum-state, pauli-gates, stabilizer-code, clifford-group, stabilizer-st...
quantum-gate, quantum-state, circuit-construction Title: How to calculate circuit depth properly? Is the circuit depth the longest sequence of gates applied on one of the qubits? Or is it something more complicated? The circuit depth is the length of the longest path from the input (or from a preparation) to the outpu...
{ "domain": "quantumcomputing.stackexchange", "id": 5327, "lm_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, quantum-state, circuit-construction", "url": null }
.net, image, animation, f#, graphics Overall I very much like this code, but I want to see the abstraction it performs taken to it's logical conclusion.
{ "domain": "codereview.stackexchange", "id": 33483, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": ".net, image, animation, f#, graphics", "url": null }
javascript, jquery, plugin, graphics for(var y=0; y<16; y++) { for(var x=0; x<8; x++) { if (template[y][x] == 1) data.ctx.fillRect(location[0] + x, location[1] + y, 1, 1); } } } })(jQuery); You could use a bit mo...
{ "domain": "codereview.stackexchange", "id": 393, "lm_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, plugin, graphics", "url": null }
c++ switch (value) { case GPIO_IN: direction_ << "in" << endl; if (!direction_.good()) throw runtime_error("Error writting to direciton file stream."); break; case GPIO_OUT: direction_ << "out" << endl; if (!direction_.good(...
{ "domain": "codereview.stackexchange", "id": 4131, "lm_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 }
c# I think the unsafe is not needed but the person who wrote this originally claims he was getting intermittent errors during run-time when in production environments when it was not marked unsafe. Was he right about needing unsafe or did he have a problem elsewhere that was just fixed at the same time that made it lo...
{ "domain": "codereview.stackexchange", "id": 3542, "lm_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 }
noise, signal-detection, snr, information-theory I found that H1 decreases with increasing SNR but the reverse happens for H2. Is this trend correct? According to the link you provided: $H(error) = H(y-\hat{y}) = H(Var[y]+Var[\hat{y}])$. While $Var[y]$ decreases with increasing of SNR, $Var[\hat{y}]$ stays the same...
{ "domain": "dsp.stackexchange", "id": 2024, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "noise, signal-detection, snr, information-theory", "url": null }
python, programming-challenge, ascii-art, fractals, python-2.x A quick run of size 4 gives us the correct output. And subtracting from 4 each time gives us the correct output too. >>> piramid_range(4) [1, 2, 3, 4, 3, 2, 1] >>> [4 - i for i in piramid_range(4)] [3, 2, 1, 0, 1, 2, 3] and so adding this all together, wi...
{ "domain": "codereview.stackexchange", "id": 18401, "lm_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, programming-challenge, ascii-art, fractals, python-2.x", "url": null ...
molecules, molecular-structure, lewis-structure, radicals However, when there are an odd number of electrons, it is clear there will be one unpaired spin, and it is not relevant whether what the spin orientation is for these cases. That being said, and somewhat outside the scope of this question, Lewis structures ca...
{ "domain": "chemistry.stackexchange", "id": 5549, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "molecules, molecular-structure, lewis-structure, radicals", "url": null }
soft-question, neutrinos, weak-interaction Not so easy carrying around a mini-black hole with the mass of Jupiter. Also, actually collecting these neutrinos is going to be a hard task, as the crosssection of neutrinos from the sun that have bottle-sized stable orbits (that are trapped by our black hole) is probably ve...
{ "domain": "physics.stackexchange", "id": 77267, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "soft-question, neutrinos, weak-interaction", "url": null }
newtonian-mechanics $$a=\frac{(m_1-m_2)g}{m_1+m_2}$$ Where m1 exceed m2, id est $m_1 > m_2$ The load $m_2$ never changes, whereas $m_1$ is changed by us. Question: why $a'$ does not equal to $a$, besides $a'$ does not exceed $a$, it is less than it. There are two effects in an actual experiment that your expression ...
{ "domain": "physics.stackexchange", "id": 67553, "lm_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", "url": null }
ros-kinetic So changing the algorithm used is a matter of changing the configuration of the planning request adapters. For MoveIt configurations generated by the MoveIt Setup Assistant, that can be done by editing the ompl_planning_pipeline.launch.xml file. Specifically, change this line and replace AddTimeParameteriz...
{ "domain": "robotics.stackexchange", "id": 33231, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros-kinetic", "url": null }
quantum-circuit, pauli-gates, deferred-measurement Phasing bits does nothing, so you can then just delete the Z gate and also simplify the Y into an X: Looking back at a high level, you can see that this makes sense. The X matters when you're measuring $\langle Y \rangle$, but it doesn't matter when you're measuring ...
{ "domain": "quantumcomputing.stackexchange", "id": 5469, "lm_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-circuit, pauli-gates, deferred-measurement", "url": null }
cell-biology, antibiotics, agriculture, antibiotic-resistance If the cells themselves are the target of mass-scale culturing, e.g., cultured meat, however, then there will indeed be opportunities for antibiotic resistant pathogens to be developed and spread, particularly as increasing scale of operation offers more op...
{ "domain": "biology.stackexchange", "id": 11346, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "cell-biology, antibiotics, agriculture, antibiotic-resistance", "url": null }
qiskit, clifford-group, stabilizer-state, gottesman-knill Title: Stabilizer State - efficient calculation of measurement probabilities - Qiskit I would like to calculate the probability of measuring some state $U\rho U^\dagger$ in the basis state $b \in (0,1)^{\otimes n}$, i.e. $<b|U\rho U^\dagger|b>$. Now, according ...
{ "domain": "quantumcomputing.stackexchange", "id": 4553, "lm_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, clifford-group, stabilizer-state, gottesman-knill", "url": null ...
7, 11, 13: As 37, but instead of adding each block of 3 digits, take an alternating sum. 12-386+125-901 = -1150. 12386125901 is a multiple of 7, 11 or 13 if and only if -1150 is. (-1150 is not a multiple of any of those numbers). Works because 7x11x13 = 1001. 73 or 137: As 7, 11, 13, but blocks of 4 digits instead of ...
{ "domain": "ggc-project.de", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9697854164256365, "lm_q1q2_score": 0.808146031653765, "lm_q2_score": 0.8333245870332531, "openwebmath_perplexity": 863.7656569312936, "openwebmath_score": 0.5505184531211853, "tags": ...
reductions, satisfiability, np Title: Half-SAT intractability proof I've been struggling lately with a problem that was in my last complex algorithms exam, and I can't find a solution. The problem is as follows: Half-SAT is a problem where C is a CNF boolean formula with n variables and m clauses, where m is even. We...
{ "domain": "cs.stackexchange", "id": 5122, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "reductions, satisfiability, np", "url": null }
ros I have checked the TF, the related topics such as base_link_ground_truth, amcl_pose, all correct. I cannot figure it out .. The only difference is that the fake_localization is updated at a only 1 Hz in frequency. Originally posted by tianb03 on ROS Answers with karma: 710 on 2013-03-20 Post score: 1 Solved. I h...
{ "domain": "robotics.stackexchange", "id": 13463, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros", "url": null }
newtonian-mechanics, newtonian-gravity, orbital-motion, rocket-science, satellites Title: How do scientists place satellites into orbit? How do scientists place satellites into orbit? How do they calculate the gravity acting on the spacecraft in order to generate exact opposite force by means of Kinetic energy to keep...
{ "domain": "physics.stackexchange", "id": 12064, "lm_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, rocket-science, satellites...
newtonian-mechanics, forces, rotational-dynamics, friction, free-body-diagram But suppose you split your block into two parts, and you put a layer of oil in between the two parts like this: At the contact with the ground the friction $\mu_1$ is large, while at the oil layer between the two blocks the friction $\mu_2$...
{ "domain": "physics.stackexchange", "id": 64417, "lm_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, rotational-dynamics, friction, free-body-diagram", ...
qiskit, noise Then it is possible to further customize the noise model using the methods and attributes of the NoiseModel class. For example, this piece of code generates a noise model from ibmq_quito and alters one of its readout errors: from qiskit import IBMQ from qiskit.providers.aer.noise import NoiseModel, Reado...
{ "domain": "quantumcomputing.stackexchange", "id": 4155, "lm_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, noise", "url": null }
the number of options (combinations, variations ) based on the number of elements, repetition and order of importance. Since the 3 digit number must be divisible by 5, we can have 0 or 5 at the units place. In how many ways can 3 red marbles, 7 blue marbles, and 5 green marbles be rranged? A Powerball ticket has you pi...
{ "domain": "frauenarztpraxis-schorndorf.de", "id": null, "lm_label": "1. Yes\n2. Yes", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9724147225697743, "lm_q1q2_score": 0.832242259214479, "lm_q2_score": 0.8558511506439708, "openwebmath_perplexity": 466.3527600399682, "openwebmath_score": 0.486772298812...
a summary of the main ideas in course MATH 214-2: Integral Calculus. I may keep working on this document as …The Legal Form of a Triple Integral Triple integrals follow the form shown below: ∫∫ ∫ ( , , ) 2( , ) 1( , ) 2( ) 1( ) . The vector equation of a straight line in three-dimensional space is x= a+ubwith u∈ (−∞,∞)...
{ "domain": "e3p-ltd.org", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9852713878802044, "lm_q1q2_score": 0.8294267257756476, "lm_q2_score": 0.8418256492357359, "openwebmath_perplexity": 833.9997947007021, "openwebmath_score": 0.8829783201217651, "tags"...
c++, template, c++17 I’m not sure a template template parameter is necessary here, or even a good idea. It prevents the function from being used with containers that aren’t templates… or that aren’t the kind of templates you expect. There is a standard definition for “container”. (There’s also a more-or-less matching ...
{ "domain": "codereview.stackexchange", "id": 38460, "lm_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, c++17", "url": null }
special-relativity, collision, time-dilation Solve the three equations in three unknowns and then you have everything known in the initial frame. Once you have that, then you can simply transform to any other frame of interest using the Lorentz transform. I leave the messy details as an exercise for the interested rea...
{ "domain": "physics.stackexchange", "id": 86682, "lm_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, collision, time-dilation", "url": null }
species-identification, entomology, arachnology Title: Help identify this mite? I saw a decimal-sized dot walking on my hand. I wanted to know what this is, so I got it onto some paper and sandwiched below a piece of clear tape so I could keep it in place and photograph it. However it's so small that even with my came...
{ "domain": "biology.stackexchange", "id": 10591, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "species-identification, entomology, arachnology", "url": null }
satisfiability, sat-solvers, smt-solvers Notice that the Simplex algorithm requires each $x_i$ to be non-negative. If you have signed numbers, you can transform them into two non-negative numbers for the simplex algorithm: $$ x_i = x_i' - x_i'' \text{ with } 0 \leq x_i', x_i'' $$
{ "domain": "cs.stackexchange", "id": 11819, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "satisfiability, sat-solvers, smt-solvers", "url": null }
kalman-filters The usual reason is because the model has some states that are not directly driven by the process noise. For example, suppose your states are: $$ \mathbf{x}_k = \left [ \begin{array}{c} d_k\\ v_k\\ a_k \end{array} \right] $$ where $d_k$ is displacement, $v_k$ is velocity, and $a_k$ is acceleration all ...
{ "domain": "dsp.stackexchange", "id": 4047, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "kalman-filters", "url": null }
quantum-mechanics, mathematical-physics, operators, hilbert-space, dirac-delta-distributions $$U\psi(x)=(e^{-itH}\psi)(x)=\frac{1}{\sqrt {4\pi it}}\int_\Bbb{R} e^{i\frac{(x-y)^2}{4t}}\psi(y)dy,$$ which shows that $U(t)$ may be represented as an integral operator in position representation with kernel $K(x)=\dfrac{1}{\...
{ "domain": "physics.stackexchange", "id": 16942, "lm_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, mathematical-physics, operators, hilbert-space, dirac-delta-dis...
algorithms, graphs Title: Canonical form for a graph I am trying to find a description for canonical form (labelling) for a graph. Specifically, how do we arrive at canonical form for a given graph? Graph canonization is a a procedure that takes a graph $G$ and returns an isomorphic graph $C(G)$, we the promise that $...
{ "domain": "cs.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": "algorithms, graphs", "url": null }
javascript, game codePegLoop: for (var codePegIdx=0;codePegIdx<codePegs.length;codePegIdx++) { var codePeg = codePegs[codePegIdx]; //evaluate each gamePeg, stopping if we hit an exact match. gamePegLoop: for (var gamePegIdx=0;gamePegIdx<gamePegs.length;gamePegIdx++) { var gamePeg = gamePegs[ga...
{ "domain": "codereview.stackexchange", "id": 5345, "lm_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", "url": null }
electromagnetism If it actually does do this, please explain how that is so. Yes a magnet can damage a compass. The compass needle is a ferromagnetic material. The degree to which a ferromagnetic material can "withstand an external magnetic field without becoming demagnetized" is referred to as its coercivity. An...
{ "domain": "physics.stackexchange", "id": 36676, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electromagnetism", "url": null }
Thus, for a non-negative random variable, $E[X]$ can be interpreted as the area of the region lying above its CDF $F(x)$ and below the line at height 1 to the right of the origin. The standard formula $$E[X] = \int_0^\infty x\mathrm dF(x)$$ can be thought of as computing this area by dividing it into thin horizontal st...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9845754492759499, "lm_q1q2_score": 0.8072468560648906, "lm_q2_score": 0.8198933425148214, "openwebmath_perplexity": 150.49721279705284, "openwebmath_score": 0.9304583668708801, "ta...
c++, reinventing-the-wheel, image, template, c++20 template<std::size_t dim, class T> constexpr auto n_dim_vector_generator(T input, std::size_t times) { if constexpr (dim == 0) { return input; } else { auto element = n_dim_vector_generator<dim - ...
{ "domain": "codereview.stackexchange", "id": 41582, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, reinventing-the-wheel, image, template, c++20", "url": null }
thermodynamics, enthalpy, entropy Title: Temperature dependency of enthalpy H and entropy S In textbooks, I often read that the temperature dependency of the enthalpy of reaction $\Delta_\mathrm{r}H$ and the entropy of reaction $\Delta_\mathrm{r}S$ can be neglected (in a limited $T$-range). But why is this valid? What...
{ "domain": "chemistry.stackexchange", "id": 11832, "lm_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, enthalpy, entropy", "url": null }
java, algorithm, bitwise, number-systems class SolutionTest { @Test void one() { Solution solution = new Solution(); assertEquals("00000000000000000000000000000001", solution.toBinaryString(1)); } @Test void minusOne() { Solution solution = new Solution(); assertEq...
{ "domain": "codereview.stackexchange", "id": 32472, "lm_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, bitwise, number-systems", "url": null }
np-complete, traveling-salesman We remove the edges to the sink node $t$. Instead, we add paths that pass through the blank nodes that may potentially not be visited due to visits of clause nodes. In the example above, the added edges form the following structure. In the example above, we ask whether there is a Hamil...
{ "domain": "cs.stackexchange", "id": 14501, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "np-complete, traveling-salesman", "url": null }
## Analytic solution Now if we fix n, we can think of the equation above as defining t as a function of k. Can we solve for t exactly? I suspected that there might be a solution in terms of the Lambert W function because if you divide by t and exponentiate, you get an equation that smells like the equation z = w exp(...
{ "domain": "johndcook.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9780517475646369, "lm_q1q2_score": 0.801898107854701, "lm_q2_score": 0.8198933337131077, "openwebmath_perplexity": 821.6639504124951, "openwebmath_score": 0.8268793821334839, "tags": n...
quantum-field-theory, symmetry, group-theory, conformal-field-theory, wick-rotation There is no relation here between the Poincare and Mobius groups. The authors simply use the Poincare group as the QFT analogue of the Mobius group that shows up in a CFT.
{ "domain": "physics.stackexchange", "id": 87083, "lm_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, symmetry, group-theory, conformal-field-theory, wick-rotatio...
#### Definition 31 A function $f:\mathbb{R}^n\to\mathbb{R}$ is convex if its domain is a convex set and $\forall \mathbf{x}, \mathbf{y}$ in the domain, $\lambda \in[0, 1]$ , $f(\lambda \mathbf{x} + (1-\lambda)\mathbf{y}) \leq \lambda f(\mathbf{x}) + (1-\lambda)f(\mathbf{y})$ Loosely, convexity means that the function ...
{ "domain": "gitbook.io", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9911526446557307, "lm_q1q2_score": 0.8080198311564666, "lm_q2_score": 0.8152324826183822, "openwebmath_perplexity": 1310.4588995867286, "openwebmath_score": 0.9581031203269958, "tags": nu...
python, python-2.x For starters, you don't need to use a dict for this, a list will do just fine. You're giving yourself a constant number of chambers, nothing new ever enters, and nothing ever gets deleted. You may have done this because you've got a C or Java background, know about linked lists, and are a bit worrie...
{ "domain": "codereview.stackexchange", "id": 18569, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python, python-2.x", "url": null }
everyday-chemistry Title: What are chemical bonds made of, and how do they form? All atoms are linked together by chemical bonds, but what are the bonds themselves made of? I'm sorry that's a stupid question, but I'm only 14, and haven't entered high school yet, and my science class isn't really teaching me much I hav...
{ "domain": "chemistry.stackexchange", "id": 13791, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "everyday-chemistry", "url": null }
ros-kinetic, tf2, quaternion, yaw, roscpp Title: Rotate quaternion by body yaw How to change a quaternion's body-fixed yaw? Using Matrix3x3's getRPY and then setRPY doesn't work, because this is about the axes, fixed to the initial orientation, so it's fixed yaw, not body yaw. Using getEulerYPR and then setEulerYPR d...
{ "domain": "robotics.stackexchange", "id": 31821, "lm_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, tf2, quaternion, yaw, roscpp", "url": null }
ros-kinetic -- Configuring incomplete, errors occurred! See also "/home/robot/ws/underlay_isolated/build_isolated/orogen/install/CMakeFiles/CMakeOutput.log". <== Failed to process package 'orogen': Command '['/home/robot/ws/underlay_isolated/install_isolated/env.sh', 'cmake', '/home/robot/ws/underlay_isolated/src/...
{ "domain": "robotics.stackexchange", "id": 30003, "lm_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 }
beginner, c, strings /* Run through a file list */ case 'f': { FILE *passFile; char *line = NULL; size_t len = 0; ssize_t read;
{ "domain": "codereview.stackexchange", "id": 24996, "lm_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, strings", "url": null }
ros, compile, build, qt5, qtcreator Original comments Comment by lucasw on 2016-01-20: catkin_make uses cmake, so the CMakeLists.txt file used by catkin_make could call the qmake process using a special cmake command. And there would have to be special cmake commands if you have dependencies in cmake on the output of...
{ "domain": "robotics.stackexchange", "id": 23496, "lm_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, compile, build, qt5, qtcreator", "url": null }
newtonian-mechanics, forces, classical-mechanics, conservation-laws Or is a system with friction force always non-isolated? No. The pendulum example system just described is by definition an isolated system, and yet it is subject to non conservative (friction) forces. I'm confused because we were never told which el...
{ "domain": "physics.stackexchange", "id": 59292, "lm_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, classical-mechanics, conservation-laws", "url": nul...
javascript, jquery, beginner if (data_per_folder[current_folder.attr('id')].data_per_page[1] == undefined) // no data for first page { fillAttachmentsPerPage(1); } else { populatePage(1); } }; function populatePage(pageNum) { $("#files_gallery")[0].innerHTML = data_per_folder[current_f...
{ "domain": "codereview.stackexchange", "id": 1176, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "javascript, jquery, beginner", "url": null }
machine-learning, overfitting Title: What to choose: an overfit model with higher evaluation score or a non-overfit model with lower one? For lack of a better term, overfit here means a higher discrepancy between train and validation score and non-overfit means a lower discrepancy. This "dilemma" just showed in neural...
{ "domain": "datascience.stackexchange", "id": 6695, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "machine-learning, overfitting", "url": null }
c#, regex, bitwise You'll notice that this can be trivially extended to also work for long or any number representation you can convert to a string binary representation. I appreciate that's a pretty small amount of code to review but would be intrigued as to whether there's anything I could improve. For the record, m...
{ "domain": "codereview.stackexchange", "id": 19917, "lm_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#, regex, bitwise", "url": null }
machine-learning, applications, recommender-system Also, it is obvious that a user is more likely to click on a restaurant if he tends to like it the most. [Restaurant features being Cost-for-two, cuisines, ratings, etc] So here, a user is a data point and so is the restaurant. So, let's say the distance between the u...
{ "domain": "ai.stackexchange", "id": 231, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "machine-learning, applications, recommender-system", "url": null }
• interchanging any two colours with each other, or interchanging any two numbers • swapping any two rows or columns • rotating the board I have several questions relating to colour sudokus: 1. What is the minimum number of squares which must be filled in order to determine a unique solution? I have done it with 5, b...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9833429599907709, "lm_q1q2_score": 0.8062363441414757, "lm_q2_score": 0.819893340314393, "openwebmath_perplexity": 398.37008959043305, "openwebmath_score": 0.6806429624557495, "tag...
Since $N$ is an integer, $C+1$ must be divisible by 4. The first time this happens is when $C = 3.$ Therefore: . $N \;=\;6(3) + 4 + \frac{3(3+1)}{4} \quad\Rightarrow\quad \boxed{N \:=\:25}$ Awesome Soroban! I was given this problem in one of my classes and found it very interesting. I thought it would be nice to shar...
{ "domain": "mathhelpforum.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9873750496039276, "lm_q1q2_score": 0.8744504114504766, "lm_q2_score": 0.8856314647623016, "openwebmath_perplexity": 1140.0236424345078, "openwebmath_score": 0.840115487575531, "tag...
• @ThomasM You're not missing anything. The principal branch of the arccosine is typically defined so that $0\le \arccos(\theta)\le \pi$. In the spirit of this development, in going from $(5)$ to $(6)$ and from $(8)$ to $(9)$ there was a tacit assumption that the branch of the arccosine is judiciously selected by the u...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9835969698879861, "lm_q1q2_score": 0.8300526715684259, "lm_q2_score": 0.8438951084436076, "openwebmath_perplexity": 370.69903438309274, "openwebmath_score": 0.9871770739555359, "ta...
quantum-field-theory, resource-recommendations, gauge-theory, renormalization, brst Title: Reference for proof of renormalizability I have been trying to truly understand the renormalizability of quantum (i.e., without anomalies) gauge theories (after which I will focus on the case with spontaneous symmetry breaking)....
{ "domain": "physics.stackexchange", "id": 58925, "lm_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, resource-recommendations, gauge-theory, renormalization, brs...
c++, performance, graphics, opengl glVertexAttribDivisor(3, 1); glVertexAttribDivisor(4, 1); glVertexAttribDivisor(5, 1); glVertexAttribDivisor(6, 1); glVertexAttribDivisor(7, 1); glVertexAttribDivisor(8, 1); glVertexAttribDivisor(9, 1); glVertexAttribDivisor(10, 1); glUseProgram(basic...
{ "domain": "codereview.stackexchange", "id": 44251, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, performance, graphics, opengl", "url": null }
newtonian-mechanics, collision, free-body-diagram, dirac-delta-distributions Title: Mathematical expression of impulsive forces during a collision I'm facing with problem regarding collision between bodies. Specifically, I need to understand the impulsive forces that arises during a collision. Sometime ago, I posted t...
{ "domain": "physics.stackexchange", "id": 55971, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "newtonian-mechanics, collision, free-body-diagram, dirac-delta-distributions", "...
ros, navigation, hokuyo-node, transform Comment by Ivan Dryanovski on 2011-05-29: The static tf looks ok. Are you sure the laser is publishing in the "laser" frame? The default for hokuyo is "laser". Also can you edit your original Q to include the output of tf_monitor? Comment by D_mangus on 2011-05-29: I did indeed ...
{ "domain": "robotics.stackexchange", "id": 5696, "lm_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, hokuyo-node, transform", "url": null }
considering is that someone made a mistake. But it would be wrong to say “I derived something from this proven fact, and now it's wrong.” Instead you'd have to concede that you believed some statement to be proven, when in fact it was not proven. That's because by definition, a proof can only derive true statements. An...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9814534365728416, "lm_q1q2_score": 0.8135648379880788, "lm_q2_score": 0.8289388040954683, "openwebmath_perplexity": 567.1055099581736, "openwebmath_score": 0.6970574259757996, "tag...
ros E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-jade-geometric-shapes/ros-jade-geometric-shapes_0.4.3-0trusty-20150521-0322-+0000_amd64.deb 403 Forbidden [IP: 64.50.233.100 80] E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-jade-geometry-tutorials/ros-jade-geometry-t...
{ "domain": "robotics.stackexchange", "id": 22501, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros", "url": null }
performance, php, mysql, pdo OUTER JOIN Since you've said that it is possible for a client to have an active session, but no user associated with it, then you would need to to use an outer join, which mysql seems to support, to connect to the users table. The explanation in the documentation isn't overly easy to foll...
{ "domain": "codereview.stackexchange", "id": 21204, "lm_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, php, mysql, pdo", "url": null }
• Maybe I can try it in a more general example. Let f(x)=d/dx F(x The indefinite integral ∫ f(x) dx = F(x) + c Now, if I want to find the definite integral (area under the curve) ∫ f(x) dx from a to b, the fundamental theorem tells us that this is the same thing as the indefinite integral evaluated at the endpoints. So...
{ "domain": "khanacademy.org", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9755769063954521, "lm_q1q2_score": 0.8043260071597194, "lm_q2_score": 0.8244619177503205, "openwebmath_perplexity": 257.95561389751833, "openwebmath_score": 0.826410174369812, "tags"...
ros, qtcreator Title: QtCreator works very slow with ROS on Ubuntu 16 (14 OK) Hi! Anybody has solution for this problem? When I moved to Ubuntu 16 and ROS Kinetic from 14 and Indigo, I couldn't use QtCreator because of long latencies of GUI, it is very slow, when using autocompletion, going to definitions, refactorin...
{ "domain": "robotics.stackexchange", "id": 27945, "lm_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, qtcreator", "url": null }
javascript, jquery, plugin the functionNames make my eyes glaze over, data tables variables should be sorted and tabbed in my mind: var functionNames = [ { name: "matrix", type: functionParamTypes.length}, { name: "matrix3d", type: functionParamTypes.length}, ...
{ "domain": "codereview.stackexchange", "id": 6455, "lm_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, plugin", "url": null }
-169) 5. Then compute the values of maximum vertical shear V and maximum positive bending moment M. the length of the beam is found by calculating the area of the shear diagram. 80 • For block shear φbs = 0. Fixed-Fixed Beams (Shear & Moment Diagrams) Fixed-Fixed beams are common in the interior section of a building (...
{ "domain": "versoteano.it", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.975946444307138, "lm_q1q2_score": 0.8111510941039626, "lm_q2_score": 0.8311430394931456, "openwebmath_perplexity": 1067.4010244498343, "openwebmath_score": 0.6429223418235779, "tag...
# Limits and substitution As in @RobertZ's answer to this question, we often perform substitutions when evaluating limits. For instance, if you're asked to show that $$L = \lim_{t \to 0} \frac{\sin t^3}{t^3} = 1,$$ it's pretty common to say "Let $x = t^3$; then as $t \to 0$, we have $x \to 0$, so $$L = \lim_{x \to 0} ...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9805806518175515, "lm_q1q2_score": 0.8519547282254399, "lm_q2_score": 0.8688267779364222, "openwebmath_perplexity": 201.83231004638074, "openwebmath_score": 0.9307198524475098, "ta...
c, embedded Title: Software-implemented Phase-shifted PWM for Heater The provided code controls a 3-phase heater by generating a PWM signal (in software) which controls 3 triacs that are connected to the heater. Between the MCU (running Zephyr RTOS) and the triacs is a PCF8574 IO extender. The idea is to simply tell t...
{ "domain": "codereview.stackexchange", "id": 40771, "lm_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, embedded", "url": null }
c++, c++11, portability, connect-four SCENARIO("Play happy path") { GIVEN("An empty board") { Game game(6, 7); WHEN("The player chooses the first column") { auto play_result = game.play(0); THEN("The game accepts the play") { REQUIRE...
{ "domain": "codereview.stackexchange", "id": 43199, "lm_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, portability, connect-four", "url": null }
python, python-3.x, collatz-sequence def collatz(number: int) -> List[int]: """ Returns the collatz sequence of a number. :param number: Integer > 0 :return: Collatz sequence starting with number """ if not isinstance(number, int): raise TypeError(f"Collatz sequence doesn't make sense f...
{ "domain": "codereview.stackexchange", "id": 36441, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python, python-3.x, collatz-sequence", "url": null }
students’ test scores (95, 92, 90, 90, 83, 83, 83, 74, 60, and 50), identify the mean, median, mode, range, variance, and standard deviation for the sample. If you continue browsing the site, you agree to the use of cookies on this website. Variation or Spread of Distributions Range It compares the minimum score with t...
{ "domain": "ajret.org", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9683812327313545, "lm_q1q2_score": 0.8360922418081328, "lm_q2_score": 0.8633916205190225, "openwebmath_perplexity": 1227.6743972839017, "openwebmath_score": 0.6617577075958252, "tags":...
ros, catkin, ros-kinetic, bash Originally posted by MCmobil on ROS Answers with karma: 33 on 2020-05-19 Post score: 0 This is the content of the end of my bashrc file: source /opt/ros/kinetic/setup.bash #source ~/catkin_ws/devel/setup.bash source ~/catkin_ws/devel_isolated/setup.bash source ~/src/setup_px4.sh source...
{ "domain": "robotics.stackexchange", "id": 34976, "lm_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, catkin, ros-kinetic, bash", "url": null }
homework-and-exercises, general-relativity, gravity, speed-of-light, quantum-gravity position of the source, but only toward its position extrapolated from this retarded data...Indeed, it can be rigorously proven that no gravitational influence in general relativity can travel faster than the speed of light" This reso...
{ "domain": "physics.stackexchange", "id": 79043, "lm_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, general-relativity, gravity, speed-of-light, quantum-gravi...
c++, serialization, type-safety cursorPos += sizeof(Num); } template<typename Num, typename NumArg> void AppendNumberNarrowCast(std::vector<std::byte>& inOutByteStream, NumArg number) { static_assert(std::is_convertible_v<NumArg, Num>, "Argument type should be convertible to the data type"); ...
{ "domain": "codereview.stackexchange", "id": 45026, "lm_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++, serialization, type-safety", "url": null }
$$r^2 + h^2 = x^2 \ \ or \ \sqrt{r^2 + h^2} = x$$ given that the equation for surface area of a cone is: $$A = πr (r+\sqrt{h^2+r^2})$$ we can simply replace the$\sqrt{r^2 + h^2}$ part of the surface area equation with the value for x. The surface area equation finally simplifies to: $$175.84=\pi r^2 + 10\pi r$$ mov...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9825575167960731, "lm_q1q2_score": 0.812291895878093, "lm_q2_score": 0.8267118026095991, "openwebmath_perplexity": 329.0463153766712, "openwebmath_score": 0.8806686401367188, "tags...
python, python-2.x, caesar-cipher Data structures for characters set Storing characters set in the form of the list in order to use index method every time you what to figure out a position of the element is not the best choice in case of performance. You should probably use additional dict for excample: index_of = di...
{ "domain": "codereview.stackexchange", "id": 22341, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python, python-2.x, caesar-cipher", "url": null }
yield. Of this amount,$4,000 is paid in cash, and $613.90 is discount amortization. Calculate the effective interest rate per period given the nominal interest rate per period and the number of compounding intervals per period. Formula : i = [1 + (r/n)] n - 1 Where, r = Nominal Annual Interest Rate n = Number of paymen...
{ "domain": "stcc.org", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9773707973303966, "lm_q1q2_score": 0.8383575020292567, "lm_q2_score": 0.8577681104440172, "openwebmath_perplexity": 1721.1710578497934, "openwebmath_score": 0.654566764831543, "tags": null,...
genetics, evolution, molecular-genetics after all this article was so innovative for me . I think it's a good explanation for self replication of molecules simpler than RNA. http://www.nanowerk.com/nanotechnology-news/newsid=40896.php "Maslov and Tkachenko's model imagines some kind of regular cycle in which condition...
{ "domain": "biology.stackexchange", "id": 5979, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "genetics, evolution, molecular-genetics", "url": null }
immunology, bacteriology, antibody, epidemiology, immune-system Title: Why don't phagocytes eliminate mutualistic foregin organisms residing in our body? Many organisms residing in our body and have a symbiotic mutualistic relationship with our body e.g. organisms in our small intestines. How come our body does not ac...
{ "domain": "biology.stackexchange", "id": 6673, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "immunology, bacteriology, antibody, epidemiology, immune-system", "url": null }
forces, pressure Title: determine temperature at which pita bread will expand in a toaster suppose you have a pita pocket of radius 5cm or .05m. We will model the pita pocket as consisting of disk with a layer of air of volume V which is contained by the surface of the bread. We will assume that no cracks or perforat...
{ "domain": "physics.stackexchange", "id": 1417, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "forces, pressure", "url": null }
gravity, mass, equivalence-principle, field-theory And finally, it will also act as inertia. For example, a packet of energy carried by a field behaves as a particle. For example, a magnetic monopole may be imagined as a nontrivial localized solution to some field equations including scalar and gauge fields. A magneti...
{ "domain": "physics.stackexchange", "id": 1906, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "gravity, mass, equivalence-principle, field-theory", "url": null }
quantum-mechanics, schroedinger-equation Title: Changing widths of potential wells I have the following question presented to me: A particle of mass M is moving in a one-dimensional infinite potential well of length $a$, with walls at $x=0$ and $x=a$, described by the potential: $ V(x)= \begin{cases} 0, &0\leq x\leq...
{ "domain": "physics.stackexchange", "id": 57704, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "quantum-mechanics, schroedinger-equation", "url": null }
# Classic confidence interval based on standard error of estimation predict(fit, list(x = 0.1), interval = "c") # 0.893388 1.54155 # STEP 3: NOW BY BOOTSTRAP 95%-PREDICTION INTERVAL B <- 1000 pred <- numeric(B) for (i in 1:B) { boot <- sample(n, n, replace = TRUE) fit.b <- lm(y ~ x, data = data[boot,]) pred[i] <- pred...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9546474181553805, "lm_q1q2_score": 0.8095102330483074, "lm_q2_score": 0.8479677602988601, "openwebmath_perplexity": 2071.033415054623, "openwebmath_score": 0.9626978039741516, "tag...
quantum-field-theory, path-integral, gauge If you know the intention of lecture, please give me some detail explanation. Comments or example of computing QCD loops without ghost term which gives physical meaning are also welcome. There are indeed ghost-free gauges. An important example are the axial gauges, $$n\cdot ...
{ "domain": "physics.stackexchange", "id": 42726, "lm_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, path-integral, gauge", "url": null }
complexity-theory, closure-properties For item (e): Closed under left polynomial composition: Consider an arbitrary $f(n) = \log^{k_1} n$ and an arbitrary polynomial $p(n)$. Then, exists some $k_2$ such that $p(n) \leq n^{k_2}$, for sufficiently large $n$. Therefore, for sufficiently large $n$, $p(f(n)) \leq f(n)^{k_...
{ "domain": "cs.stackexchange", "id": 18160, "lm_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, closure-properties", "url": null }
logistic-regression, prediction, correlation Title: Using a feature in prediction even if it gets zero as p-value? I created two binary classification based logistic regression models and I got these results: Model 1: Accuracy: 67.51% AUC: 65.21% Model 2: Accuracy: 67,99% AUC: 65,70% The second mod...
{ "domain": "datascience.stackexchange", "id": 5122, "lm_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, prediction, correlation", "url": null }
safety, home-experiment, amines still haven't figured out if I can pour the diluted mixture of water and cyclohexylamine down the drain I'm almost positive that the answer is no. Besides you and the neighborhood, it might react with the pipes or what's stuck in the pipes and create longer term toxicity problems wh...
{ "domain": "chemistry.stackexchange", "id": 1538, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "safety, home-experiment, amines", "url": null }
electrostatics, electric-fields, gauss-law, conductors If you think of statics as the long time limit of dynamics then you don't have to go conceptual. An Ohmic material literally does have a nonzero current where there is a nonzero electric field. But that current causes the charge to go away, you can imagine places ...
{ "domain": "physics.stackexchange", "id": 53491, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electrostatics, electric-fields, gauss-law, conductors", "url": null }
python, beginner, python-3.x, game, turtle-graphics Score.speed(1000) Paddle_1.speed(1000) Ball.speed(1000) Paddle_2.speed(1000) Score.ht() Score.color('white') Paddle_1.color('white') Ball.color('white') Paddle_2.color('white') Score.pu() Paddle_1.pu() Ball.pu() Paddle_2.pu() Score.goto(0, 290) Paddle_2.goto(350,...
{ "domain": "codereview.stackexchange", "id": 39128, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python, beginner, python-3.x, game, turtle-graphics", "url": null }
waves, fourier-transform, frequency, signal-processing ... float fft[1024]; BASS_ChannelGetData(chan, fft, BASS_DATA_FFT2048); // get the FFT data for (x = 0; x<SPECWIDTH / 2; x++) { y = sqrt(fft[x + 1]) * 3 * SPECHEIGHT - 4; // sqrt makes low values more visible //y = fft[x + 1] * 10 * SPECHEIGHT; // linear ...
{ "domain": "physics.stackexchange", "id": 20484, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "waves, fourier-transform, frequency, signal-processing", "url": null }
python, performance, algorithm, complexity for curr_pos_last in range(orig_pos_last, orig_pos_last+num_repeats): random_pos_before_last = random.randint(0, curr_pos_last) chr_list.insert(random_pos_before_last, c) Example output: chr_list = ['c','o','d','e'] chr_counts = {'c': 3, 'o': 1, 'd': 2, 'e': 2} >...
{ "domain": "codereview.stackexchange", "id": 24902, "lm_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, algorithm, complexity", "url": null }