text stringlengths 1 1.11k | source dict |
|---|---|
image-processing, discrete-signals, interpolation
Title: Plotting DNA chromatogram trace data Sanger DNA sequencing produces a chromatogram trace which can be visualized with a number of programs, including FinchTV or ChromasLite. The raw data consists of co-ordinates for each of the four DNA bases (A, C, G and T). Ho... | {
"domain": "dsp.stackexchange",
"id": 380,
"lm_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, discrete-signals, interpolation",
"url": null
} |
c#, sql-server
new Regex(regex ?? throw new ArgumentNullException(nameof(regex)))
I find newing a Regex should be reserved for initializing a field. In a situation like here the static Regex.Matches would be more suitable - unless there is a reason why you chose new over the static method.
public string ToString(str... | {
"domain": "codereview.stackexchange",
"id": 28103,
"lm_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#, sql-server",
"url": null
} |
c++, recursion, reinventing-the-wheel, template, c++20
abs template function implementation:
template<TinyDIP::arithmetic ElementT = double>
constexpr static auto abs(const Image<ElementT>& input)
{
return TinyDIP::pixelwiseOperation([](auto&& element) { return std::abs(element); }, input);
}
subtract template fu... | {
"domain": "codereview.stackexchange",
"id": 42521,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, recursion, reinventing-the-wheel, template, c++20",
"url": null
} |
newtonian-mechanics, energy, experimental-physics, potential-energy, rigid-body-dynamics
$$ R^2 = \left(\frac d 2\right)^2 + r^2. $$
Thus, we get the denominator
$$ \frac12 + \frac15 \frac{R^2}{R^2 - \left(d/2\right)^2}
= \frac12 + \frac15 \frac{1}{1 - \left(d/{2R}\right)^2}. $$
Since $d$ is the same for both balls, ... | {
"domain": "physics.stackexchange",
"id": 73558,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "newtonian-mechanics, energy, experimental-physics, potential-energy, rigid-body-dy... |
# Groups with all subgroups normal
Is there any sort of classification of (say finite) groups with the property that every subgroup is normal?
Of course, any abelian group has this property, but the quaternions show commutativity isn't necessary.
If there isn't a classification, can we at least say the group must be... | {
"domain": "mathoverflow.net",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9683812309063187,
"lm_q1q2_score": 0.8191947749555636,
"lm_q2_score": 0.8459424334245617,
"openwebmath_perplexity": 720.2770464510174,
"openwebmath_score": 0.7574899792671204,
"... |
ros, rostopic, ros-indigo, joint-state
This happens after pressing the e-stop button, turning off the breaker, turning off the robot, and then turning the robot on again. I tried the process again but got some similar results.
Is this expected behavior or should I be worried?
Originally posted by DanielSeita on ROS A... | {
"domain": "robotics.stackexchange",
"id": 30837,
"lm_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, rostopic, ros-indigo, joint-state",
"url": null
} |
dataset, regression, linear-regression
(e.g. Pearson's correlation coefficient) but nonlinearities can make correlation difficult. I assume that this is why your book defers to vague terminology as it's probably for pedagogical, rather than pedantic, purposes. After all, it gets the point across without needing to dis... | {
"domain": "datascience.stackexchange",
"id": 8227,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "dataset, regression, linear-regression",
"url": null
} |
For all $$x\in A$$ if $$U$$ is an open set containing $$\sigma(x)$$, there exists a $$\delta_U>0$$ such that $$\sigma(x+y)\subset U$$ for all $$y\in A$$ with $$\|y\|<\delta$$.
Proof: This is Theorem 10.20 in Rudin's functional analysis. I will reproduce the proof for convenience. The function $$\mathbb C\backslash \si... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.976310530768455,
"lm_q1q2_score": 0.8298358059337666,
"lm_q2_score": 0.8499711718571775,
"openwebmath_perplexity": 194.458955387664,
"openwebmath_score": 0.9645479917526245,
"tags"... |
energy, momentum, bernoulli-equation
It is true to say that nozzles do no work in the same way its true normal forces do no work: their forces are always perpendicular to the direction of motion. It is wrong however to conclude that no work is done.
It is true to say that the energy / volume doesn't change on a stream... | {
"domain": "physics.stackexchange",
"id": 54169,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "energy, momentum, bernoulli-equation",
"url": null
} |
ros, gazebo, multi-robot, stageros
Title: simulate marker on stage
I am trying to simulate multi-robot behavior os stageros. I want my robots to be conveyed a message when they reach a marker(anytype fiducial or bar code). player-stage which has support both for markers and fiducials( http://playerstage.sourceforge.n... | {
"domain": "robotics.stackexchange",
"id": 10196,
"lm_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, gazebo, multi-robot, stageros",
"url": null
} |
# Evaluate $|z_1 + z_2 + z_3|$ on unit circle given $\frac{ z_1^2}{z_2 z_3} + \frac{ z_2^2}{z_1 z_3} + \frac{ z_3^2}{z_1 z_2} +1 =0$
given three complex numbers $$(z_1 , z_2 , z_3)$$ lying on the unit circle and related by the equation $$\frac{ z_1^2}{z_2 z_3} + \frac{ z_2^2}{z_1 z_3} + \frac{ z_3^2}{z_1 z_2} +1 =0$$,... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9736446425653805,
"lm_q1q2_score": 0.8092379696441838,
"lm_q2_score": 0.8311430415844385,
"openwebmath_perplexity": 336.0144095872977,
"openwebmath_score": 0.9597028493881226,
"tag... |
telescopes, observational-astronomy, error-analysis, distance, parallax
For rangefinders, the big limit on accuracy is the ability to merge two images, particularly under low-contrast conditions. Plus, of course, they don't do well in the dark. | {
"domain": "physics.stackexchange",
"id": 13075,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "telescopes, observational-astronomy, error-analysis, distance, parallax",
"url":... |
c#, parsing, regex
(?(' # Start a conditional match for single-quoted strings
(?=(?:\\\\|\\'|[^'])*') # Followed by a properly closed single-quoted string
) # Then
(?:'(?:\\\\|\\'|[^'])*') # Capture the whole double-quoted string
| # Otherwise
... | {
"domain": "codereview.stackexchange",
"id": 35695,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, parsing, regex",
"url": null
} |
javascript, converting, image
Point Temperature,Flash Point Temperature UOM,U.N. Dangerous Goods Number,Dangerous Goods Shipping Name,Dangerous Goods A Margin Number,Dangerous Goods Packing Group,Dangerous Goods Technical Name,Hazmat Special Instructions,More HazMat,Package Group,Product Group,Pricing UPC,Pricing Item... | {
"domain": "codereview.stackexchange",
"id": 11820,
"lm_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, converting, image",
"url": null
} |
quantum-field-theory, particle-physics, standard-model, quantum-electrodynamics, scattering-cross-section
First of all, the observed mass of the mediated boson is the renormalised mass that includes all loop corrections to the propagator. Sure we start with a bare mass, but upon integrating all loop momentum in a prop... | {
"domain": "physics.stackexchange",
"id": 69217,
"lm_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, particle-physics, standard-model, quantum-electrodynamics, s... |
electromagnetism, maxwell-equations, vector-fields, gauge, magnetostatics
where $\chi=\chi(\mathbf{r})$.
He then states that in order to make $\mathbf{A}$ unique, we must impose the following gauge conditions (Coloumb & Lorentz, respectively);
$$\begin{align}
\nabla\cdot\mathbf{A} &= 0 \\
\nabla\cdot\mathbf{A} + \frac... | {
"domain": "physics.stackexchange",
"id": 28255,
"lm_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, vector-fields, gauge, magnetostatics",
"url... |
ros, rviz, transforms, urdf, rosbag
Title: Has there been progress for URDF transform jitter in RVIZ?
From my ros-users post:
So I have been following the really nice (R2D2) tutorials on URDF, thanks a
lot for those! I've managed to get our robot model into RVIZ and follow
base_link, but the transforms on the URDF be... | {
"domain": "robotics.stackexchange",
"id": 4813,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, rviz, transforms, urdf, rosbag",
"url": null
} |
quantum-mechanics, quantum-field-theory, quantum-electrodynamics
One characteristic quantity that depends on $c$ is the (reduced) Compton wavelength of the electron
$$ \lambda = \frac{\hbar}{m c}. $$
In the formalism of the free QFT, the Compton wavelength plays a specific role. Say we've confined a particle into a re... | {
"domain": "physics.stackexchange",
"id": 55198,
"lm_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, quantum-electrodynamics",
"url": null
} |
thermodynamics, radiation, convection
In the following instant the difference in temperature of the two objects will not be the same, and for both radiation and convection this will affect the amount of heat lost.
When we are calculating heat lost over time, the amount of time the objects are exposed to the cooling en... | {
"domain": "physics.stackexchange",
"id": 60331,
"lm_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, radiation, convection",
"url": null
} |
performance, vba
dLowValue = 100000
'Ratio 1, 2 and 3 of supplier
CheckCell = Range("H" & j).Value
CheckCell2 = Range("I" & j).Value
checkCell3 = Range("J" & j).Value
'Define the array of the ratio 1 (the same as the ratio1 of supplier) of Listed company
arraylist = Range("A2:" & "A" & LastSu... | {
"domain": "codereview.stackexchange",
"id": 17044,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "performance, vba",
"url": null
} |
nuclear-physics, nuclear-engineering
Since there is not much data showing the carcinogenic effect of tritium, international standards vary considerably. The article implies that the environmental limits in France are 100 Bq/L, which means you can measure 100 tritium decays in a liter of water. In the US, the limit i... | {
"domain": "physics.stackexchange",
"id": 71609,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "nuclear-physics, nuclear-engineering",
"url": null
} |
cheminformatics
H 12 1.0908 11 118.95 10 178.60
H 13 1.0963 12 120.77 11 182.82
H 14 1.0959 13 121.94 12 -180.61
H 15 1.0855 10 115.78 11 178.99
H 1 1.0923 2 119.78 18 0.45 | {
"domain": "chemistry.stackexchange",
"id": 13872,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "cheminformatics",
"url": null
} |
pressure
The flex of the walls of the straw doesn't affect this concusion. However it does affect the volume of the straw so if you're using the distance the water enters the straw you will have to correct for a volume increase. If the straw is stretchy the water will be able to enter the straw further for the same pr... | {
"domain": "physics.stackexchange",
"id": 5232,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "pressure",
"url": null
} |
c#, linq
</table>
<table id="t7">
<tr>
<td class="typeheader" colspan="2">
<a href="" class="typeheader" onclick="return toggle('t7');">
<span class="typeglyph" id="t7ud">5</span>IGrouping<String,Search> (2 items)</a>
<a href="... | {
"domain": "codereview.stackexchange",
"id": 27215,
"lm_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#, linq",
"url": null
} |
performance, php, algorithm
The mid result:
Array
(
[0] => Array
(
[0] => Array
(
[name] => Strawberry
[id] => 10
)
[1] => Array
(
[name] => Strawberry
[id] => 60
)
)
[1] => Arra... | {
"domain": "codereview.stackexchange",
"id": 28922,
"lm_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, algorithm",
"url": null
} |
parsing, scala
Title: Text tokenizer example Here is a partial example of a text tokenizer. I'm looking for ways to improve one particular line in this code:
implicit class textFile(val fileName: String) {
def toDict() = {
io.Source.fromFile(fileName).getLines.flatMap(_.split("\\\\r?\\\\n")).toList
}... | {
"domain": "codereview.stackexchange",
"id": 15590,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "parsing, scala",
"url": null
} |
bessel_yn(n1, n2, x) returns an array with the Bessel function|Bessel functions of the first kind of the orders n1 to n2.
### Arguments#
• n
Shall be a scalar or an array of type integer.
• n1
Shall be a non-negative scalar of type integer.
• n2
Shall be a non-negative scalar of type integer.
• x
Shall be a sc... | {
"domain": "fortran-lang.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.97112909472487,
"lm_q1q2_score": 0.8311419567146789,
"lm_q2_score": 0.855851154320682,
"openwebmath_perplexity": 10109.618077243307,
"openwebmath_score": 0.5095717906951904,
"tags":... |
python, performance, python-3.x, web-scraping, lxml
for key, val in data.items():
table_1 += "<p><strong>{}:</strong>{}</p>".format(key, val)
for key, val in extra_data.items():
table_2 += "<p><strong>{}</strong>{}</p>".format(key, val)
return table_1, table_2
def first_table(tree):
retu... | {
"domain": "codereview.stackexchange",
"id": 28274,
"lm_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, python-3.x, web-scraping, lxml",
"url": null
} |
condensed-matter
The Poisson equation with screening, for a point charge $Q$ at the origin, is
$$
\left[\nabla^2 - k_D^2 \right] V(\mathbf{r}) =
-\frac{Q}{\varepsilon_0}\delta(\mathbf{r})
$$
and the solution is
$$
V(r) = \frac{Q}{4\pi\varepsilon_0 r} \exp(-k_D r)
$$
irrespective of whether $Q$ is positive or negative... | {
"domain": "physics.stackexchange",
"id": 52346,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "condensed-matter",
"url": null
} |
electric-circuits, electric-current, electrical-resistance, voltage
If there are no other electrical components, all of the electrical energy is converted into heat energy (right? I mean I think it is right conceptually). But if I cut the wire and add a motor, nothing in the equation changed. The Voltage didn't change... | {
"domain": "physics.stackexchange",
"id": 42223,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electric-circuits, electric-current, electrical-resistance, voltage",
"url": nul... |
-
Nice, i like more the $\equiv$ symbol, maybe im more familiar with it in this cases. – Wyvern666 Jun 16 '13 at 0:21
Your confusion is based on the fact that you are not grouping the expression properly in your head, because of your somewhat inconsistent notation. Let me rewrite it for you: $\lnot(\lnot(\forall x\,\e... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9372107949104866,
"lm_q1q2_score": 0.8175733889015638,
"lm_q2_score": 0.8723473879530491,
"openwebmath_perplexity": 742.1551656284914,
"openwebmath_score": 0.8235580325126648,
... |
# Prove that $4$ divides $3^{2m+1} - 3$
Prove that $4$ divides $3^{2m+1} - 3$.
By plugging in numbers I can see this is true, but I can't figure out a way to prove this, I was thinking maybe proving first that it is divisible by $2$, and concluding its divisible by $4$.
• $3^2=1\pmod{4}\implies3^{2m}=1\pmod{4}\impli... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9835969674838368,
"lm_q1q2_score": 0.8018602109440923,
"lm_q2_score": 0.8152324960856175,
"openwebmath_perplexity": 97.84443753054234,
"openwebmath_score": 0.8891558051109314,
"tag... |
python, pandas, natural-language-processing
I run the code using this snippet
doc_finder = Doc_Finder(sample_corpus)
doc_finder.make_keywords(save=True, size=len(doc_finder.corpus['paper_id']))
The result is two csvs:
The keyword index has a paper_id and keyword pair. Listing each keyword and each paper.
paper_id
ke... | {
"domain": "codereview.stackexchange",
"id": 45251,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, pandas, natural-language-processing",
"url": null
} |
-
The following shows that the only solutions are $$(0,0),(-1,0),(1,2),(1,-2)$$ by using a birational transformation to an Elliptic curve.
1. Birational transformation to an Elliptic curve
Denote $$C: v^2-u^4-u^3-u^2-u=0$$ It is clear that if $u=0$, then $v=0$. For the other case, $u\neq 0$, we can divide by $u^4$: ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9805806472775278,
"lm_q1q2_score": 0.8315007733806027,
"lm_q2_score": 0.8479677583778258,
"openwebmath_perplexity": 218.59380045892868,
"openwebmath_score": 0.9599784016609192,
"ta... |
cc.complexity-theory, randomized-algorithms, space-bounded
I took the four screenshots 0,1,2,3 of this answer in case is doesn't render correctly.
Alexey did not specify that the outputs are bounded-length (that was edited in by Kaveh),
so I do not assume that. Note that L $\subseteq$ NL $\subseteq$ NC2 $... | {
"domain": "cstheory.stackexchange",
"id": 3673,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "cc.complexity-theory, randomized-algorithms, space-bounded",
"url": null
} |
discrete-signals, fourier-transform, frequency
At this point you have all you need. If the magnitude is not zero, the signal is there, and you can see what phase it has:
mag=np.hypot(b,a)
rad=np.atan2(b,a)
deg=rad*180/np.pi
mag,rad
(0.33333333333333326, 29.999999999999876)
As you can see, the amplitudes of the signal... | {
"domain": "dsp.stackexchange",
"id": 10167,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "discrete-signals, fourier-transform, frequency",
"url": null
} |
human-anatomy
This set of slides makes good reading, with things like "less ductile", "elastic behaviour" and "strength in compression" worth looking for:
Mechanics of bones by Phillipe GILLET
A quick search gave many results but of these two shown the first seems very interesting from an engineer's perspective: | {
"domain": "biology.stackexchange",
"id": 9962,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "human-anatomy",
"url": null
} |
quantum-mechanics, operators, angular-momentum, representation-theory, rotation
Now for the particular case of rotations ($\tau = R$) we have that $U(R) = \exp(-i \hat{\textbf{n}} \cdot \textbf{J})$ (incidentally, Ballentine drops the minus signs that he includes earlier in the table on page 69 -- again not pictured b... | {
"domain": "physics.stackexchange",
"id": 93293,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics, operators, angular-momentum, representation-theory, rotation",
... |
navigation, rosbag, amcl
Here, scan is a dict made by parsing the raw csv data. lsmsg is a LaserScan message, with header.stampassigned to ...
Comment by zkytony on 2016-12-18:
rospy.Time.from_sec(scan['time_stamp']) as well
Comment by ahendrix on 2016-12-19:
It looks like you're writing timestamps to the bag file cor... | {
"domain": "robotics.stackexchange",
"id": 26512,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "navigation, rosbag, amcl",
"url": null
} |
beginner, ruby, csv
Title: Reduce columns to produce product keycodes I have written the following code that achieves my desired goal of converting a "raw" CSV file into a keycoded list. The idea is that a person will get the first product they ask for, and English products are coded as blank because they are the defa... | {
"domain": "codereview.stackexchange",
"id": 13184,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "beginner, ruby, csv",
"url": null
} |
quantum-field-theory, renormalization, path-integral, flow, effective-field-theory
$$\Gamma_\Lambda[\phi]=S[\phi],$$
is the mean-field (microscopic) action. Furthermore, when $k=0$, $\Delta S_{k=0}[\varphi]=0$, and $$\Gamma_{k=0}[\phi]=\Gamma[\phi],$$ becomes the exact (quantum) effective action.
By differentiating wi... | {
"domain": "physics.stackexchange",
"id": 83482,
"lm_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, renormalization, path-integral, flow, effective-field-theory... |
python, algorithm, python-3.x, linked-list
global board, win_board
board = [[' ' for _ in range(size)] for __ in range(size)]
win_board = [[' ' for _ in range(size)] for __ in range(size)]
def play_again(p1, p2):
""" Gets input from the player asking if they want to play again """
option = input('Wo... | {
"domain": "codereview.stackexchange",
"id": 36581,
"lm_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, algorithm, python-3.x, linked-list",
"url": null
} |
ros, navigation, subscribe, base-local-planner
Title: navigation stack vs my node
Hallo!
Is it possible to subscribe to user node from base_local_planner?
I'm trying to experiment with obstacle avoidance perfomance of my robot by integrating my emergency stop node that set a flag if an obstacle appears in it's field ... | {
"domain": "robotics.stackexchange",
"id": 11768,
"lm_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, subscribe, base-local-planner",
"url": null
} |
ros
Title: camera calibration
Dear All,
When I try to calibrate microsoft lifecam using the tutorials in the below link :
http://wiki.ros.org/camera_calibration/Tutorials/MonocularCalibration
I got the values. However if I need to convert to ros understandable yaml file, I need to fill in the distortion model and the... | {
"domain": "robotics.stackexchange",
"id": 15487,
"lm_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
} |
c++, performance, object-oriented, beginner, memory-management
Title: Could this depth system for a game be improved? I am still new to C++ and don't have a great insight on my coding yet, so I would be very grateful to anyone and everyone that gives advice.
Also, this code is meant to: keep all of my objects in an or... | {
"domain": "codereview.stackexchange",
"id": 5347,
"lm_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, object-oriented, beginner, memory-management",
"url": null
} |
quantum-mechanics, perturbation-theory, two-level-system
http://www.jkrieger.de/download/quantenmechanik.pdf
Also, note that at $\Delta = 0$, $E_1 = E_2$, because by definition $\Delta = \frac{E_1 - E_2}{2}$.
Edit: Regarding your comment: From the definitions $2\, E_m \equiv E_1+ E_2$ and $2\,\Delta \equiv E_1-E_2$ it... | {
"domain": "physics.stackexchange",
"id": 75283,
"lm_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, perturbation-theory, two-level-system",
"url": null
} |
ros
I suggest you modify your ~/.bashrc file by adding the following line:
export ROS_PACKAGE_PATH=/path/to/usarsim-code:$ROS_PACKAGE_PATH
What do you mean exactly? In /path/to/usarsim-code/usarsim_inf/launch you find the usarsim.launch template file together with some working examples
I did not know the repo by Bil... | {
"domain": "robotics.stackexchange",
"id": 15492,
"lm_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
} |
lidar, ros-melodic
Comment by Yehor on 2020-12-28:
@bfdmetu Hi, I simply moving with navigation stack to the goal in front of the dock station on the map firstly. And then I am looking for cluster with higher intensity in front of the robot. Because, I have attached reflection material on the dock station which has mo... | {
"domain": "robotics.stackexchange",
"id": 34027,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "lidar, ros-melodic",
"url": null
} |
meteorology, atmosphere-modelling, earth-rotation, fluid-dynamics, coriolis
Title: How is centrifugal force identified in equations of fluid motion in the rotating reference system of earth? I spent already days on the following: In one of my meteorology scripts the equations for conservation of momentum in the rotati... | {
"domain": "earthscience.stackexchange",
"id": 2563,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "meteorology, atmosphere-modelling, earth-rotation, fluid-dynamics, coriolis",
... |
vba, excel
To eliminate the last constant I would do
Sub DSA_Total_Hours_Used()
Dim NameMissingFromMaster As Boolean
NameMissingFromMaster = False
Private Sub ExtractTutorsHours(ByVal tutorSheet As Worksheet, ByRef NameMissingFromMaster As Boolean)
Or better yet, I would extract a function to return the bool... | {
"domain": "codereview.stackexchange",
"id": 20452,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "vba, excel",
"url": null
} |
qiskit
self.definition = initialize_circuit.data
def gates_to_uncompute(self):
"""
Call to create a circuit with gates that take the
desired vector to zero.
Returns:
QuantumCircuit: circuit to take self.params vector to |00..0>
"""
q = QuantumRegister(self.num_qubits)
# WATCH ME: ... | {
"domain": "quantumcomputing.stackexchange",
"id": 879,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "qiskit",
"url": null
} |
homework-and-exercises, quantum-field-theory, mathematical-physics, path-integral, functional-derivatives
Title: How to calculate the functional derivative of the functional integral? I study by myself with the QFT, in the page 197 of book of Lewis H. Ryder (2nd edition), The author wrote that he take the functional d... | {
"domain": "physics.stackexchange",
"id": 23315,
"lm_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, quantum-field-theory, mathematical-physics, path-integral,... |
organic-chemistry, stereochemistry, symmetry, chirality
Rotate this diagram (by $180^\circ$ around an axis perpendicular to your screen):
Note that the disks are being viewed from the other side (the left) now. But we can flip them:
Take a close look at this. This is the same molecule as the first, just oriented bac... | {
"domain": "chemistry.stackexchange",
"id": 624,
"lm_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, stereochemistry, symmetry, chirality",
"url": null
} |
python, beginner, python-2.x, tic-tac-toe
main.py
You often see in Python script a following pattern:
def main():
# ...
if __name__ == '__main__':
main()
You can move your code inside this main() function. It's not necessary but usually you'll have a much better performance, since Python handles better code ... | {
"domain": "codereview.stackexchange",
"id": 26863,
"lm_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-2.x, tic-tac-toe",
"url": null
} |
python, algorithm, programming-challenge
Suppose I take only the tallest persons, all having the same maximum height. Their second values must be 0, 1, 2, 3... with no gaps at all, because they only count each other. Therefore, if there were no other persons at all, their second value must be their final index. What a... | {
"domain": "codereview.stackexchange",
"id": 28902,
"lm_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, algorithm, programming-challenge",
"url": null
} |
weighted-graphs, bipartite-matching, bipartite-graph
Here is another straightforward way to prove your idea.
First assume all numbers are distinct. Let us prove by reductio ad absurdum. Suppose the minimum total weight can be reached by a mapping $g$ other than the mapping described in your idea. Then $g$ must contai... | {
"domain": "cs.stackexchange",
"id": 16543,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "weighted-graphs, bipartite-matching, bipartite-graph",
"url": null
} |
c, programming-challenge
Output:
$0.07
$0.01
Yet for some reason the online judge returns a "Wrong Answer" error. What could I be missing? Now I see it. There's a flaw in your logic. Your code first calculates the mean to max precision, then takes the difference between each expense and the mean (still at max precisi... | {
"domain": "codereview.stackexchange",
"id": 8211,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c, programming-challenge",
"url": null
} |
c#, object-oriented, strings, unit-testing, interview-questions
textBuilder.Append((char)rnd.Next(97, 123));
}
textBuilder.Append("ü");
var text = textBuilder.ToString();
// test functions and descriptions
var funcs = new Dictionary<string, Func<string, string>>
{
["Original (ToUpper)... | {
"domain": "codereview.stackexchange",
"id": 29941,
"lm_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, strings, unit-testing, interview-questions",
"url": null... |
python, game, tic-tac-toe, pygame, connect-four
option_text = [self.font_md.render(i, 1, BLACK) for i in options]
option_size = [i.get_rect()[2:] for i in option_text]
option_square_list = []
for i in range(len(options)):
width_offset = (sum(j[0] + 2 for j in option_size[:i])
... | {
"domain": "codereview.stackexchange",
"id": 16526,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, game, tic-tac-toe, pygame, connect-four",
"url": null
} |
openni-kinect, openni-launch
An alternative solution which works for me is to use the dynparam command-line tool from inside your own launch script, e.g.
<node pkg="dynamic_reconfigure" type="dynparam" name="dynparam" args="set /camera/driver depth_registration true" />
which avoids the need to edit the launch files ... | {
"domain": "robotics.stackexchange",
"id": 7292,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "openni-kinect, openni-launch",
"url": null
} |
crystallography, lattices
See google images generated by AFM and you will see how fancy they are.
To the OP: A good way to studying is to rely on multiple references of the subject. Do not take everything literally. The authors are human beings after all with limited knowledge and of course they are not the experts of... | {
"domain": "chemistry.stackexchange",
"id": 13127,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "crystallography, lattices",
"url": null
} |
ros, gazebo, rviz, move-group, ros-indigo
[ WARN] [1488037289.440273725, 0.001000000]: No transmissions were specified in the robot description.
[ WARN] [1488037289.440378551, 0.001000000]: None of the joints in the robot desription matches up to a motor. The robot is uncontrollable.
Warning [gazebo_quadrotor_simple_c... | {
"domain": "robotics.stackexchange",
"id": 27128,
"lm_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, gazebo, rviz, move-group, ros-indigo",
"url": null
} |
blast
Database building:
makeblastdb -in human.1.protein.faa -dbtype prot
Blast command 1 (default):
blastp -query medium_cow.faa -db human.1.protein.faa -outfmt 7 -out test_blast
output:
# BLASTP 2.2.31+
# Query: NP_001180091.1 SH2 domain-containing protein 1B [Bos taurus]
# Database: human.1.protein.faa
# Fields: ... | {
"domain": "bioinformatics.stackexchange",
"id": 525,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "blast",
"url": null
} |
genetics, bioinformatics, dna-sequencing
For each base call, a number of quality predictor values are computed.
Quality predictor values are observable properties of clusters from
which base calls are extracted. These include properties, such as
intensity profiles and signal-to-noise ratios, measure various aspe... | {
"domain": "biology.stackexchange",
"id": 9470,
"lm_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, bioinformatics, dna-sequencing",
"url": null
} |
\lim_{h\to 0}\dfrac{h}{h}=1$$Left hand limit$$= \displaystyle \lim_{h\to 0}\dfrac{f(0-h)-f(0)}{-h}$$$$= \displaystyle \lim_{h\to 0}\dfrac{(2-(0-h))-(2)}{-h}$$$$=\displaystyle \lim_{h\to 0}\dfrac{h}{-h}=-1$$LHL$$\neq$$RHLSo, f(x) is not differentiable at x=0The answer is option (B)Mathematics | {
"domain": "byjus.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9825575137315161,
"lm_q1q2_score": 0.8033139424354829,
"lm_q2_score": 0.8175744739711883,
"openwebmath_perplexity": 6857.01895374182,
"openwebmath_score": 0.8908342719078064,
"tags": null,... |
php, object-oriented
return true;
break;
case 'console':
foreach( $arrReturn as $k => $v ){
if( is_array( $v ) ){
foreach( $v as $n => $m ){
$debugStr .= '<script type="text/javascript">console.log("[D... | {
"domain": "codereview.stackexchange",
"id": 1214,
"lm_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, object-oriented",
"url": null
} |
data-analysis, kepler
Title: Correlation of planet sizes with star sizes? I did my own amateur Kepler data analysis in May of this year of data from Kepler.nasa.gov/Mission/ discoveries. I found a strong correlation between star size and planet size (percentages). 37 of the 44 planets confirmed (84.1%) orbiting M dwar... | {
"domain": "astronomy.stackexchange",
"id": 1086,
"lm_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-analysis, kepler",
"url": null
} |
ros-kinetic, turtlebot3, quaternion
Originally posted by macleonsh on ROS Answers with karma: 26 on 2019-05-09
Post score: 0
I see one possibility. Note you do not tell the robot to go 0.3m. You tell it go some velocity and then tell it to stop at some point in time after it has passed 0.3m. It's likely the code work... | {
"domain": "robotics.stackexchange",
"id": 32989,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros-kinetic, turtlebot3, quaternion",
"url": null
} |
the line being equal to 0. Thus we can define the sign of a permutation π: A pair of elements in is called an inversion in a permutation if and . An example of a simple matrix by understanding how the corresponding linear transformation is related to the multiplication... Transformation is related to the matrix-vector ... | {
"domain": "fsada.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9728307668889047,
"lm_q1q2_score": 0.8229588319199258,
"lm_q2_score": 0.845942439250491,
"openwebmath_perplexity": 423.1668251366979,
"openwebmath_score": 0.9145632386207581,
"tags": null,... |
quantum-mechanics, heisenberg-uncertainty-principle, measurement-problem, commutator
Title: Position and potential Energy Why are the position and potential energy of a particle able to be measured precisely in Quantum Mechanics? I mean why do they commute with each other? Intuitively, if the potential energy is a fun... | {
"domain": "physics.stackexchange",
"id": 13076,
"lm_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, heisenberg-uncertainty-principle, measurement-problem, commutat... |
robotic-arm
Add to the positional requirements any task needs that relate to the orientation of the tool. Worst-case is that you need three positional degrees of freedom, plus three degrees of orientation. You might refer to this as (x, y, z, roll, pitch, yaw), although other ways of modelling orientation are also... | {
"domain": "robotics.stackexchange",
"id": 1860,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "robotic-arm",
"url": null
} |
I have never used induction to justify the derivative to a function, so I don't know where to start. Does anyone have some tips?
You can start by differentiating the function and looking for a pattern in the successive derivatives. Why isn't that obvious?
FactChecker
Gold Member
The general outline of a basic inductiv... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9773708045809529,
"lm_q1q2_score": 0.8608653503049177,
"lm_q2_score": 0.8807970795424088,
"openwebmath_perplexity": 458.6474585939411,
"openwebmath_score": 0.8590039014816284,
... |
quantum-field-theory, symmetry, symmetry-breaking, parity
or alternatively
$$\psi_L \rightarrow e^{i\alpha T_a}\psi_L\qquad \text{and}\qquad \psi_R\rightarrow e^{-i\alpha T_a}\psi_R.$$
I believe Srednicki is just writing the same thing in a matrix version such that one can compare generators directly, he then motivat... | {
"domain": "physics.stackexchange",
"id": 67603,
"lm_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, symmetry-breaking, parity",
"url": null
} |
c++, array, matrix, iterator, c++20
Title: 2d Grid - Iterating by Rows / Cells - Take #2 Preface
Following my first POC version:
2d Grid - Iterating by Rows / Cells
I have gained much more understanding, and present
A new version
A new version is ready, with templates and an attempt at using reusable classes, Iterable... | {
"domain": "codereview.stackexchange",
"id": 42493,
"lm_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++, array, matrix, iterator, c++20",
"url": null
} |
φ to grow past 360°; the sine and cosine are still defined as y/r and x/r, and repeat their previous values. Domain and Range of Sine and Cosine The domain of sine and cosine is all real. Real life application requires fast calculation capabilities as much as possible. Applications of this branch of mathematics in real... | {
"domain": "marcodoriaxgenova.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9902915223724212,
"lm_q1q2_score": 0.820891080723575,
"lm_q2_score": 0.8289388146603365,
"openwebmath_perplexity": 518.6406767028611,
"openwebmath_score": 0.7474116683006287,
... |
java
@Test
public void given3000_3300_return3() {
assertEquals(3, solution1.solution(3000, 3300));
}
}
I'm specially concerned (and confused) about the 50% on correctness.
PS: it this is off-topic just let me know and I'll ask on stackoverflow.
The only reasons I can think of that your code was deeme... | {
"domain": "codereview.stackexchange",
"id": 30284,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java",
"url": null
} |
### Show Tags
Updated on: 26 Nov 2018, 04:30
5
53
00:00
Difficulty:
75% (hard)
Question Stats:
55% (02:11) correct 45% (02:12) wrong based on 758 sessions
### HideShow timer Statistics
The figure above shows the dimensions of a semicircular cross section of a one-way tunnel. The single traffic lane is 12 feet wi... | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9161096135894201,
"lm_q1q2_score": 0.8223872965762202,
"lm_q2_score": 0.8976953023710936,
"openwebmath_perplexity": 2044.2546697379532,
"openwebmath_score": 0.8130389451980591,
"tags": ... |
c++, c++11, pointers
Title: Implementation of unique_ptr and make_unique for aligned memory I am working on a version of std::unique_ptr and std::make_unique for aligned memory. The purpose of this is vectorization, e.g., SSE or AVX, which has higher alignment requirements than the underlying types.
My header providin... | {
"domain": "codereview.stackexchange",
"id": 13572,
"lm_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, pointers",
"url": null
} |
thermodynamics, physical-chemistry, ideal-gas
The statement only applies to a reversible isobaric process where the gas is always in equilibrium with the surroundings. Otherwise, the pressure is only the external pressure. The more general integral is
$$W=\int_{V1}^{V2}P_{ext}dV$$
Where $P_{ext}$ is a constant extern... | {
"domain": "physics.stackexchange",
"id": 86818,
"lm_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, physical-chemistry, ideal-gas",
"url": null
} |
mechanical-engineering, gears
If the positive sign is clockwise, how can I add the torque T5 and T6 to this free body diagram? In this answer, I'm going to use the sign convention that torques and angular velocities are positive if their direction points to the right (left would be an equally valid alternative for thi... | {
"domain": "engineering.stackexchange",
"id": 787,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "mechanical-engineering, gears",
"url": null
} |
differential-geometry, curvature, vector-fields
$=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!=\!$
See here a 3d view of Figure-02.
A second example is shown in Figure-02. Here we want to make a parallel transport of the vector $\mathbf{u}_0$ along the $90^... | {
"domain": "physics.stackexchange",
"id": 72550,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "differential-geometry, curvature, vector-fields",
"url": null
} |
ab = 91;
ac = 39,
bc = 21.
Multiply these three: $$(abc)^2 = 91*39*21 = (7*13)*(3*13)*(3*7) = 3^2*7^2*13^2$$ --> $$abc=3*7*13=273$$.
_________________
##### General Discussion
VP
Joined: 02 Jul 2012
Posts: 1169
Location: India
Concentration: Strategy
GMAT 1: 740 Q49 V42
GPA: 3.8
WE: Engineering (Energy and Utilities)... | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes\n2. Yes\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 1,
"lm_q1q2_score": 0.8459424295406088,
"lm_q2_score": 0.8459424295406088,
"openwebmath_perplexity": 3550.65798185707,
"openwebmath_score": 0.7442860007286072,
"tags": null,
"url": "h... |
c++, memory-management
public:
ObjectPool(size_t maxElements)
{
activeElements = 0;
elements.resize(maxElements);
}
size_t size() const
{
return activeElements;
}
Element& at(size_t index)
{
if (index >= activeElements) {
throw std::out_of_r... | {
"domain": "codereview.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": "c++, memory-management",
"url": null
} |
many-body, quasiparticles, phonons
So far, so good. Now we can also write the Green's function using the self energy. If $\varepsilon(k)$ is the dispersion of the non-interacting particle, then the self energy is defined via
$$G(k,\omega) = \frac{1}{\omega - \varepsilon(k) - \Sigma(k,\omega) + i\eta}$$
It is mentioned... | {
"domain": "physics.stackexchange",
"id": 4137,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "many-body, quasiparticles, phonons",
"url": null
} |
haskell
dropP :: Pair Int -> (Int, Int)
dropP (Pair x y) = (abs x, abs y)
liftP :: (Int, Int) -> Pair Int
liftP (x, y) = Pair x y
neighbors :: Pair Int -> Int -> BiMorph Int -> Neighbors
neighbors p e (BiMorph f g) =
map dropP $ concat [(cartesianPairs f p), (cartesianPairs g p), (cartesianDoubles f g p)]
... | {
"domain": "codereview.stackexchange",
"id": 2507,
"lm_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",
"url": null
} |
a.
Part (a) was generally well answered. In (b), many candidates tested the result for n = 1 instead of n = 0. It has been suggested that the reason for this was a misunderstanding of the symbol N with some candidates believing it to denote the positive integers. It is important for candidates to be familiar with IB n... | {
"domain": "iitianacademy.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9865717432839349,
"lm_q1q2_score": 0.8019519178725977,
"lm_q2_score": 0.8128673087708699,
"openwebmath_perplexity": 3847.6271721534063,
"openwebmath_score": 0.795731782913208,
"tag... |
java, strings, file, reinventing-the-wheel, unix
3) Design
3.1) Modularity
You should follow the design rule of "Code to the Interface". Almost all of your methods break this rule.
Instead of specifying concrete implementations as arguments and/or return value:
private HashMap<File, ArrayList<String>> getInput()
Spec... | {
"domain": "codereview.stackexchange",
"id": 30774,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, strings, file, reinventing-the-wheel, unix",
"url": null
} |
Are you sure your answer is wrong? Maybe you only made a mistake with the units or sign (negative or positive) somewhere?
4. Nov 1, 2014
### stevendaryl
Staff Emeritus
Hmm. I believe your formulas are correct. The difference between mgh and mg(h+x) is only whether you take into account the extra distance the mass fa... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9697854164256366,
"lm_q1q2_score": 0.8143617555257747,
"lm_q2_score": 0.8397339676722393,
"openwebmath_perplexity": 1426.043946726614,
"openwebmath_score": 0.5080108046531677,
... |
programming-languages, c
C - C is a great language that enables one of the widest range of micro-controllers to interface with (assembly language is the probably the widest, but has a larger learning curve and can add to development times). It is also more respected in the engineering community than the other options... | {
"domain": "robotics.stackexchange",
"id": 1017,
"lm_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-languages, c",
"url": null
} |
newtonian-mechanics, forces, momentum, conservation-laws, free-body-diagram
Now let's go to your second question: why don't you see this on Earth? Well, you do, as shown in the gun example. But why don't you see that with the matchbox?
Well, you do see it. But, when you push the box forward, you experience a force bac... | {
"domain": "physics.stackexchange",
"id": 52217,
"lm_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, momentum, conservation-laws, free-body-diagram",
"u... |
c++, performance, algorithm, memory-optimization
Here is the transposition table class: (heavily inspired by blog.gamesolver.org)
// Inspired by http://blog.gamesolver.org/solving-connect-four/07-transposition-table/
#ifndef TRANSPOSITION_TABLE_HPP
#define TRANSPOSITION_TABLE_HPP
#include<vector>
#include<cstring>
#... | {
"domain": "codereview.stackexchange",
"id": 41410,
"lm_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, algorithm, memory-optimization",
"url": null
} |
• OK, I know that $\mathbb Z_p$ is cyclic, but I must think about the "lifting". Sep 17 '15 at 18:59
• Not really, since we need an order divisible by $p^{k-1}$. Cauchy's theorem would only give us an element whose order is the product of all distinct prime divisors of $(p-1)\cdot p$ (we get that since our group is abe... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9857180656553329,
"lm_q1q2_score": 0.8058979290120561,
"lm_q2_score": 0.8175744739711883,
"openwebmath_perplexity": 87.86788671858032,
"openwebmath_score": 0.9194323420524597,
... |
reinforcement-learning, value-functions, policies, bellman-equations
$$
\begin{align*}
v_*(s) &= \sum_i \pi_*(a_i|s)q_*(s, a_i) \\
&= q_\text{optimal} \Big( \pi_*(a_2|s) + \pi_*(a_4|s) \Big) + \sum_{a \in a_1, a_3, a_5} \pi_*(a|s)q_*(s, a) \\
&= q_\text{optimal}
\end{align*}
$$
The optimal actions are optimal in this ... | {
"domain": "ai.stackexchange",
"id": 2973,
"lm_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, value-functions, policies, bellman-equations",
"url": null
} |
moon, tides
Instead, the tides are dynamic responses to the tidal forcing functions from the Moon and the Sun, with the orbits of the three bodies about one another, the Earth's rotation rate, and the geometry of the oceanic basins all playing roles in the dynamic response. For any point on the surface of the Earth's ... | {
"domain": "earthscience.stackexchange",
"id": 1236,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "moon, tides",
"url": null
} |
electromagnetism, electrostatics, electric-circuits, capacitance
Title: How the capacitance of this very small capacitor too large?
You can see that this is a very small capacitor and rated $100\mu F$.
It has metal sheets of area $1.1cm^2$ each. And there was a thin paper for insulation. Its thickness would be aproxi... | {
"domain": "physics.stackexchange",
"id": 84695,
"lm_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, electric-circuits, capacitance",
"url": null
} |
of nodes in a binary tree. You can also use BFS to determine the level of each node. Breadth-first search is a chart traversal calculation that begins navigating the diagram from the root node and investigates all the neighboring nodes. He also figures out the time complexity of these algorithms. Many problems in compu... | {
"domain": "tuttosulromanzo.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9843363494503272,
"lm_q1q2_score": 0.8181243115413387,
"lm_q2_score": 0.831143045767024,
"openwebmath_perplexity": 773.6608639144047,
"openwebmath_score": 0.5191403031349182,
... |
programming-challenge, interview-questions, functional-programming, scala, memoization
Here I've given the Set, now called seen, a default value (empty) so it doesn't have to be specified when invoked.
(1 to 247).filter(isHappyNumber(_)).foreach(println)
UPDATE
Ah, I see that I've missed the point and purpose of your... | {
"domain": "codereview.stackexchange",
"id": 39383,
"lm_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-challenge, interview-questions, functional-programming, scala, memo... |
javascript, d3.js
update(data, team);
function update(data, team) {
var ttlKey = data.columns.slice(1, 3);
var teamKey = ["Woman" + team, "Man" + team]
x0.domain(["Women & Men"]);
x1.domain(ttlKey).rangeRound([0, x0.bandwidth()]);
x2.domain(teamKey).rangeRound([0, x0.bandwidth()]);
y.dom... | {
"domain": "codereview.stackexchange",
"id": 30706,
"lm_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, d3.js",
"url": null
} |
newtonian-mechanics, energy-conservation, rotational-dynamics, friction, dissipation
Title: Why does a rolling sphere stop? I've just started studying Rotational Mechanics and one thing I'm confused about is that if friction is equal to zero when a body is rolling purely.. then why does a rolling body e.g. sphere.. st... | {
"domain": "physics.stackexchange",
"id": 100039,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "newtonian-mechanics, energy-conservation, rotational-dynamics, friction, dissipat... |
homework-and-exercises, special-relativity, gravity, frequency
Title: Spaceship Doppler frequency A spaceship starts falling under gravity with an acceleration $g$ as measured by an observer Barry at rest on Earth. At the instant that the ship starts to fall, an astronaut Harry at the base of the rocket ship sends a l... | {
"domain": "physics.stackexchange",
"id": 16478,
"lm_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, special-relativity, gravity, frequency",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.