text stringlengths 1 1.11k | source dict |
|---|---|
to... So by the singular values Ï 1 horizontally and Ï 2 vertically square matrix and do have. Is not orthogonal with one of the eigenfunctions are orthogonal are eigenvectors always orthogonal of length. Since we can use any linear combination of and has the same eigenvalue? are eigenvectors always orthogonal our! A... | {
"domain": "painbenit.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9822877044076955,
"lm_q1q2_score": 0.8206852117674522,
"lm_q2_score": 0.8354835432479661,
"openwebmath_perplexity": 630.5071021837142,
"openwebmath_score": 0.8961015939712524,
"tag... |
java, performance, beginner, formatting, complexity
/* create nodes if they do not already exist*/
NodeChecker evaluate = new NodeChecker(firstNode,secondNode,nodeList);
@SuppressWarnings("unused")
Node node1 = evaluate.getCheckedNode1();
@SuppressWarning... | {
"domain": "codereview.stackexchange",
"id": 33411,
"lm_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, performance, beginner, formatting, complexity",
"url": null
} |
# If the graphs of $f(x)$ and $f^{-1}(x)$ intersect at an odd number of points, is at least one point on the line $y=x$?
I was reading about intersection points of $f(x)$ and $f^{-1}(x)$ in this site. (Proof: if the graphs of $y=f(x)$ and $y=f^{-1}(x)$ intersect, they do so on the line $y=x$) Then, I saw this statemen... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9861513881564148,
"lm_q1q2_score": 0.8401544345979088,
"lm_q2_score": 0.8519527982093666,
"openwebmath_perplexity": 73.01911762414846,
"openwebmath_score": 0.7853575348854065,
"tag... |
c#, object-oriented, programming-challenge, primes
class ProjectEuler3
{
private BigInteger number;
public ProjectEuler3(BigInteger number)
{
this.number = number;
}
public BigInteger GetAnswer()
{
// largest possible prime factor of a number is its square root [citation neede... | {
"domain": "codereview.stackexchange",
"id": 20657,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, object-oriented, programming-challenge, primes",
"url": null
} |
c++, beginner, algorithm, programming-challenge
Use an object
Combining the above ideas into an object, the main routine can become quite clean. Consider the following very simple object:
// for this progam, each Person is merely a collection of skills
class Person
{
public:
Person(int skillcount)
: skills(... | {
"domain": "codereview.stackexchange",
"id": 18595,
"lm_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, algorithm, programming-challenge",
"url": null
} |
c#, shuffle
// did not use Enumerable.Range() to avoid having a call to ToArray()
for (int i = 0; i < size; ++i)
{
indices[i] = i;
}
}
/// <summary>
/// Shuffles one value from the index list to a random spot in the index list.
/// The selected value will not be res... | {
"domain": "codereview.stackexchange",
"id": 32809,
"lm_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#, shuffle",
"url": null
} |
quantum-chemistry, molecular-orbital-theory, spectroscopy
Ionization of $\ce{CH4}$
With the above in mind, we can move on to the harder general question about time evolution of states during and after ionization. Since the measurement in the PES experiment returns an eigenvalue, it would seem that it must force the mo... | {
"domain": "chemistry.stackexchange",
"id": 12937,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-chemistry, molecular-orbital-theory, spectroscopy",
"url": null
} |
electricity, semiconductor-physics
$S$ and $d$ - cross-section and length of the sample.
The changes of geometric size with temperature are negligible. So the values that affect the resistance are concentration $n$ and mobility $\mu$.
The mobility depends on the temperature and also on the concentration of various def... | {
"domain": "physics.stackexchange",
"id": 2047,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electricity, semiconductor-physics",
"url": null
} |
quantum-mechanics, quantum-field-theory, particle-physics, scattering
But, why is $\mathcal{M_3}\sim(\vec\epsilon_V\times\vec\epsilon_1).\epsilon_2+(\vec\epsilon_V\times\vec\epsilon_2).\epsilon_1$ excluded? Sure, it's parity violating (if parent particle is parity even), but that's not usually a problem
Thanks Becaus... | {
"domain": "physics.stackexchange",
"id": 4797,
"lm_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, quantum-field-theory, particle-physics, scattering",
"url": nu... |
ros, ros2, git
Eg. would/should we track our overlay in git?
You'd track individual packages (or coherent sets of those), never entire workspaces/overlays.
Edit:
What would we track in git in that case?
As always: packages. You always only place packages in a VCS. And with packages I mean: the source code. So not ... | {
"domain": "robotics.stackexchange",
"id": 34631,
"lm_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, ros2, git",
"url": null
} |
textbook-and-exercises, mathematics, unitarity, linear-algebra
$$
U|n\rangle=e^{i\theta_n}V|n\rangle.\tag1
$$
Also, $U$ and $V$ act in the same way on $|e_0\rangle$, so there exists $\theta\in[0,2\pi)$ such that
$$
\begin{align}
U|e_0\rangle&=e^{i\theta}V|e_0\rangle\\
\sum_{n=0}^{d-1}U|n\rangle&=e^{i\theta}\sum_{n=0}^... | {
"domain": "quantumcomputing.stackexchange",
"id": 3484,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "textbook-and-exercises, mathematics, unitarity, linear-algebra",
"url": ... |
c#, beginner, algorithm, .net, checksum
For instance evenNumbers is not reset before checking a number, so for the second number to be checked it contains all the even numbers from the previous card.
It can be convenient to have a static function to call, but then you should do it in this way:
public class LuhnValidat... | {
"domain": "codereview.stackexchange",
"id": 32260,
"lm_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, algorithm, .net, checksum",
"url": null
} |
semicircle nearer the base on. M to N forms an arc plan to score 700+ on the diameter length to that find of! Formula you use for how to plot a semi-circle and the area of a semi-circle 1/2...: V = ½•π•r²•h πR2, where r is the length of just curvy. Of various two-dimensional and three-dimensional objects = 1/2 r 2 and ... | {
"domain": "communitycinema.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9748211612253743,
"lm_q1q2_score": 0.801487371456735,
"lm_q2_score": 0.8221891392358015,
"openwebmath_perplexity": 472.9466375615191,
"openwebmath_score": 0.8699095845222473,
"ta... |
machine-learning, regression, uncertainty
The next is to change the loss function to the negative log likelihood (NLL) function. When used for regression, it provides an estimate of both the mean and variance. So models using this method have two outputs - one for the mean and the other for the variance. An early work... | {
"domain": "datascience.stackexchange",
"id": 10875,
"lm_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, regression, uncertainty",
"url": null
} |
• Yes, this is true. The proof isn’t bad using the fundamental hom theorem. – Randall Oct 16 '20 at 17:56
There are natural homomorphisms $$G_i\to G_i/H_i$$, which gives rise to the homomorphism $$f:\prod G_i\to \prod(G_i/H_i)$$. This is clearly surjective, since each $$G_i\to G_i/H_i$$ is surjective. We wish to know ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9850429151632047,
"lm_q1q2_score": 0.8332896025937157,
"lm_q2_score": 0.8459424353665381,
"openwebmath_perplexity": 102.01982029300129,
"openwebmath_score": 0.9774518013000488,
"ta... |
Sami explained the inequality. I explain another way, avoiding it.
$\qquad m\mid a\!-\!b \iff a\!-\!b \in m\Bbb Z \iff a+m\Bbb Z\, =\, b+m\Bbb Z$
$\qquad a\ {\rm mod}\ m\,$ is the least nonnegative element of $\ a+m\Bbb Z$
$\qquad b\ {\rm mod}\ m\,$ is the least nonnegative element of $\ b+m\Bbb Z.$
Being equal set... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9799765592953409,
"lm_q1q2_score": 0.8145007104706897,
"lm_q2_score": 0.831143054132195,
"openwebmath_perplexity": 413.2191308795649,
"openwebmath_score": 0.7840259671211243,
"tags... |
EASY-MEDIUM
# PROBLEM:
Define the sequence f_i as:
• f_0 = \text{0"}
• f_1 = \text{1"}
• f_i = f_{i-1}+f_{i-2} for i\ge 2, where + is the string concatenation operation.
Determine the sum of the digits of all subsequences of f_i modulo 10^9+7.
# EXPLANATION:
It is evident that f_i only consists of zeros and ones.... | {
"domain": "codechef.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9706877700966098,
"lm_q1q2_score": 0.8024790237547141,
"lm_q2_score": 0.8267117898012104,
"openwebmath_perplexity": 3869.783532036109,
"openwebmath_score": 0.8494000434875488,
"tags... |
So - can you think of a (well known) one-to-one function $f:{\Bbb R}\to{\Bbb R}$ for which $f(x)$ is always a positive number?
Hope this doesn't sound too long-winded but I am hoping to illustrate how you can think about this kind of problem. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9664104962847373,
"lm_q1q2_score": 0.8307880700309656,
"lm_q2_score": 0.8596637487122111,
"openwebmath_perplexity": 205.69431254353248,
"openwebmath_score": 0.8977646827697754,
"ta... |
java, performance, object-oriented, matrix, homework
/**
* Tests matrix multiplication.
* Note that a MatrixException is thrown if the operand matrices are not
* compatible.
* The assertion indicates the exact wording of the exception message.
*/
@Test
public void testMultiply() throws... | {
"domain": "codereview.stackexchange",
"id": 18320,
"lm_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, performance, object-oriented, matrix, homework",
"url": null
} |
organic-chemistry, liquid-crystals
Some of the structures they form can rotate the plane of polarised light You can get some intuition about why knowing that polarising lenses consist of highly ordered molecules whose interaction with light is highly direction dependent. In normal liquids the molecular orientations ar... | {
"domain": "chemistry.stackexchange",
"id": 2459,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "organic-chemistry, liquid-crystals",
"url": null
} |
## Homework Statement
Dear All,
I am having problems understanding how to deal with related rates. The problem is the following:
A solid 400gm metal cube of size length 10cm expands uniformly when heated. If the length of its side expand at 0.5cm(hr), find the rate at which, after 5 hours, its volume will increase.
... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9653811586708121,
"lm_q1q2_score": 0.8262225665848545,
"lm_q2_score": 0.8558511414521923,
"openwebmath_perplexity": 653.1809513780403,
"openwebmath_score": 0.7394680380821228,
... |
turing-machines, finite-automata
3.1) If all symbols (of $u$) on the second tape has been erased then check if the first head has reached end of the string (of $v$). If "no" then REJECT else ACCEPT.
3.2) If the TM has reached end of the string of $v$ (on the first tape) then check if the second tape is empty. If "yes"... | {
"domain": "cs.stackexchange",
"id": 9789,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "turing-machines, finite-automata",
"url": null
} |
However, just because the force is negative does not mean the velocity is negative. If the mass is oscillating, it will move past the point of equilibrium, start to slow down, stop, and then start accelerating in the opposite direction. From the point that it stops at some position x<0 to the point it stops at some pos... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9763105328362841,
"lm_q1q2_score": 0.8049308668548881,
"lm_q2_score": 0.8244619306896955,
"openwebmath_perplexity": 398.8138404286313,
"openwebmath_score": 0.7533617615699768,
... |
# How to find a missing radius in the surface area formula for a cone with just surface area number, and slant height?
If we know just the surface area $A$, and the slant height $h_s$ is there a way to find the radius $r$ of the base of a cone?
The surface area formula for cones is:
$$A = ( \pi \cdot r \cdot h_s ) +... | {
"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... |
electromagnetism, maxwell-equations
If the medium between the capacitor is non-conductive, there will be no current in there, but there must be current somewhere else for the charge in the plates of the capacitor to be changing. If there is no current, then the problem you proposed does not exist for $\omega \neq 0$, ... | {
"domain": "physics.stackexchange",
"id": 86382,
"lm_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, maxwell-equations",
"url": null
} |
python, visualization, data-cleaning, data, unsupervised-learning
sample 2:
{
"table1": {
"column1": [
"-",
"-",
"-",
"-",
"-",
"-",
"-",
"-"
],
"column2": [
"2017-04-10 22:00",
"2017-04-10 22:00",
"2017-04-10 22:00",
"2017-04-10 22... | {
"domain": "datascience.stackexchange",
"id": 3062,
"lm_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, visualization, data-cleaning, data, unsupervised-learning",
"url": nu... |
python, python-3.x, pandas
does all you need
len
the next part
namead = {}
for i in nameid.keys():
paceholder = ['Nothing']
try:
paceholder.append(nameid[i][1])
namead[i] = nameid[i]
except:
pass
uses list indexing [1] and expects lists with only 1 element to throw an Exception. T... | {
"domain": "codereview.stackexchange",
"id": 32258,
"lm_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, pandas",
"url": null
} |
regular-languages, context-free, formal-grammars, pumping-lemma, check-my-answer
I am afraid you could not show that Ogden's pumping lemma cannot be applied to $s$ since $s$ belongs to the context-free language, $P_1=\{a^{k}b^lc^md^n\mid k\not=l\wedge m\not=n\}$, which is a subset of $L^C$.
Although your approach does... | {
"domain": "cs.stackexchange",
"id": 13243,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "regular-languages, context-free, formal-grammars, pumping-lemma, check-my-answer",
"u... |
c++, linked-list, memory-management
You should delete it of course. If you just set head to nullptr, the memory for the head node is still allocated.
Avoid using names that start with an underscore
Names that start with underscores are reserved for the standard library. There are some more specific rules, but in gener... | {
"domain": "codereview.stackexchange",
"id": 38885,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, linked-list, memory-management",
"url": null
} |
Stare at the following image, taken from this MO answer, long enough:
-
+1 I'm in love with that one – leonbloy Sep 2 '11 at 23:23
The fact that there are $k$ blocks (or $\frac{1}{2}+k{-}1+\frac{1}{2}$ blocks) of $k\times k$ size is based on the fact that $\sum\limits_{j=1}^{k-1}=k(k{-}1)/2$. That is, $(k{-}1)/2$ blo... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9719924777713886,
"lm_q1q2_score": 0.8753081865487741,
"lm_q2_score": 0.9005297947939936,
"openwebmath_perplexity": 538.9416883935687,
"openwebmath_score": 0.9435271620750427,
"tag... |
python, object-oriented, python-3.x, linked-list
def __delitem__(self, index):
if index >= self.size or index < -self.size:
raise IndexError
elif index == 0 or index == -self.size:
self.head = self.head.next
else:
prev_node = self._get_prev_node(index)
... | {
"domain": "codereview.stackexchange",
"id": 32473,
"lm_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, object-oriented, python-3.x, linked-list",
"url": null
} |
image-processing, python, gaussian, scipy, derivative
Sample the second order derivative of the Gaussian function.
Subtract the mean, to ensure that the response to a contant function is 0.
Normalize such that the kernel, multiplied by a unit parabola ($x^2$), sums to 2, to ensure that the response to a parabolic func... | {
"domain": "dsp.stackexchange",
"id": 10553,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "image-processing, python, gaussian, scipy, derivative",
"url": null
} |
java, json, role-playing-game
/***** Getter Methods *****/
// Return weapon native has
public Weapon getWeapon() {
return weapon;
}
// Return wage to hire native
public long getWage() {
return wage;
}
// Return bounty for native
public long[] getBounty() {
retu... | {
"domain": "codereview.stackexchange",
"id": 14048,
"lm_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, json, role-playing-game",
"url": null
} |
python, matplotlib, pdf
for group in grouper(zip(var1[1:], df1[1:]), rows * columns):
fig = plt.figure(figsize=(11, 7))
for i, (label, row) in enumerate(filter(None, group)):
ax = fig.add_subplot(rows, columns, i + 1)
ax.plot(df1[0], row, linestyle="-", color="black")
ax.set(title=label... | {
"domain": "codereview.stackexchange",
"id": 43341,
"lm_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, matplotlib, pdf",
"url": null
} |
### How to find first list element that differs from average of N previous elements by more than a given amount?
Given a list of real numbers, I need to write a function that returns the value of the first element in the list that differs from the mean of the previous $N$ elements by greater than $P$ standard ...
1k v... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.962673111584966,
"lm_q1q2_score": 0.8239048867045337,
"lm_q2_score": 0.8558511469672594,
"openwebmath_perplexity": 755.4024296253557,
"openwebmath_score": 0.6809312105178833,
"tags... |
Suppose now that $\Sigma$ is a $\sigma$-algebra of sets of reals, and $|\Sigma|^{\aleph_0}=|\Sigma|$. Let $A$ be any set of reals not in $\Sigma$, and let $\Lambda$ be the $\sigma$-algebra generated by $\{A\}\cup\Sigma$. Then $|\Lambda|=|\Sigma|$.
This shows that there are many $\sigma$-algebras in between the Borel s... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9805806552225684,
"lm_q1q2_score": 0.8254779447651056,
"lm_q2_score": 0.8418256472515683,
"openwebmath_perplexity": 263.9811302756235,
"openwebmath_score": 0.9291218519210815,
"tag... |
evolution, human-evolution
5. Summary and Micro/Macroevolution
A related counter-argument to evolution that I'd like to cover, but isn't directly related to the accuracy of fossil records is that of microevolution vs. macroevolution. Some people argue that we can only see evolution on minute scales, and not on large s... | {
"domain": "biology.stackexchange",
"id": 8595,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "evolution, human-evolution",
"url": null
} |
javascript, library, genetic-algorithm
male = true;
female = true;
child = "";
child_genes = [];
dividing_point = 0;
//Keeps repeating until the male individual does not equal the female individual
... | {
"domain": "codereview.stackexchange",
"id": 30658,
"lm_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, library, genetic-algorithm",
"url": null
} |
json, web-scraping, xpath, xslt
<html:thead class="bbGrid-grid-head">
<html:tr class="bbGrid-grid-head-holder">
<html:th>Customs Enforcement Desc</html:th>
... | {
"domain": "codereview.stackexchange",
"id": 42749,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "json, web-scraping, xpath, xslt",
"url": null
} |
thermodynamics
We get out of it by realizing that when two bodies are in contact, heat will flow from the hotter to the cooler object. In the process, the cool object will get hotter. The rate of heat flow is a function of the thermal conductivity of the material, the thermal gradient, and the heat capacity. And that ... | {
"domain": "physics.stackexchange",
"id": 28027,
"lm_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
} |
roslaunch
start = ros::Time::now (); // get the time
if (pub[2] != 0)
{
// publish the thresholded image
thresholdedROS.header = img_ptr->header;
thresholdedROS.encoding = "mono8";
thresholdedROS.image = thresholded;
image_pub2_.publish (thresholdedROS.toImageMsg ());
... | {
"domain": "robotics.stackexchange",
"id": 5933,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "roslaunch",
"url": null
} |
boost, rosinstall, osx, joint-state-publisher, robot-state-publisher
/Users/blubb/ros_catkin_ws/src/robot_state_publisher/src/joint_state_listener.cpp:165:74: error: no viable conversion from '__map_iterator<__tree_iterator<__value_type<[...],
std::__1::shared_ptr<urdf::Joint>>, std::__1::__tree_node<std::__1::_... | {
"domain": "robotics.stackexchange",
"id": 29018,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "boost, rosinstall, osx, joint-state-publisher, robot-state-publisher",
"url": n... |
space-complexity, threads
The space complexity is the maximum amount of space required while the algorithm is running. So it certainly would be more than the (number of elements in matrix) + (local storage of just finishing thread). It might be the total storage of all the threads at the time the program finished but... | {
"domain": "cs.stackexchange",
"id": 2848,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "space-complexity, threads",
"url": null
} |
# Characteristic function of distribution
$$p(x)=e^{-2 |x|}$$ with x in [-inf, +inf]. I've calculated the characteristic function as $E[e^{ikx}]=\frac{1}{ik+2}-\frac{1}{ik-2}=\frac{4}{k^2+4}$. Now i'd like the moments.. so I suppose I should manipulate this expression in order to reduce it to a sum of infinite moments... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9796676460637103,
"lm_q1q2_score": 0.8009512691062004,
"lm_q2_score": 0.8175744828610095,
"openwebmath_perplexity": 403.97474843059706,
"openwebmath_score": 0.7485265731811523,
"ta... |
newtonian-mechanics, newtonian-gravity, projectile, drag
is the mass of the object. As $F=ma$, we can see that $a=\frac{F}{m}$, and so the acceleration of the objects will be: $$a=\frac{GM}{r^2}$$We can see from this that the objects themselves have nothing to do with the acceleration due to gravity. | {
"domain": "physics.stackexchange",
"id": 44756,
"lm_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, projectile, drag",
"url": null
} |
haskell, tree, compression
Title: Huffman code generator in Haskell This is problem 50 in https://wiki.haskell.org/99_questions/46_to_50. The website has more elegant Haskell solutions, but I wanted to get feedback on how the code I wrote on my own below could be improved.
import Data.List
data Tree a = Leaf a Int | ... | {
"domain": "codereview.stackexchange",
"id": 12926,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "haskell, tree, compression",
"url": null
} |
• Sorry, stupid question. In your non-linear equation, what is the independent variable you want to solve for? and what the parameters? what is $f_m$? and what is $m$? – Walter Jun 7 '17 at 18:54
• @Walter the independent variable is $\lambda_m$, $\alpha$ is just a constant, $f_m$ is the equation of which I want to fin... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9728307700397331,
"lm_q1q2_score": 0.8020619307053609,
"lm_q2_score": 0.8244619263765707,
"openwebmath_perplexity": 849.5250569269624,
"openwebmath_score": 0.79267817735672,
"tags"... |
newtonian-mechanics, forces, energy, work, free-body-diagram
Title: How can we jump when the ground does no work on us? This may seem like a silly question, but how can we jump when the ground does no work on us?
When we jump off the ground, the ground does not move. This means the force from the ground on us does zer... | {
"domain": "physics.stackexchange",
"id": 91967,
"lm_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, energy, work, free-body-diagram",
"url": null
} |
fizzbuzz, befunge
As for your code: It's definitely more convoluted than mine! :D But in Befunge, this is not necessarily a bad thing.
There are some infelicities; for example you use *2*5*52:+1,*52,*84 where I would have used **455:+1,*52 — I don't understand why you bother printing that space character with *84 sin... | {
"domain": "codereview.stackexchange",
"id": 27843,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "fizzbuzz, befunge",
"url": null
} |
electromagnetism, electrostatics, conductors
The geometry on conductor will not play any role at all. (Nature of coulomb in force.) So centre of mass will not experience any acceleration. What about torque? It turns out torque = r×F. Ahh... "r". Interesting.So will it experience any angular acceleration? :) | {
"domain": "physics.stackexchange",
"id": 10866,
"lm_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, electrostatics, conductors",
"url": null
} |
evolution, neurophysiology, vision, human-evolution
Sadly these approaches don't really convince me.
ADDITION : here is a visual example to see what happens if we remove blue information from an image (original image taken here). The image without any blue (middle) is confusing because it makes you think we could se... | {
"domain": "biology.stackexchange",
"id": 6516,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "evolution, neurophysiology, vision, human-evolution",
"url": null
} |
neural-networks, deep-learning, activation-functions, relu, softmax
There is an other paper which introduces Growing Cosine Unit, defined as $f(x) = x \cdot \text{cos}(x)$.
The experiments (Table 1-3) show that use of GCU activation for
convolutional layers and ReLU for the dense layers provides the best
performance ... | {
"domain": "ai.stackexchange",
"id": 3195,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "neural-networks, deep-learning, activation-functions, relu, softmax",
"url": null
} |
special-relativity
\begin{align}
K = E-mc^2
\end{align}
where the total energy is defined as
\begin{align}
E = \gamma mc^2
\end{align}
Combining these facts, we see that the kinetic energy is given by
\begin{align}
K = (\gamma - 1)mc^2 = \frac{1}{2}\beta^2 mc^2 + O(\beta^4) = \frac{1}{2}mv^2 + O(\beta^4)
\end{al... | {
"domain": "physics.stackexchange",
"id": 8720,
"lm_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",
"url": null
} |
points p: 1-dim. subspaces ↔ 2-dim. subspaces (lines) p\perp
lines l: 2-dim. subspaces ↔ 1-dim. subspaces (points) l\perp
l contains p ⇔ l\perp contained in p\perp
In particular the number of 2-dimensional subspaces of V equals the
number of 1-dimensional subspaces of V*, which is (q^3-1)/(q-1)=q^... | {
"domain": "harvard.edu",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9907319853876677,
"lm_q1q2_score": 0.8277402594148112,
"lm_q2_score": 0.8354835330070839,
"openwebmath_perplexity": 2557.5821634393883,
"openwebmath_score": 0.8611697554588318,
"tags": n... |
quantum-field-theory
M.E. Peskin and D.V Schroeder, An Introduction to QFT.
A. Zee, QFT in a nutshell.
M. Srednicki, QFT. | {
"domain": "physics.stackexchange",
"id": 15599,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-field-theory",
"url": null
} |
python, quiz
charlist = []
set = random.choice(all)
k = set.keys()
k = random.sample(k, len(k))
outof = 0
total = len(set)
while True:
print "Welcome! Just type in the character requested! If you want to exit, type quit."
for x in range(0, len(set)):
char = k[x]
question = raw_input("Write Chin... | {
"domain": "codereview.stackexchange",
"id": 19986,
"lm_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, quiz",
"url": null
} |
temperature, phase-transition
Additionally, intermolecular forces hold molecules of liquids together. For example, molecules of a particular compound (say fluoromethane) may have a permanent net dipole moment, and the positive end of one molecule is attracted to the negative end of the other. There are other types o... | {
"domain": "physics.stackexchange",
"id": 12573,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "temperature, phase-transition",
"url": null
} |
quantum-mechanics, homework-and-exercises, harmonic-oscillator
Title: Eigenstates of half Harmonic Oscillator This might be a stupid question so pardon me! If I am looking for energy eigenstates to the 1D quantum problem such that there is an infinite barrier at $x<0$ and for $x>0$ the potential is $kx^2$, what would ... | {
"domain": "physics.stackexchange",
"id": 53691,
"lm_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, homework-and-exercises, harmonic-oscillator",
"url": null
} |
gazebo, navigation, ros-kinetic, amcl
Originally posted by the3kr on ROS Answers with karma: 91 on 2019-02-23
Post score: 0
Apart from GPS, localization in a feature-less environment is difficult. If you don't have strict positioning requirements, and your field has a clear sky-view, I would recommend an RTK such as ... | {
"domain": "robotics.stackexchange",
"id": 32519,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "gazebo, navigation, ros-kinetic, amcl",
"url": null
} |
python, python-3.x, csv, formatting, ascii-art
Title: Create an ASCII table from CSV The following code convert csv to ascii table.
#!/usr/bin/env python3
import sys
import argparse
import logging
import prettytable
import csv
parser = argparse.ArgumentParser()
parser.add_argument("infile", nargs="?", type=argparse.... | {
"domain": "codereview.stackexchange",
"id": 42895,
"lm_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, csv, formatting, ascii-art",
"url": null
} |
_________________
Kudos [?]: 1184 [5], given: 25
Math Forum Moderator
Joined: 20 Dec 2010
Posts: 1964
Kudos [?]: 2048 [6], given: 376
### Show Tags
08 Feb 2011, 06:26
6
KUDOS
5
This post was
BOOKMARKED
1,2,3,4 can be arranged in 4! = 24 ways
The units place of all the integers will have six 1's, six 2's, six 3's ... | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes\n2. Yes\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9693242000616579,
"lm_q1q2_score": 0.8455874323950133,
"lm_q2_score": 0.8723473862936943,
"openwebmath_perplexity": 4075.5021960478143,
"openwebmath_score": 0.6409714221954346,
"tags"... |
thermodynamics, phase-transition
Title: Diffusion of heat during phase transition When one substance and one phase is present, the diffusion of temperature is given by the heat equation
$$ \partial_t T = \nabla\cdot(\kappa\nabla T) $$
Can the heat equation be modified to accommodate phase transitions? If so, how? If w... | {
"domain": "physics.stackexchange",
"id": 33907,
"lm_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, phase-transition",
"url": null
} |
object-oriented, vba, error-handling, vb6, meta-programming
Dim i As Long
' Skip past any Option statement
' and any module-level variable declations.
For i = CodeMod.CountOfDeclarationLines + 1 To CodeMod.CountOfLines
' get procedure name
procName = CodeMod.ProcOfLine(i, vbext_pk_Proc)
... | {
"domain": "codereview.stackexchange",
"id": 7872,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "object-oriented, vba, error-handling, vb6, meta-programming",
"url": null
} |
javascript
I think it can be simplified or solved differently. Unfortunately I can't get any further, do you have any ideas?
I think it can be simplified or solved differently.
That's good intuition. That's called a code smell. Something "smells" funny, off, or wrong but not sure what it is. Pay attention to that fe... | {
"domain": "codereview.stackexchange",
"id": 40756,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript",
"url": null
} |
loc(j)=find(r(j)<V(j,:),1,’first’);
- Patrick
wuxing gan replied on : 43 of 55
Hello Loren,
I am trying to array indexing to create an array from a row vector,say A=1:5, when I wanted to generate 10 rows array by using B=(1:10,:)=A; it generated error; Is there better way not to use ‘for loop’ like below to generate... | {
"domain": "mathworks.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9585377296574668,
"lm_q1q2_score": 0.8222030919298016,
"lm_q2_score": 0.8577681049901037,
"openwebmath_perplexity": 1223.267841230228,
"openwebmath_score": 0.3873194456100464,
"tags": ... |
game, css, html5, angular.js, twitter-bootstrap
Obviously, this could be improved, but this looks a lot more semantic. Caveat: You cannot dynamically generate names, so you won't be able to use expressions with the name attribute. In essence, this means that you would not be able to reuse this directive for anything e... | {
"domain": "codereview.stackexchange",
"id": 15130,
"lm_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, css, html5, angular.js, twitter-bootstrap",
"url": null
} |
electromagnetism
Title: Young and Freedman magnetic force error I think I've found an error in the 14th edition of Y&F. Figure 27.37 (p 928) is:
Am I right in thinking the net forces should be switched so that they point in the opposite directions? If we assume that the μ indicates the dipole moment of the loop, then... | {
"domain": "physics.stackexchange",
"id": 75070,
"lm_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
} |
ros, compressed-image-transport, usb-cam, camera
If you really want compressed images directly from the camera you'll have to modify the source for the usb_cam driver or write a new camera driver. You'll probably want to stop using the image_transport library and implement image transport yourself, either: | {
"domain": "robotics.stackexchange",
"id": 25420,
"lm_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, compressed-image-transport, usb-cam, camera",
"url": null
} |
ros2, publisher, ros-humble
but what the program need is:
#include <std_msgs/msg/int8.hpp> | {
"domain": "robotics.stackexchange",
"id": 38736,
"lm_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, publisher, ros-humble",
"url": null
} |
civil-engineering, building-design
I looked at the website you provided a link to and the second picture
showed what appear to be how the roofing iron was attached to the
house. Just laying the roofing iron on the walls as shown I consider
to be a primitive form of construction. | {
"domain": "engineering.stackexchange",
"id": 2783,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "civil-engineering, building-design",
"url": null
} |
electromagnetism, electrostatics, vectors, coordinate-systems
$$\hat r = \frac{\frac{\partial {\bf{r}}}{\partial r}}{\left|\frac{\partial {\bf{r}}}{\partial r}\right|}$$
Precisely the same reasoning holds for $\hat \theta$ and $\hat \phi$. | {
"domain": "physics.stackexchange",
"id": 49488,
"lm_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, electrostatics, vectors, coordinate-systems",
"url": null
} |
c++, template, c++14
}
else {
std::cout << "Inserting into right subtree...\n"; //////
std::shared_ptr<Node> newRight = insert(tr, t, node->right);
right = newRight;
}
return node;
}
std::shared_ptr<Node> search (const... | {
"domain": "codereview.stackexchange",
"id": 19972,
"lm_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++14",
"url": null
} |
ros, catkin, catkin-workspace
Originally posted by ffontana on ROS Answers with karma: 21 on 2014-01-20
Post score: 2
You can have subfolders in your catkin_ws/src folder which are not valid ros packages without any problem. I think you future catkin workspace structure could be like this:
/catkin_ws
/src
-Cmake... | {
"domain": "robotics.stackexchange",
"id": 16696,
"lm_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, catkin-workspace",
"url": null
} |
visualization, powerbi
Title: Power BI Show Multiple Datapoints on same Axis I have a dataset that summarizes student absences grouped by School Site, Grade, Gender, Race and it is broken down into groups with total # of students that had: Absence <5%, Absence 5-10%, Absence 10-20%, and Absence >20%. Here is an exampl... | {
"domain": "datascience.stackexchange",
"id": 11991,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "visualization, powerbi",
"url": null
} |
java, beginner, algorithm, tree
public BinaryTree(int weight) {
this(weight, null, null);
}
/**
* JavaDoc here
*/
public int getHeaviestPathWeight() {
return this.weight + Math.max(
this.left == null ? 0 : this.left.getHeaviestPathWeight(),
this.right == ... | {
"domain": "codereview.stackexchange",
"id": 10375,
"lm_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, algorithm, tree",
"url": null
} |
per kWh for electricity, heat pump, refrigerator or air conditioning system, Learn how and when to remove this template message, "Thermal Banks store heat between seasons | Seasonal Heat Storage | Rechargeable Heat Battery | Energy Storage | Thermogeology | UTES | Solar recharge of heat batteries", "A new era of Season... | {
"domain": "redoubtsurplus.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9173026573249611,
"lm_q1q2_score": 0.8017933645060622,
"lm_q2_score": 0.8740772286044094,
"openwebmath_perplexity": 1535.1718550746425,
"openwebmath_score": 0.6757805347442627,
... |
ruby, ruby-on-rails, rspec
Rspec has a method for documenting tests that don't (and can't yet be made to) pass:
it "is invalid when expiration date is malformed" do
pending
build(:content, unpublished_at: "!0$2-as-#{nil}").should_not be_valid
end
The nice thing about pending is that it shows up in the test output... | {
"domain": "codereview.stackexchange",
"id": 3033,
"lm_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, ruby-on-rails, rspec",
"url": null
} |
biochemistry
Title: How is ATP generated by cellular respiration? I learned in a high school level Biology class that the chemical equation for cellular respiration is
$$\ce{6O2 + C6H12O6 -> 6CO2 + 6H2O + ATP}$$
When I looked up the chemical formula for ATP I found that it is
$$\ce{C10H16N5O13P3}$$
Knowing that, th... | {
"domain": "chemistry.stackexchange",
"id": 8754,
"lm_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",
"url": null
} |
newtonian-mechanics, angular-momentum, reference-frames, torque, moment-of-inertia
an advanced aside:
Given these two conserved quantities (linear and angular momentum), it seems enough examples to generalize this idea to note that space is invariant under both translation and rotation, and that's why we have a moment... | {
"domain": "physics.stackexchange",
"id": 76593,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "newtonian-mechanics, angular-momentum, reference-frames, torque, moment-of-inertia... |
And what is the meaning behind electric potential produced by multiple number of point charges.
In the image above, if I change the position of Q1 but keep r1 the same (or rotate Q1 around the point), the electric field at that point will change since the vector sum change, but how can the electric potential keeps the... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.951142225532629,
"lm_q1q2_score": 0.8026642640927009,
"lm_q2_score": 0.8438951005915208,
"openwebmath_perplexity": 188.95249403254897,
"openwebmath_score": 0.7530094981193542,
"tag... |
physical-chemistry, quantum-chemistry, atoms, atomic-radius
The answer to the second part is 25 $(n=25)$; and to the third is 55.2 picometers. To answer the second part:
We know $M=208m_e$, $Z=3$, $\hbar=\frac{h}{2\pi}$.
Part one has a mistake, as it is
$$
\begin{align}
&&\frac{Mv^2}{r}&=\mathcal{k_e}\cdot\frac{(\math... | {
"domain": "chemistry.stackexchange",
"id": 1627,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "physical-chemistry, quantum-chemistry, atoms, atomic-radius",
"url": null
} |
fluid-dynamics, aerodynamics
Therefore, their flat evenly shaped wings do not support additionally to the angle of attack and incidence angle the lift of the plane.
Why not this additional feature of upside curved wing shape is not present in this kind of airplanes? Is there any particular reason(s)?
What is the trade... | {
"domain": "physics.stackexchange",
"id": 83326,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "fluid-dynamics, aerodynamics",
"url": null
} |
reinforcement-learning, deep-rl, dqn, off-policy-methods
If you normalize with running statistics (e.g. mean and std) as in the online case, you would get two different results for the same input, say $s$, because it would be normalized with different statistics. I think this would introduce some non-stationarity in t... | {
"domain": "ai.stackexchange",
"id": 3872,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "reinforcement-learning, deep-rl, dqn, off-policy-methods",
"url": null
} |
lower-bounds, permanent, determinant, gct
Landsberg, Manivel, & Ressayre. Hypersurfaces with degenerate duals and the Geometric Complexity Theory program. Comentarii Mathematici Helvetici 88(2):469-484, 2013. (arXiv version)
That paper, as with Mignon-Ressayre, uses the rank of the Hessian, rather than explicitly fr... | {
"domain": "cstheory.stackexchange",
"id": 4044,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "lower-bounds, permanent, determinant, gct",
"url": null
} |
black-holes
You would just see a brightening and then darkening as it passed in front of a distant star. You’d spot it by stellar occultation, notice that one of the numerous stars in your photograph blinked out for a while and then re-appeared. The way it did that would be distinctive, if it passed in front of distan... | {
"domain": "physics.stackexchange",
"id": 56375,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "black-holes",
"url": null
} |
potential-energy
Title: Charging a spherical conducting shell An isolated conducting spherical shell carries a negative charge. What will happen if a positively charged metal object is placed in contact with the shell interior ?. Assume that the positive charge is (a) less than, (b) equal to, and (c) grater than the n... | {
"domain": "physics.stackexchange",
"id": 34853,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "potential-energy",
"url": null
} |
gazebo, gazebo-plugin, gazebo-7, gazebo-model, gazebo-sensor
The sensors themselves are located in the gz-sensors repository.
If you read through the header and source files (e.g. ImuSensor.hh and ImuSensor.cc) you will find descriptions about the internal variables of the sensor,
However, whereas the gz-sim system pl... | {
"domain": "robotics.stackexchange",
"id": 38724,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "gazebo, gazebo-plugin, gazebo-7, gazebo-model, gazebo-sensor",
"url": null
} |
the star in the center and return to the starting vertex. Eulerian Graph. Definition: A Semi-Eulerian trail is a trail containing every edge in a graph exactly once. Exercises: Which of these graphs are Eulerian? You can verify this yourself by trying to find an Eulerian trail in both graphs. 1. Proof. A connected mult... | {
"domain": "techaffect.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9811668668053619,
"lm_q1q2_score": 0.8176304761220029,
"lm_q2_score": 0.8333245891029457,
"openwebmath_perplexity": 656.9268830313274,
"openwebmath_score": 0.48969700932502747,
"t... |
c#, tic-tac-toe
button5.Enabled = false;
button6.Enabled = false;
button7.Enabled = false;
button8.Enabled = false;
button9.Enabled = false;
}
//Check rows for O
if (button1.Text == "O" && button2.Text == "O" && button3.Text == "O")
{
... | {
"domain": "codereview.stackexchange",
"id": 16755,
"lm_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#, tic-tac-toe",
"url": null
} |
java, object-oriented, state-machine
The hassles you gain are that you now need two iterations. First iteration is to find out what needs to happen to all the cells. Second iteration is to apply the changes. I think you'll want to make a new 2D array of objects to place on the cells. The alternative is storing a set o... | {
"domain": "codereview.stackexchange",
"id": 10373,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, object-oriented, state-machine",
"url": null
} |
particle-physics, cp-violation
So what is indirect about this? The difference, I think, is that $\overline B{}^0 \to B^0$ and $B^0 \to \overline B{}^0$ are inverse processes, and so a difference between them can be ascribed to broken $CP$ symmetry, as you say, or to broken time-reversal symmetry. Only with the additio... | {
"domain": "physics.stackexchange",
"id": 21212,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "particle-physics, cp-violation",
"url": null
} |
javascript, node.js, mongodb
$eq: ["$user.work_mode", 'break']
}, "$duration", 0]
}
},
"total_nonidle_duration": {
$sum: {
$cond: [{
... | {
"domain": "codereview.stackexchange",
"id": 17394,
"lm_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, node.js, mongodb",
"url": null
} |
java, game
Player, please enter 1, 2, or 3 >>>
1
The total is 1
Computer entered 1
The total is 2
The total is 2
Player, please enter 1, 2, or 3 >>>
3
The total is 5
Computer entered 3
The total is 8
The total is 8
Player, please enter 1, 2, or 3 >>>
1
The total is 9
Computer entered 3
The total is 12
The total is ... | {
"domain": "codereview.stackexchange",
"id": 17298,
"lm_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",
"url": null
} |
$\displaystyle \therefore$ by AA rule $\displaystyle \Delta AFE \sim \Delta ABC$
Given $\displaystyle \frac{\text{ar(ABC)}}{\text{ar(AFE)}} = 2$
REMEMBER: The ratio of the areas of two similar triangles is equal to the square of the ratio of any pair of their corresponding sides and altitudes
$\displaystyle \therefo... | {
"domain": "hoven.in",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9884918519527645,
"lm_q1q2_score": 0.8081657058850872,
"lm_q2_score": 0.8175744739711883,
"openwebmath_perplexity": 2205.5691865863255,
"openwebmath_score": 0.6669236421585083,
"tags": null... |
organic-chemistry, reaction-mechanism, reaction-control
A similar case can be made for cycloheptane, which is even more strained. There is not much for me to say here that I haven’t said for cyclopentane other than that you should build it.
And finally cyclobutane. This is the most strained of the systems considered a... | {
"domain": "chemistry.stackexchange",
"id": 8767,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "organic-chemistry, reaction-mechanism, reaction-control",
"url": null
} |
data-structures, binary-trees, search-trees
To achieve the desired BIT1 and BIT2 values for the previous range update, we do 3 range updates:
We need to do a range update of +5 to indices 3..7 for BIT1.
We need to do a range update of +10 to indices 3..7 for BIT2.
We need to do a range update of -25 to indices 8..9 f... | {
"domain": "cs.stackexchange",
"id": 3594,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "data-structures, binary-trees, search-trees",
"url": null
} |
image-processing, template-matching
Correcting perspective projection when shape is known
The ultimate goal of the preprocessing is to find corners of that gray rectangle which is the background the color chart. I started by simply thresholding with constant value. Literature/web has lots of information on how to do t... | {
"domain": "dsp.stackexchange",
"id": 256,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "image-processing, template-matching",
"url": null
} |
c, linked-list, memory-management
node *ptr, *newnode, *first=NULL, *last=NULL;
void insertnewword(char *ch)
{
newnode=(node*)malloc(sizeof(node));
if(newnode == NULL)
{
printf("\nMemory is not allocated\n");
exit(0);
}
else
{
newnode->word=ch;
newnode->count=1;... | {
"domain": "codereview.stackexchange",
"id": 9359,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c, linked-list, memory-management",
"url": null
} |
molecular-biology, abiogenesis, amino-acids, chirality
One, our galaxy has a chiral spin and a magnetic orientation, which causes cosmic dust particles to polarize starlight as circularly polarized in one direction only. This circularly polarized light degrades D enantiomers of amino acids more than L enantiomers, and... | {
"domain": "biology.stackexchange",
"id": 11871,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "molecular-biology, abiogenesis, amino-acids, chirality",
"url": null
} |
Basics
A quadratic is an equation or formula in which a variable is squared.
(In the equation above, the variable x is squared.)
A question involving quadratics could involve a relatively simple plug-in, where you plug in a number for x to solve for y using the quadratic equation.
A question involving quadratics coul... | {
"domain": "howtopasstheged.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9896718459575752,
"lm_q1q2_score": 0.820377400617328,
"lm_q2_score": 0.8289388083214156,
"openwebmath_perplexity": 1869.2255599656728,
"openwebmath_score": 0.8219132423400879,
"t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.