text stringlengths 49 10.4k | source dict |
|---|---|
Using a recurrence identity satisfied by the modified Bessel function of the first kind, we can simplify the expression returned, like so:
Integrate[x^2 Exp[-a x^2 - b x^4], {x, -∞, ∞}, Assumptions -> {a > 0, b > 0}] /.
BesselI[5/4, a^2/(8 b)] ->
BesselI[-3/4, a^2/(8 b)] - 4 b/a^2 BesselI[1/4, a^2/(8 b)] // FullSimpli... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9585377272885904,
"lm_q1q2_score": 0.8128090860880977,
"lm_q2_score": 0.8479677564567912,
"openwebmath_perplexity": 982.0931933330162,
"openwebmath_score": 0.6407718658447266,
"tag... |
c++, algorithm, recursion, template, c++20
That should give you an idea of how to create recursive concepts. It unfortunately requires some puzzle solving skills. But now you should be able to create a constraint for Pred. At first glance, you don't even need to create a new concept, you only need to create a recursiv... | {
"domain": "codereview.stackexchange",
"id": 45416,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, algorithm, recursion, template, c++20",
"url": null
} |
Solution for $x^9 + x^6 + x^4 - x^2 + 1=0$
I learned that $5$ and higher order equations can not all be solved. I read the Abel-Ruffini theorem.
My question:
Let $$x^9+x^6+x^4-x^2+1=0$$
This equation can be expressed in the following way:
$$x^9 + x^6 + x^4 - x^2 + 1=(x^4 + x + 1) (x^5 - x + 1)=0$$
Yes, I know the... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.985496416900847,
"lm_q1q2_score": 0.819088493535459,
"lm_q2_score": 0.8311430457670241,
"openwebmath_perplexity": 219.41864018251727,
"openwebmath_score": 0.8507330417633057,
"tags... |
Now for the mathematics. We use the Polya Enumeration Theorem as conjectured by the OP. To do this we need the cycle index of the action on the edges of the group that permutes the vertices in partition $$A$$ of size $$n$$ according to the symmetric group $$S_n$$ and the vertices in partition $$B$$ of size $$m$$ accord... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9777138144607745,
"lm_q1q2_score": 0.8562690370894727,
"lm_q2_score": 0.8757869884059266,
"openwebmath_perplexity": 1273.553374674751,
"openwebmath_score": 0.5907314419746399,
"tag... |
game, objective-c, sprite-kit
I am open to any kind of feedback, but the most important thing is to increase the performance in any way possible. I've tried to do as much of this as I can, but it is still not perfect. I will note that the reason I have the calculatedPosition property in the DWBlock class is to save ... | {
"domain": "codereview.stackexchange",
"id": 9978,
"lm_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, objective-c, sprite-kit",
"url": null
} |
ros, urdf, moveit, moveit-setup-assistant
[ERROR] [1623125556.589171361]: Could not load model 'package://motoman_bmda3_support/meshes/bmda3/visual/base.stl' for link 'base': OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource package://motoman_bmda3_support/meshes/bmda3/visual/base.stl in resource group A... | {
"domain": "robotics.stackexchange",
"id": 36502,
"lm_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, urdf, moveit, moveit-setup-assistant",
"url": null
} |
#### Circular Membrane Oscillation Using Maple - Application Center
Circular Membrane Oscillation Using Maple Waterloo Maple Inc - 2002 adapted from the worksheet of D Frenkel , L Golebiowski and R Portugal CBPF and PUC-Rio/1996 This worksheet presents an analysis of the classic problem of the vibrating circular membr... | {
"domain": "inhouse-organizing.nl",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9863631639168357,
"lm_q1q2_score": 0.8176347056693629,
"lm_q2_score": 0.8289388083214156,
"openwebmath_perplexity": 1551.0678645765474,
"openwebmath_score": 0.317546099424362... |
c#, sql, sql-server
{
var number = new XElement("PhoneNumber");
numbers.Add(number);
number.Add(new XAttribute("phoneHome", homeNumbers[i]));
number.Add(new XAttribute("phoneWork", workNumbers[i]));
} | {
"domain": "codereview.stackexchange",
"id": 11164,
"lm_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, sql-server",
"url": null
} |
Now, note that $$A - 5I = \begin{bmatrix} -1 & 0 & -2 \\ 2 & 0 &4 \\ 0 & 0 & 0\end{bmatrix}$$. This matrix has rank $$1$$ since the second row is $$-2$$ times the first row and the third row is a row of $$0$$'s. Hence, the nullity of $$A-5I$$ is $$2$$, implying that the geometric multiplicity of $$5$$ is $$2$$.
So $$A... | {
"domain": "carleton.ca",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9944450749670489,
"lm_q1q2_score": 0.8035784676546466,
"lm_q2_score": 0.8080672204860316,
"openwebmath_perplexity": 57.752429879846076,
"openwebmath_score": 0.9849288463592529,
"tags": n... |
species-identification, ornithology
Title: Bird identification from Nepal I just stumbeld across a picture and wonder which species it is?
I took the below picture of a bird, probably a raptor, in mid-January 2011, 7 pm, on the Annapurna Trek in Nepal. My altitude was around 2000 m.
Since I took the picture a long... | {
"domain": "biology.stackexchange",
"id": 8402,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "species-identification, ornithology",
"url": null
} |
special-relativity, relativity, time-dilation
Each observer is stationary and everything else is moving, in each individual inertial (constant speed) frame. If both observers are heading back towards Earth from the same distance, and the same speed, they will both agree on the rate that things are happening on Earth, ... | {
"domain": "physics.stackexchange",
"id": 41601,
"lm_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, relativity, time-dilation",
"url": null
} |
java, beginner, strings, edit-distance
Wrong, unless it's your name and you've registered the top-level domain arrays. Seriously, use a personal package prefix, even for toy code.
import java.util.Hashtable;
Hashtable still exists? :D Forget it, and use HashMap (it's about the same, but not synchronized and much more... | {
"domain": "codereview.stackexchange",
"id": 13147,
"lm_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, strings, edit-distance",
"url": null
} |
python, pandas
Title: Performance issue on updating a Pandas DataFrame with Series based on DateRange I have two Pandas data frames: one with Daily data and one with Weekly data.
I want to add the weekly data to each row of the daily data for each group of column A.
For example, for each row on the daily data frame fr... | {
"domain": "codereview.stackexchange",
"id": 43520,
"lm_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",
"url": null
} |
python, beginner, parsing
For basically everything in Python, use underscores_in_names instead of camelCase or other conventions. The only exception is for class names use PascalCase.
Always use with syntax when dealing with files. Using the with keyword, prevents some common errors that can happen when using open and... | {
"domain": "codereview.stackexchange",
"id": 8324,
"lm_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, parsing",
"url": null
} |
javascript, performance, jquery, css, memory-management
/* create control buttons */
if(_settings.controls){
_createControls();
}
/* create navigation bar */
if(_settings.navigation){
_createNavigation();
}
/* start jRCarousel if autoplay */
if(_settings.autoplay){
_playjRCarou... | {
"domain": "codereview.stackexchange",
"id": 17038,
"lm_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, performance, jquery, css, memory-management",
"url": null
} |
java, algorithm, complexity, cyclomatic-complexity
Algorithmic time complexity, as we commonly understand it, is a measure of how an algorithm scales in terms of its input. We're usually interested in asymptotic complexity, meaning we want to see how it performs in the generalized, large-scale cases. It is the answer ... | {
"domain": "codereview.stackexchange",
"id": 27983,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, algorithm, complexity, cyclomatic-complexity",
"url": null
} |
java, random, simulation, statistics, data-visualization
if (direction == 0) {
path.append("L");
}
else {
path.append("R");
slotIndex++;
}
}
System.out.println(path.toString());
slots[slotIndex]++;
}
} Java... | {
"domain": "codereview.stackexchange",
"id": 17791,
"lm_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, random, simulation, statistics, data-visualization",
"url": null
} |
optimization, c, cryptography
len = strlen(encrypted_pass);
if(len == 15)//DES-based algorithm where encryped password is 13 characters
{
if(encrypted_pass[len-2] == '\r')
{
encrypted_pass[len-2] = '\0';//for \r\n newline character
}
}
else if(len == 14)//DES-based algorithm where encrype... | {
"domain": "codereview.stackexchange",
"id": 495,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "optimization, c, cryptography",
"url": null
} |
homework-and-exercises, newtonian-mechanics, reference-frames
So accordingly,
$u=-7m/s$
$S=60m$
$a=g=9.8m/s^2$
So using $S=ut+\frac{at^2}{2}$ I got the answer of time as $4.28s$.
But what if I changed the observer and the observer too is in the balloon so with respect to the observer in the balloon the initial velocit... | {
"domain": "physics.stackexchange",
"id": 83692,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "homework-and-exercises, newtonian-mechanics, reference-frames",
"url": null
} |
physical-chemistry, experimental-chemistry
Title: XAS spectroscopy - Differences in magnitude of 2p SOC and 3d SOC? Within L-edge x-ray absorption spectroscopy, the spin-orbit coupling within the 2p shell results in the splitting of the L edge into L3 and L2 edges.As given in the following paper http://dx.doi.org/10.1... | {
"domain": "chemistry.stackexchange",
"id": 11498,
"lm_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, experimental-chemistry",
"url": null
} |
php, drupal
$savedSearchData = $this->dbGetSearchDataForHash($hash);
$paramArgs = [
'search_type' => $savedSearchData['param_search_type'],
'search_location_key' => $savedSearchData['param_search_location_key'],
'search_location' => $savedSearchData['param_search_location']... | {
"domain": "codereview.stackexchange",
"id": 33849,
"lm_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, drupal",
"url": null
} |
ros-melodic
// Here "pose" is the position of the object "id" in target frame.
ROS_INFO("%s [x,y,z] [x,y,z,w] in \"%s\" frame: [%f,%f,%f] [%f,%f,%f,%f]",
objectFrameId.c_str(), targetFrameId.c_str(),
pose.getOrigin().x(), pose.getOrigin().y(), pose.getOri... | {
"domain": "robotics.stackexchange",
"id": 37359,
"lm_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-melodic",
"url": null
} |
quantum-mechanics, fermions, pauli-exclusion-principle, quantum-states
Title: How is Pauli's exclusion principle valid for electrons of two hydrogen atoms in ground state, having same spin? Suppose we have two hydrogen atoms in the ground state with spin of both electrons pointing upwards. Then the two electrons are i... | {
"domain": "physics.stackexchange",
"id": 57909,
"lm_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, fermions, pauli-exclusion-principle, quantum-states",
"url": ... |
ros, geometry, transform
//compute error correction for node 1
err = new tf::Vector3(vactual2.x() - vactual1.x(),vactual2.y() - vactual1.y(), 0);
factor = - 0.5 * (dist12 - 1.0);
tmp1 = new tf::Vector3(factor * err->x(), factor * err->y(), 0);
err = new tf::Vector3(vactual3.x() - vactual1.x(), vactual3... | {
"domain": "robotics.stackexchange",
"id": 13193,
"lm_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, geometry, transform",
"url": null
} |
control, quadcopter, pid
Title: How do I find the transfer function for my quadcopter altitude system? This is not so much of a how but if I am right so far. I am looking at the z-axis now only. The linearized equation of motion for the thrust in the z-direction is:
$$
T=m\cdot \ddot{z}+mg,
$$
where $m$ is the mass, $... | {
"domain": "robotics.stackexchange",
"id": 2451,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "control, quadcopter, pid",
"url": null
} |
condensed-matter, quantum-hall-effect, topological-insulators, majorana-fermions
G. Tkachov, and E. M. Hankiewicz. “Spin-helical transport in normal and superconducting topological insulators.” physica status solidi (b) 250, no. 2 (2013): 215. (arXiv)
and I will not repeat it here. In the case of graphene, as discuss... | {
"domain": "physics.stackexchange",
"id": 10473,
"lm_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, quantum-hall-effect, topological-insulators, majorana-fermions",... |
quantum-mechanics, hilbert-space, operators, symmetry
Take a state $|\mathbf{x}'\rangle$
Translate it by some infinitesimal amount $\text{d}\mathbf{x}'$ using the translation operator
Act on it with the position operator, $\mathbf{\hat{x}}$.
By definition, translating the state $|\mathbf{x}'\rangle$ by $\text{d}\math... | {
"domain": "physics.stackexchange",
"id": 71459,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics, hilbert-space, operators, symmetry",
"url": null
} |
16: Finals week: comprehensive final exam. In this lecture, we show how Laplace’s equation arises naturally as a condition to describe steady-state temperature distributions of the 1D and 2D heat equations. Equation (1) is known as a one-dimensional diffusion equation, also often referred to as a heat equation. In part... | {
"domain": "ilovebet.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9835969636371975,
"lm_q1q2_score": 0.8041637701453398,
"lm_q2_score": 0.8175744739711883,
"openwebmath_perplexity": 746.7859159697898,
"openwebmath_score": 0.813318133354187,
"tags":... |
parameterized-complexity, fixed-parameter-tractable
Title: Polynomial kernel for $k$-FLIP SAT on $3$-CNF formulas The k-FLIP SAT parametrized problem is defined as:
Input: a 3-CNF formula $\varphi$ with $n$ variables and a truth assignment $\sigma : [n] \to \{0,1\}$
Parameter: $k$
Question: can we transform the assign... | {
"domain": "cstheory.stackexchange",
"id": 3531,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "parameterized-complexity, fixed-parameter-tractable",
"url": null
} |
optics, geometric-optics
EDIT:::Clarifications
This question is the result of a debate with my friend, who says the room would be dark and me who says otherwise.
Now being said that let's move to specifics...let's assume that the room is a cuboid and the light source is say a light bulb i.e. an isotropic source like a... | {
"domain": "physics.stackexchange",
"id": 1818,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "optics, geometric-optics",
"url": null
} |
c#, wpf
var app = new App();
app.InitializeComponent();
app.Run();
}
}
SingleInstanceApplicationLock will then be an internal sealed class implementing IDisposable (where you release resources you acquired). AcquireExclusiveLock() may even be lazy-load the mutex (I'd avoid to complicate things if ... | {
"domain": "codereview.stackexchange",
"id": 21905,
"lm_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#, wpf",
"url": null
} |
I'm looking to solve some matrix equations. One of the equations involves a commutator, so my question is as follows: let $A$ be a skew-self-adjoint, traceless matrix, does the equation $[X,Y] = A$ always have a self-adjoint solution? For every size of matrices.
I hope that this is a well-known fact. Perhaps it is rel... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9770226327661525,
"lm_q1q2_score": 0.8077161294103967,
"lm_q2_score": 0.8267117898012104,
"openwebmath_perplexity": 128.27317110257363,
"openwebmath_score": 0.9635911583900452,
"ta... |
special-relativity, angular-momentum, symmetry, field-theory, noethers-theorem
that is, in turn:
$$\vec{P} = M\frac{d}{dt}\left( \frac{1}{M}\int_{\mathbb R^3}d^3x T^{00}(t, \vec{x})\:\:\vec{x}\:\:\right) \quad (1)$$
Where I have introduced the total energy of the system in the considered reference frame (which is a c... | {
"domain": "physics.stackexchange",
"id": 11719,
"lm_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, angular-momentum, symmetry, field-theory, noethers-theorem",
... |
newtonian-mechanics, classical-mechanics, gravity, forces, astrophysics
Title: Universal gravity at small distance Could it be that there is simply a maximum gravitational force that two bodies of finite mass can exert on one another? This would occur at $r=0$, so maybe there is some really really really small $a$ in ... | {
"domain": "physics.stackexchange",
"id": 13311,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "newtonian-mechanics, classical-mechanics, gravity, forces, astrophysics",
"url":... |
optics, visible-light, electromagnetic-radiation, photons, geometric-optics
Title: Comprehensive Nature of Light: Transverse vs Longitudinal Waves and Ray Optics ----------I understand that we consider light as a transverse wave in the sense that light is composed of E&M fields oscillating perpendicular to each other ... | {
"domain": "physics.stackexchange",
"id": 59923,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "optics, visible-light, electromagnetic-radiation, photons, geometric-optics",
"u... |
c#, beginner, object-oriented, winforms, inheritance
List<WorkerTableRow> source = null;
try
{
using (ModelContext model = new ModelContext())
{
Count = model.Workers.Count();
IEnumerable<WorkerTableRow> rows = model.Work... | {
"domain": "codereview.stackexchange",
"id": 35380,
"lm_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, object-oriented, winforms, inheritance",
"url": null
} |
optics, refraction
Title: Conditions for having refractive index less than unity? Is it possible to have an index of refraction, $n < 1$, giving the "illusion" of a speed greater than $c$.
As far as I understand it, is only the phase-velocity (which does not carry any information) that exceeds the speed of light.
Bu... | {
"domain": "physics.stackexchange",
"id": 22522,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "optics, refraction",
"url": null
} |
black-holes, hawking-radiation, qft-in-curved-spacetime
Notice then that energy is conserved in the process: the virtual particle pair is creating conserving energy, the negative energy one is absorbed by the black hole, while the positive energy one escapes. Far away, one can detect the positive energy particle and f... | {
"domain": "physics.stackexchange",
"id": 84796,
"lm_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, hawking-radiation, qft-in-curved-spacetime",
"url": null
} |
quantum-mechanics, classical-mechanics, hamiltonian-formalism
\implies & \omega(u,v) = 0\end{align}
which is a contradiction because symplectic forms are non-degenerate by definition. Therefore, no classical Hamiltonian cloning map exists.
So, what does this result actually show? Are the assumptions of the no-cloning ... | {
"domain": "physics.stackexchange",
"id": 35793,
"lm_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, classical-mechanics, hamiltonian-formalism",
"url": null
} |
java, homework, finance
Other Code Comments
Since I'm at it I'll throw in a few comments on the code as well
roundDouble(double)
If you go with BigDecimal this will likely be a moot point.
roundDouble(double) is unecessarily complicated. In general you need to be careful when converting between double and int value... | {
"domain": "codereview.stackexchange",
"id": 2429,
"lm_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, homework, finance",
"url": null
} |
turing-machines, enumeration
Title: Is the set of non-deterministic Turing machines countable? We know that deterministic TMs are countable (enumeration). Does the same hold for NTMs? Are TMs and NTMS equinumerous? Why is the class of DTM countable? Because you can code every DTM as a string (the program) over some al... | {
"domain": "cs.stackexchange",
"id": 2012,
"lm_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, enumeration",
"url": null
} |
c++, c++17, template-meta-programming, stl, doxygen
* `std::is_nothrow_move_constructible_v<T>`.
*
* @return `*this`
* @param other The vector to move from.
*/
static_vector& operator=(static_vector&& other)
noexcept(std::is_nothrow_move_constructible_v<T>)
... | {
"domain": "codereview.stackexchange",
"id": 35777,
"lm_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++17, template-meta-programming, stl, doxygen",
"url": null
} |
quantum-mechanics, schroedinger-equation
Title: Do we always ignore zero energy solutions to the (one dimensional) Schrödinger equation? When we solve the Schrödinger equation on an infinite domain with a given potential $U$, much of the time the lowest possible energy for a solution corresponds to a non-zero energy. ... | {
"domain": "physics.stackexchange",
"id": 7546,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics, schroedinger-equation",
"url": null
} |
condensed-matter, solid-state-physics
now the $H(k)$ is:
$$H(k)=\left(\begin{array}{cc}{B/2} & {A^{*}} \\ {A} & {B/2}\end{array}\right)$$
It seems that the diagonalization results are different if use these two kinds of $H(k)$.
I think I may make some mistakes when using the first way? If you do the diagonalisation... | {
"domain": "physics.stackexchange",
"id": 62970,
"lm_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, solid-state-physics",
"url": null
} |
physical-chemistry, gas-laws
Let $x$ be the decrease in pressure of both $\ce{CO}$ and $\ce{Cl_2}$
\begin{array}{lcccc}
& \ce{CO &+& Cl_2 &<=> &COCl_2}\\\hline
\text{Initial pressure of substance} & 342 && 352 && 0\\
\text{Final pressure of substance} & 342-x && 352-x && x\\\hline
\end{array}
$$342 - x + 352 - x + ... | {
"domain": "chemistry.stackexchange",
"id": 8949,
"lm_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, gas-laws",
"url": null
} |
c++, performance, algorithm, matrix
Title: Determinant of a binary matrix I'm looking for the best and fastest way to do a determinant, for determinants until 15x15.
int Determinant(const vector<vector<int> > &a,int n)
{
int i,j,j1,j2;
int det = 0;
vector<vector<int> > m(n, vector<int>(n));
if (n == 1) {... | {
"domain": "codereview.stackexchange",
"id": 3900,
"lm_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, matrix",
"url": null
} |
c++, boost
equality %= relational
>> *(
(qi::string("==") > relational)[make_bin] |
(qi::string("!=") > relational)[make_bin]
);
relational %= additive
>> *(
(qi::string("<") > relational)[make_bin] |
(qi::string("<=") > relational)[make_bin] |
(qi::string(">") > relational)[mak... | {
"domain": "codereview.stackexchange",
"id": 38663,
"lm_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++, boost",
"url": null
} |
ros, pose, ros-melodic
def some_service_srv(self, req):
# some irrelevant stuff happening here
# this is where the actual thing shall happen
obj.pose.position.x = v['pose'][0]
obj.pose.position.y = v['pose'][1]
obj.pose.position.z = v['pose'][2]
rotation_angle = v['pos... | {
"domain": "robotics.stackexchange",
"id": 32407,
"lm_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, pose, ros-melodic",
"url": null
} |
# Negative inverse trig functions
I was practising my integration earlier and for one question I got $-\arccos(x - 2)$, while the book has $\arccos(2 - x)$.
The answers seems so close and I was wondering (a) am I right? But more importantly, (b) is there some relationship between $-\arccos(-x)$ and $\arccos x$. More ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9697854094395751,
"lm_q1q2_score": 0.82038263292755,
"lm_q2_score": 0.8459424373085146,
"openwebmath_perplexity": 230.94959801197874,
"openwebmath_score": 0.9299052357673645,
"tags... |
python, programming-challenge, python-2.x
Title: Project Euler 11: Largest product in a grid
Problem 11
Largest product in a grid
What is the greatest product of four adjacent numbers in the same direction (up, down, left, right, or diagonally) in the 20×20
grid? | {
"domain": "codereview.stackexchange",
"id": 15513,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, programming-challenge, python-2.x",
"url": null
} |
# Need help in understanding definition of monomials
Wikipedia states two definitions of monomials- https://en.m.wikipedia.org/wiki/Monomial
I have understood the first one but I am facing some problem in understanding the second one which says that-" A monomial is a monomial in the first sense multiplied by a nonzer... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9724147145755,
"lm_q1q2_score": 0.8165696606430801,
"lm_q2_score": 0.8397339616560072,
"openwebmath_perplexity": 404.68336296665944,
"openwebmath_score": 0.8036795854568481,
"tags"... |
ros, diff-drive-controller, ros-kinetic
I need to create a hardware_interface to abstract my hardware for the diff_drive_controller. I found a sample here: https://github.com/eborghi10/my_ROS_mobile_robot/blob/e04acfd3e7eb4584ba0aab8a969a74d6c30eed34/my_robot_base/include/my_robot_hw_interface.h#L184
I have to describ... | {
"domain": "robotics.stackexchange",
"id": 31998,
"lm_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, diff-drive-controller, ros-kinetic",
"url": null
} |
concurrency, database-theory
Title: Number of conflict serializable schedules
Two transactions $T_1$ and $T_2$ are given as:
$$T_1: r_1(X)w_1(X)r_1(Y)w_1(Y)$$
$$T_2: r_2(Y)w_2(Y)r_2(Z)w_2(Z)$$
where $r_i(V)$ denotes a read operation by transaction $T_i$ on a variable $V$ and $w_i(V)$ denotes a write operation by tran... | {
"domain": "cs.stackexchange",
"id": 10614,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "concurrency, database-theory",
"url": null
} |
human-biology, genetics, pathology, chromosome, history
The success of any genetic linkage project depends in large part on
the quality of family material available for study. We initially
invested considerable effort in identifying a useful family from the
National Research Roster for Huntington's Disease Patie... | {
"domain": "biology.stackexchange",
"id": 2046,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "human-biology, genetics, pathology, chromosome, history",
"url": null
} |
# String to Integer
## Introduction
The problem discussed in this chapter is an extremely popular one often used as a warm-up question asked during the onsite interview as well as part of many online assessment exercices. It is important to ask the right questions to the interview so to make sure that the problem is ... | {
"domain": "davidespataro.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9752018412458461,
"lm_q1q2_score": 0.8062108616755833,
"lm_q2_score": 0.8267117919359419,
"openwebmath_perplexity": 1014.60712277626,
"openwebmath_score": 0.2861618995666504,
"tags"... |
homework-and-exercises, newtonian-mechanics, reference-frames, rotational-dynamics, free-body-diagram
Can someone please check my analysis? Since I came up with this myself, I don't have anything to refer to. (I also feel a little unsure whether centrifugal force has any role here.) This problem is in Introduction to ... | {
"domain": "physics.stackexchange",
"id": 72888,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "homework-and-exercises, newtonian-mechanics, reference-frames, rotational-dynamics... |
c#, performance, algorithm, recursion, combinatorics
But those pieces can't reach the first crown on the row. One posible solution using pieces {1,3,4}
With the first piece convert the 2 crowns to cups and with the other 2 form a line to convert all 4 to swords. In this case my solution now has id = 2^0 + 2^3 + 2^4 ... | {
"domain": "codereview.stackexchange",
"id": 34152,
"lm_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, recursion, combinatorics",
"url": null
} |
quantum-mechanics, operators, wavefunction, hilbert-space, probability
Title: Differences between probability density and expectation value of position The expression $\int | \Psi\left(x\right)|^2dx$ gives the probability of finding a particle at a given position.
If wave function gives the probabilities of positions... | {
"domain": "physics.stackexchange",
"id": 15367,
"lm_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, wavefunction, hilbert-space, probability",
"url": ... |
deep-learning, comparison, intelligent-agent, learning-agents
Title: What is the difference between learning and non-learning agents? What is the difference between learning agents and other types of agents?
In what ways learning agents can be applied? Do learning agents differ from deep learning? The key difference b... | {
"domain": "ai.stackexchange",
"id": 790,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "deep-learning, comparison, intelligent-agent, learning-agents",
"url": null
} |
quantum-mechanics, density-operator, density-functional-theory
Title: Density Matrix approach in Density Functional Theory - interpretation In a paper describing a Kohn-Sham Density Functional Theory implementation, the authors describe the use of the density matrix for e.g. the calculation of the electronic density a... | {
"domain": "physics.stackexchange",
"id": 58260,
"lm_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, density-operator, density-functional-theory",
"url": null
} |
python, hash-map
def validate_loans(loans_csv, output_csv_folder):
"""Validate loans summary from
accounts with system"""
loans_dict = csv_to_dict(loans_csv)
agg_dict = dict_to_agg_dict(loans_dict)
summary_list = agg_dict_to_lists(agg_dict)
output_csv_summary(summary_list, output_csv_folder)
i... | {
"domain": "codereview.stackexchange",
"id": 27079,
"lm_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, hash-map",
"url": null
} |
javascript, node.js
this.update = function(params) {
params = params || {};
if (!params.hasOwnProperty('id')) {
throw new Error('id required');
}
var options = imgur.extend(params, {
id: params.id,
data: params.data
});
return imgur.re... | {
"domain": "codereview.stackexchange",
"id": 12554,
"lm_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",
"url": null
} |
python, python-3.x, hash-map
Title: "Multi-key" dictionary I was making a relatively large-scale project in Python as a learning experiment, and in the process I found that it would be useful to have a map (or, in Python, I guess they're called dictionaries) where a value could have multiple keys. I couldn't find muc... | {
"domain": "codereview.stackexchange",
"id": 16660,
"lm_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, hash-map",
"url": null
} |
javascript, beginner
Why not complete the abstraction and do that assignment in the addOpacity function? Also, the template literal is unnecessary--the string conversion is already done under the hood.
Similarly, addColor has a confusing contract. It really adds an event listener that adds color only later when and if... | {
"domain": "codereview.stackexchange",
"id": 43782,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, beginner",
"url": null
} |
energy, notation
$f(x)$ plays the role of the wave function $\psi(x)=\langle x|\psi\rangle$ in the position space representation.
The conjugate/canonical momentum operator $\hat{\bf p}$ is replaced by $\frac{\hbar}{i}{\bf \nabla}$ in the Schrödinger representation.
The kinetic/mechanical momentum operator $m\hat{\bf ... | {
"domain": "physics.stackexchange",
"id": 2740,
"lm_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, notation",
"url": null
} |
other. In particular, these are some of the core packages. Symbolic computation systems (which by the way, are also often called computer algebra systems, or just CASs) such as SymPy are capable of computing symbolic expressions with variables. example S = simplify( expr , Name,Value ) performs algebraic simplification... | {
"domain": "antplus.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.963779943094681,
"lm_q1q2_score": 0.815302352218938,
"lm_q2_score": 0.8459424353665381,
"openwebmath_perplexity": 1440.1432832397454,
"openwebmath_score": 0.5822976231575012,
"tags": null... |
rule:-(n + 1 k ) = (n k ) + (n k − 1 ) Sum of binomial coefficients is 2 n. Sum of coefficients of odd terms = Sum of coefficients of even terms = 2 n − 1 {\displaystyle Q(x)} Binomial coefficients can be generalized to multinomial coefficients defined to be the number: ⋅ + ) Let’s take a look at the link between value... | {
"domain": "sexyloops.tv",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9458012732322216,
"lm_q1q2_score": 0.8314981410529425,
"lm_q2_score": 0.8791467770088163,
"openwebmath_perplexity": 951.1247358981357,
"openwebmath_score": 0.9527801871299744,
"tags": n... |
FIXME
## Images of Jordan measurable subsets
Let us prove the following FIXME. We will only need this simple
Suppose $$S \subset {\mathbb{R}}^n$$ is a closed bounded Jordan measurable set, and $$S \subset U$$ for an open set $$U \subset {\mathbb{R}}^n$$. If $$g \colon U \to {\mathbb{R}}^n$$ is a one-to-one continuou... | {
"domain": "libretexts.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9918120893722415,
"lm_q1q2_score": 0.8131801225547813,
"lm_q2_score": 0.8198933359135361,
"openwebmath_perplexity": 55.99324531531106,
"openwebmath_score": 0.9781940579414368,
"tags":... |
c#, console
Title: C# Better structure in my code & any other critiques Any advice on how to make this code; cleaner, more effective, just overall better!
Program creates a 'post' in the console. The post has a:
message
create on date
score for 'upvotes' and 'downvotes'
Users are able to upvote or downvote the post ... | {
"domain": "codereview.stackexchange",
"id": 38785,
"lm_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#, console",
"url": null
} |
homework-and-exercises, thermodynamics
Title: Comparing temperature of two similar bodies with varying specific heat capacity to $(Ta+Tb)/2$ (given below is a question from IAT 2021)
Answer given to this question is D.
I am a bit confused as to how this problem needs to be solved and am unable to resolve further. Kin... | {
"domain": "physics.stackexchange",
"id": 82553,
"lm_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, thermodynamics",
"url": null
} |
terminology
Title: What to call a script that runs other scripts? I have a number of small scripts that are being called, in order, by one larger script. So I can run them all with just one command. I was wondering if there was a technical name for this main program (that runs the smaller ones). Currently I am calling... | {
"domain": "cs.stackexchange",
"id": 6972,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "terminology",
"url": null
} |
homework, thermodynamics
$$\ce{2 CH4 + 6 Cl2 -> 6 HCl + 2 CHCl3}$$ | {
"domain": "chemistry.stackexchange",
"id": 5721,
"lm_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, thermodynamics",
"url": null
} |
homework-and-exercises, kinematics, free-fall
Title: From Rest to Final Velocity (Free -Falling Physics Problem) I am notorious for over thinking and I am having a problem with this question:
On another planet, a marble is released from rest at the top of a high cliff. It falls 4.00 m in the first 1 s of its motion. ... | {
"domain": "physics.stackexchange",
"id": 69350,
"lm_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, kinematics, free-fall",
"url": null
} |
navigation, odometry, robot-pose-ekf
NODES
/
robot_pose_ekf (robot_pose_ekf/robot_pose_ekf)
ROS_MASTER_URI=http://localhost:11311
core service [/rosout] found
process[robot_pose_ekf-1]: started with pid [26340]
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception... | {
"domain": "robotics.stackexchange",
"id": 22309,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "navigation, odometry, robot-pose-ekf",
"url": null
} |
c++
if (exit_outer_loop_flag) {
break;
}
//------------------------------------------------------
// Recompute m_qp_vector and scalar values to
// continue the second stage.
//----------------------------------------... | {
"domain": "codereview.stackexchange",
"id": 39563,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++",
"url": null
} |
S is the length taken by the car. It is the base of the big triangle.
W is the width of the window, it is the base of the small triangle.
D is the distance of the road from the wall. (Measured)
d is your distance from the wall inside the building (also measured) .
The height of the small triangle is d.
What is the heig... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9572778073288128,
"lm_q1q2_score": 0.8018350076950145,
"lm_q2_score": 0.8376199694135333,
"openwebmath_perplexity": 704.656527300177,
"openwebmath_score": 0.5857763290405273,
"... |
human-biology, cancer, systems-biology
Title: How does cancer of the larynx (laryngeal cancer) affect the respiratory system? The larynx is part of the respiratory system and is responsible for producing sound (our voices). My question is how cancer in the larynx (voice box) affect the respiratory system overall? I ap... | {
"domain": "biology.stackexchange",
"id": 3888,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "human-biology, cancer, systems-biology",
"url": null
} |
c++, c++11, integer
safe_int &operator%=(safe_int rhs)
{
return *this %= static_cast<I>(rhs);
}
safe_int operator+(safe_int rhs)
{
return safe_int(val) += static_cast<I>(rhs);
}
safe_int operator-(safe_int rhs)
{
return safe_int(val) -= static_cast<I>(rhs);
}
... | {
"domain": "codereview.stackexchange",
"id": 43369,
"lm_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, integer",
"url": null
} |
fourier-transform, time-series
Title: How do I convert a timeseries to a different frequency band? I have a real time series sampled at 32 MHz. So, when I channelized it and plot it against time, I get a Frequency vs. Time image plot where the frequency domain spans 16 MHz. To elaborate, this basically entails taking,... | {
"domain": "dsp.stackexchange",
"id": 3168,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "fourier-transform, time-series",
"url": null
} |
algorithms, dynamic-programming
"Why are the subproblem $ A_{k+1} A_{k+2} \cdots A_j $ not of the form $ A_1 A_2 \cdots A_j $?"
Sure, the former are of the latter form if you consider that subscript "${}_1$" in "$A_1$" means a placeholder for an arbitrary starting index. There is nothing wrong with that.
However, you ... | {
"domain": "cs.stackexchange",
"id": 18904,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "algorithms, dynamic-programming",
"url": null
} |
• @Did When you edit my posts, would you mind noting the changes in the edit summary? Oct 7 '16 at 11:44
• Why not.
– Did
Oct 7 '16 at 11:46
• Can you elaborate why the third line equation holds? I understand that if the limit exists, then an element in the limit is in the limit infimum, but I thought that this wasn'... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9835969698879861,
"lm_q1q2_score": 0.8217790775008175,
"lm_q2_score": 0.8354835391516133,
"openwebmath_perplexity": 140.178665180794,
"openwebmath_score": 0.9860243797302246,
"tags... |
quantum-field-theory, representation-theory, isospin-symmetry
0 & 1 & 0
\end{pmatrix} $
$,
\quad T_2=\sqrt{2}\begin{pmatrix}
0 & -i & 0\\
i & 0 & -i\\
0 & i & 0
\end{pmatrix},
$
$\quad T_3=\begin{pmatrix}
1 & 0 & 0\\
0 & 0 & 0\\
0 & 0 & -1
\end{pmat... | {
"domain": "physics.stackexchange",
"id": 61350,
"lm_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, representation-theory, isospin-symmetry",
"url": null
} |
electrons, heisenberg-uncertainty-principle, thought-experiment
Title: Trapping an electron Imagine that one could theoretically trap a single electron in a small box, with walls that somehow prevent the electron from passing through and out of the box. Now, the box begins to move in on itself, gradually cornering and... | {
"domain": "physics.stackexchange",
"id": 15764,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electrons, heisenberg-uncertainty-principle, thought-experiment",
"url": null
} |
classical-mechanics, elasticity, stress-strain
The above is only valid for small values of eccentricity, like $\epsilon < 0.5$. I estimate the approximation error at 10% for $\epsilon=0.78$ and 2% for $\epsilon=0.58$
For further details on this method see Roark formulas for Stress, Chapter 9 (p267). | {
"domain": "physics.stackexchange",
"id": 26710,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "classical-mechanics, elasticity, stress-strain",
"url": null
} |
• Nice work! (+1) Quadratics like $x_k=k^2+kn+n$ sort of seem to be strong enough, but I have no idea how to prove Oct 12 '19 at 5:47 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9773707966712549,
"lm_q1q2_score": 0.81018058761114,
"lm_q2_score": 0.8289388125473628,
"openwebmath_perplexity": 428.02789017450675,
"openwebmath_score": 0.5101738572120667,
"tags... |
c++, multithreading, c++14
Like this:
auto task = std::move(queue.front());
queue.pop();
lock.unlock();
// invalid task signals shutdown.
if(!task.valid()) {
break;
}
// run the task - this cannot throw; any exception
// will be stored in the corresponding future
task();
Other than that, this looks reasonable to m... | {
"domain": "codereview.stackexchange",
"id": 27294,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, multithreading, c++14",
"url": null
} |
java, algorithm, pathfinding
HEAP.add(new Path(weightFunction, source));
while (!HEAP.isEmpty() && countMap.getOrDefault(target, 0) < k) {
Path currentPath = HEAP.remove();
DirectedGraphNode endNode = currentPath.getEndNode();
countMap.put(endNode, countMap.getOrDefault(en... | {
"domain": "codereview.stackexchange",
"id": 17825,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, algorithm, pathfinding",
"url": null
} |
cc.complexity-theory, sat, np-complete, polynomial-time
Title: Can MONOTONE WSAT be in solved in polynomial time? In the weighted monotone satisfiability problem (MONOTONE WSAT), the input is an n-variable MONOTONE CNF Boolean formula (when there is no a clause with a negated variable) and an integer k, and the proble... | {
"domain": "cstheory.stackexchange",
"id": 4367,
"lm_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, sat, np-complete, polynomial-time",
"url": null
} |
java, programming-challenge, playing-cards, stream, rags-to-riches
int[] countRanks = new int[13];
IntStream.of(holding).forEach(r -> countRanks[r]++);
// filter and sort the group counts.
int countSummary = groupHash(IntStream.of(countRanks).filter(c -> c > 0)
.sorted().toArra... | {
"domain": "codereview.stackexchange",
"id": 12352,
"lm_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, programming-challenge, playing-cards, stream, rags-to-riches",
"url": n... |
php, array
Title: PHP - check if array includes value and return value if true I developed the function array_includes which checks if an array contains a value and returns it. I would like to know if there is already such a function which is more efficient or how I can make the function more efficient.
<?php
$params ... | {
"domain": "codereview.stackexchange",
"id": 35121,
"lm_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, array",
"url": null
} |
c#, .net, websocket
//await Task.Delay(5000).ConfigureAwait(false);
//await client.StopAsync().ConfigureAwait(false);
//await Task.Delay(5000).ConfigureAwait(false);
//await client.StartAsync().ConfigureAwait(false);
Console.ReadLine(); Here are my observations
DeribitClient
SubscribeToDeribitPriceIndexAsync
The ... | {
"domain": "codereview.stackexchange",
"id": 43254,
"lm_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#, .net, websocket",
"url": null
} |
analytical-chemistry, mass-spectrometry
Note:
1. all suppliers are legally bound to providing MSDSs upon request in the local idiom (official language).
2. this document is safety-based which means it will (a) provide (useful) information on possibly hazardous materials, (b) assess the hazardous component(s), their ty... | {
"domain": "chemistry.stackexchange",
"id": 1607,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "analytical-chemistry, mass-spectrometry",
"url": null
} |
electromagnetic-induction
Title: Faraday's law - direction of non-conservative electric field I would like to conduct the following experiment. I place charged particle above the wire and increase current in the wire. I expect particle to move, but not sure of the direction of the movement. Here is my illustration .
A... | {
"domain": "physics.stackexchange",
"id": 87354,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electromagnetic-induction",
"url": null
} |
rostopic
Good luck.
Originally posted by rbbg with karma: 1823 on 2017-08-28
This answer was ACCEPTED on the original site
Post score: 0
Original comments
Comment by peigong on 2017-08-28:
Thank you for your kind reply.
it works. | {
"domain": "robotics.stackexchange",
"id": 28713,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "rostopic",
"url": null
} |
java, swing, file, error-handling
I basically have the three possible paths that xampp could be at and I go through them and check if the file exists and can be executed. If not then it prints the error that the file could not be found or is corrupt.
Do you have any tips for my code? Any better way of doing this and I... | {
"domain": "codereview.stackexchange",
"id": 7472,
"lm_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, swing, file, error-handling",
"url": null
} |
php, mysql, security, pdo, authentication
private function doRecover(){
if( ! empty($_POST['email'])){
if($this->isEmailValid($_POST['email'])){
$email = $_POST['email'];
require_once 'db/db_connect.php';
require_once 'db/db_tables.php';
... | {
"domain": "codereview.stackexchange",
"id": 9342,
"lm_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, mysql, security, pdo, authentication",
"url": null
} |
java, ai, machine-learning
public boolean respond(String s) { //decide how and what to respond, return if we should keep the program alive
if(s.trim().equals(""))
return true; //nothing to do, but keep the program alive
String response = "";
if(last == null) { //first message must always be a greet... | {
"domain": "codereview.stackexchange",
"id": 24503,
"lm_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, ai, machine-learning",
"url": null
} |
java, multithreading, synchronization
} catch (InterruptedException exc) {
log.error("[run] Interrupted while reading from queue", exc);
} catch (MessageConfigurationException exc) {
log.error("[run] Error finding structure configuration for received message", exc);
}
}
} When you writ... | {
"domain": "codereview.stackexchange",
"id": 7325,
"lm_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, multithreading, synchronization",
"url": null
} |
general-relativity, differential-geometry, tensor-calculus, curvature, trace
This comes from the antisymmetry property of indices of Riemann tensor:
\begin{equation}
R_{abcd} = -R_{bacd} = R_{badc}
\end{equation}
so that taking a contraction (trace) gives:
\begin{equation}
g^{ac}R_{abcd} = {R^c}_{bcd} = R_{bd} \quad ... | {
"domain": "physics.stackexchange",
"id": 51118,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "general-relativity, differential-geometry, tensor-calculus, curvature, trace",
"... |
c++, performance, opencv
Title: C++ multiple object recognition I am working on a multi-object recognition program. I have succeeded recognising two objects. However, the speed of my program is really slow and laggy. Can somebody please tell a way to speed the program up?
So far, I have seen that ORB is quite fast at ... | {
"domain": "codereview.stackexchange",
"id": 26091,
"lm_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, opencv",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.