text stringlengths 1 1.11k | source dict |
|---|---|
ros
int total_count = 0;
const int read_size = 1024;
int buffer_size = read_size * 64; // initialize the buffer to 64k bytes
char * audio_buffer = (char*)malloc(buffer_size); // allocate the initial buffer
//the next two lines, you should replace the file path for your local environment
FILE *fp_test = fopen... | {
"domain": "robotics.stackexchange",
"id": 25443,
"lm_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
} |
# Why does the XOR operator work?
In many coding problems, I see applying XOR to the set of values gives the result.
For example : In the game of nim
Let n1, n2, … nk, be the sizes of the piles. It is a losing position for the player whose turn it is if and only if n1 xor n2 xor .. xor nk = 0.
Can somebody explain ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9711290947248701,
"lm_q1q2_score": 0.8006589641972016,
"lm_q2_score": 0.8244619263765707,
"openwebmath_perplexity": 476.25232865259886,
"openwebmath_score": 0.4085025191307068,
"ta... |
classical-mechanics, kinematics, mathematics
So my doubt is: if a rod of length $x$ is placed on the x-axis say from $(x,0)$ to $(2x,0)$ and its right-most end is pulled with a constant velocity $v$, while writing the differential expression for speed, I ended up writing $dx/dt$ and solved the problem incorrectly.
The... | {
"domain": "physics.stackexchange",
"id": 94734,
"lm_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, kinematics, mathematics",
"url": null
} |
solid-state-chemistry, symmetry, crystallography, group-theory
References
Donnay, J. D. H.; Turrell, G. Tables of Oriented Site Symmetries in Space Groups. Chemical Physics 1974, 6 (1), 1–18. DOI:10.1016/0301-0104(74)80030-3.
Radaelli, P. G. Symmetry in Crystallography: Understanding the International Tables; IUCr t... | {
"domain": "chemistry.stackexchange",
"id": 16659,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "solid-state-chemistry, symmetry, crystallography, group-theory",
"url": null
} |
java, object-oriented, number-guessing-game
Also normally I would create all random numbers with one Random instance such that you could set a single seed in your program if you want to observe the same behavior. In this case this would be less easy but could still be achieved with a variable like private final Random... | {
"domain": "codereview.stackexchange",
"id": 20894,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, object-oriented, number-guessing-game",
"url": null
} |
# Polar Calculus
This triangle is important for solving many problems related to polar coordinates.
From it we get the following important relationships:
x=r*cos(theta)
y=r*sin(theta)
r^2=x^2+y^2
tan(theta)=y/x
In polar coordinates we write r as a function of theta, r=f(theta).
Now consider the equation x=r*cos... | {
"domain": "bluecc.edu",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9879462183543603,
"lm_q1q2_score": 0.8030691971601901,
"lm_q2_score": 0.8128673223709251,
"openwebmath_perplexity": 2058.0020103718,
"openwebmath_score": 0.796732485294342,
"tags": null,
... |
optics, electrons, atomic-physics, definition, doppler-effect
Title: What is the "Doppler mismatch"? In the paper
Coherent Optical Detection of Highly Excited Rydberg States Using Electromagnetically Induced Transparency. A. K. Mohapatra, T. R. Jackson and C. S. Adams. Phys. Rev. Lett. 98, 113003 (2007), U Durham epr... | {
"domain": "physics.stackexchange",
"id": 88222,
"lm_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, electrons, atomic-physics, definition, doppler-effect",
"url": null
} |
beginner, object-oriented, multithreading, vba, asynchronous
Public Sub OpenHandle(multiThreadGroup As clsMultiThread, delegate As clsHandleEvents)
'called when the handle is opened, sets the reference IDs of the string and the handle, as well as parent g
Set eventHandle = delegate
handleID = multiThreadGr... | {
"domain": "codereview.stackexchange",
"id": 29951,
"lm_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, object-oriented, multithreading, vba, asynchronous",
"url": null
} |
everyday-chemistry, reference-request
Title: House-hold chemistry experiments for a high-school student I want to experiment the things which we learn in chemistry as a twelfth grader.I want to do them at my home but I'm not supplied with enough reactants.What can I do by using such reactants.
I tried to carry out pap... | {
"domain": "chemistry.stackexchange",
"id": 8827,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "everyday-chemistry, reference-request",
"url": null
} |
circuits
Another assumption is that logic doesn't have physical space. Wires are costly even though that they do not add to calculation value. A good example of this is the S-Box used in AES. If you look at the "logic", I have often seen hardware implementations that use a lookup table. This is because it's easy.... | {
"domain": "cs.stackexchange",
"id": 12961,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "circuits",
"url": null
} |
noise, terminology
although the bit error rate curve is not present, in the introduction the Authors do mention the term perfect channel. One such method of estimation is the Least Squares.
What is the meaning of a perfect channel? Does a perfect channel mean that there is no noise or does it mean that the pilot symb... | {
"domain": "dsp.stackexchange",
"id": 5824,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "noise, terminology",
"url": null
} |
python, beginner, object-oriented, unit-testing
while max(player.roundsPointsSum for player in self.__players) < 100:
""" while no one has lost the whole game """
self.__set_new_round()
# continue the round by playing the rest of the tricks
winnerPlayer: Optional[Play... | {
"domain": "codereview.stackexchange",
"id": 38216,
"lm_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, object-oriented, unit-testing",
"url": null
} |
from A to B is called one-to-one (or 1-1) if whenever f (a) = f (b) then a = b. For understanding the basics of functions, you can refer this: Classes (Injective, surjective, Bijective) of Functions. (C) 81 Onto Functions: Consider the function {eq}y = f(x) {/eq} from {eq}A \to B {/eq}, where {eq}A {/eq} is the domain ... | {
"domain": "ftsamples.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9711290880402378,
"lm_q1q2_score": 0.8006589524030749,
"lm_q2_score": 0.8244619199068831,
"openwebmath_perplexity": 616.316016467414,
"openwebmath_score": 0.6106613874435425,
"tags": n... |
calibration, camera
Title: Stereo calibration accuracy not appearing
Hello,
I just did the calibration of my stereo rig following the instructions in StereoCalibration . According to the tutorial, after calibrating the reprojection error should appear in the top right area. But as you can see in the snapshot, this do... | {
"domain": "robotics.stackexchange",
"id": 13521,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "calibration, camera",
"url": null
} |
c++, webots, ros2
Title: How to Access Robot Fields Inside a Webots-ROS2 Plugin? I'm running Webots R2023a where I have a robot node marked as Supervisor in Webots world (*.wbt file) to be controlled by an external node in ROS2 network. When writing a webots-ros2 plugin, I'm faced with an issue where I cannot access r... | {
"domain": "robotics.stackexchange",
"id": 38837,
"lm_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++, webots, ros2",
"url": null
} |
homework-and-exercises, classical-mechanics, vectors
Now let us consider vector B.
The x-component of B will be:
$B\cos{\theta}$
where $\theta$ is the angle between the $A$ vector and the $B$ vector, which also happens to be the angle between the $B$ vector and the x-axis, since we chose our x-axis to coincide with th... | {
"domain": "physics.stackexchange",
"id": 9704,
"lm_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, classical-mechanics, vectors",
"url": null
} |
pid-control
I have limited the current used to 500mA, and at worst conditions the current needed to cope with the leakage is 700µA, so the range for the current is not so huge. Nor is the range for sensor voltage, which is about 100mV to -1V.
Maybe I could control pump voltage instead of pump current. Current results ... | {
"domain": "engineering.stackexchange",
"id": 1870,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "pid-control",
"url": null
} |
spectroscopy, ir-spectroscopy
Title: Conversion from Spectral Line Intensity to Absorbance (HITRAN) The HITRAN spectral database gives access to the spectral absorption lines of various gaseous species. These lines are given as $S$ values in units of $cm^{-1}/(molecule·cm^{-2})$ (or $cm.molecule$).
Given a simple Beer... | {
"domain": "chemistry.stackexchange",
"id": 15998,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "spectroscopy, ir-spectroscopy",
"url": null
} |
python, beginner, matplotlib, raspberry-pi
if __name__ == '__main__':
main() Too much to put as a comment, so this is going to be an answer :
As a general comment, you use many variables which are used only once, so they might not really be useful.
ckyorn can be rewritten in a more concise way. Also, its name is w... | {
"domain": "codereview.stackexchange",
"id": 2918,
"lm_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, matplotlib, raspberry-pi",
"url": null
} |
c++, programming-challenge
values.push_back(1);
assert(-1 == binarySearch(3, values));
assert( 0 == binarySearch(1, values));
values.push_back(3);
values.push_back(5);
assert( 0 == binarySearch(1, values));
assert( 1 == binarySearch(3, values));
assert( 2 == binarySearch(5, values));
a... | {
"domain": "codereview.stackexchange",
"id": 31030,
"lm_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
} |
newtonian-mechanics, forces, acceleration, inertial-frames, centrifugal-force
Title: Fictitious forces confusion I have a hard time understanding the subject of fictitious forces. Let's discuss a few examples:
1) I'm sitting inside a vehicle which is accelerating in a straight line. I feel like someone is pushing me t... | {
"domain": "physics.stackexchange",
"id": 6608,
"lm_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, acceleration, inertial-frames, centrifugal-force",
"... |
apparent-magnitude, extinction
Title: Determining the extinction by counting stars? Hi I'm a highschool student studying astronomy at school.
I learned that one can determine how much a luminosity of a star is reduced by counting stars, but I can't understand how it works. My textbook has the following equation:
$\Del... | {
"domain": "astronomy.stackexchange",
"id": 4398,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "apparent-magnitude, extinction",
"url": null
} |
c++, c++11
auto ptr = std::shared_ptr<T>(new T(value), [](T* p) {
values.erase(p); delete p;
});
values.insert(ptr.get());
return ptr;
}
Test code:
struct Foo : std::enable_shared_from_this<Foo> {
int x = 0;
Foo(int x) : x(x) { }
bool operator<(Foo rhs) const { return x < rhs.x; }
};
aut... | {
"domain": "codereview.stackexchange",
"id": 35268,
"lm_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",
"url": null
} |
java, performance, android, primes
/**
* The search progress on the current number as a decimal between 0 and 1.
*/
private float currentProgress = 0;
private long totalCheckTime;
private int numbersChecked;
private final List<EventListener> eventListeners = new ArrayList<>();
private ... | {
"domain": "codereview.stackexchange",
"id": 24750,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, performance, android, primes",
"url": null
} |
computational-chemistry, theoretical-chemistry, ab-initio
N[ 16]( A1) = 1.97753198
N[ 17]( B2) = 1.97009578
N[ 18]( B1) = 1.97009578
N[ 19]( A1) = 1.03828526
N[ 20]( A1) = 0.99215102
N[ 21]( B1) = 0.98317529
N[ 22]( B2) = 0.98317529
N[ 23]( A2) = 0.02013554
N[ 24]( B2) = 0.01947713
N[ 25]( B1) = 0.... | {
"domain": "chemistry.stackexchange",
"id": 5915,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "computational-chemistry, theoretical-chemistry, ab-initio",
"url": null
} |
c, parsing, json
static void skip_whitespace(const char** cursor)
{
if (**cursor == '\0') return;
while (iscntrl(**cursor) || isspace(**cursor)) ++(*cursor);
}
static int has_char(const char** cursor, char character)
{
skip_whitespace(cursor);
int success = **cursor == character;
if (success) ++(*... | {
"domain": "codereview.stackexchange",
"id": 28182,
"lm_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, json",
"url": null
} |
graphs, terminology
Sometimes, in undirected graphs, some things become easier and cleaner to reason about. For instance, you don't have to worry about the difference between weakly connected vs strongly connected components in undirected graphs. Algorithms for undirected graphs can sometimes be more efficient or si... | {
"domain": "cs.stackexchange",
"id": 8189,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "graphs, terminology",
"url": null
} |
c++, c++11, iterator
No point in defining destructor the default version will work perfectly. (As a side note: since it is not virtual there can be no derived types with alternative behaviors so making things symmetric is doubly useless).
~iterator(){}
This is perfectly fine.
iterator retVal = *this;
Bu... | {
"domain": "codereview.stackexchange",
"id": 6153,
"lm_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, iterator",
"url": null
} |
c#, algorithm, primes, factors
Assert.AreEqual(12, ArthmeticProblems.LeastCommonMultipleByPrimeFactorization(4, 6));
}
Note: This is just for fun and revision of my basic concepts IsPrime
public static bool IsPrime(int n)
{
for (int i = 2; i <= n; i++)
{
if (n % i == 0)
{
if (i... | {
"domain": "codereview.stackexchange",
"id": 2555,
"lm_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, primes, factors",
"url": null
} |
mathematical-physics, group-theory, topology, lie-algebra, group-representations
Title: Is $SU(2)\times U(1) = U(2)$? In the many textbook of the Standard Model, I encounter the relation
\begin{align}
SU(2)_L \times U(1)_L = U(2)_L.
\end{align}
Here the subscript $L$ means the left-handness (i.e., the chirality of th... | {
"domain": "physics.stackexchange",
"id": 20221,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "mathematical-physics, group-theory, topology, lie-algebra, group-representations",... |
Is Rhombus a Square? Keep in mind that the question "Is a rhombus a square?" 1 Descriptions; 2 Rhombus vs Parallelogram; 3 Comparison Chart; Descriptions A rhombus . (c) All angles are equal to 90 degrees. Venn diagrams are schematic diagrams used in logic and in the branch of mathematics known as … Rectangle Square Ex... | {
"domain": "gridserver.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9755769099458929,
"lm_q1q2_score": 0.8560460866291191,
"lm_q2_score": 0.8774767810736693,
"openwebmath_perplexity": 901.8399469256652,
"openwebmath_score": 0.592010498046875,
"tags": ... |
# Why is Mathematica eating a row from QRDecomposition
I'm attempting to calculate the QRDecomposition of the matrix:
a = {{1, 3}, {0, 5}, {2, -8}}
QRDecomposition[a]
The answer Mathematica gives me is:
- $\mathbf Q$ which is a $2\times3$ matrix
- $\mathbf R$ which is a $2\times2$ matrix
The actual answer that I ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9496693688269984,
"lm_q1q2_score": 0.8267795536091616,
"lm_q2_score": 0.8705972633721708,
"openwebmath_perplexity": 3053.3527223666633,
"openwebmath_score": 0.36800915002822876,
"t... |
special-relativity, definition, rigid-body-dynamics
Consider two spaceships moving past each other at high speed. Ship A will see ship B compressed, and by the symmetry of the situation, ship B will see ship A compressed. But for the people on each ship, things will appear to be normal length, time will appear to be g... | {
"domain": "physics.stackexchange",
"id": 93017,
"lm_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, definition, rigid-body-dynamics",
"url": null
} |
6. ## Re: World Series!
Good point - interesting how that works out. Looks like the OP calculated C(7,2) to get an answer of 21, rather than C(7,3).
7. ## Re: World Series!
Hello, SuperMaruKid!
For the baseball World Series, a team must win four out of a possible seven games.
In how many different ways can a team w... | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9688561676667173,
"lm_q1q2_score": 0.8094633779066694,
"lm_q2_score": 0.8354835371034368,
"openwebmath_perplexity": 1376.7972964178446,
"openwebmath_score": 0.37284570932388306,
... |
fluid-dynamics, resource-recommendations, continuum-mechanics
Title: Mass transport in continuum mechanics fashion I'm looking for a book/paper/website/whatever that introduces mass transport from a continuum mechanical perspective, as in: https://link.springer.com/article/10.1007/s00419-017-1287-0 , section 2.2 and 3... | {
"domain": "physics.stackexchange",
"id": 62583,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "fluid-dynamics, resource-recommendations, continuum-mechanics",
"url": null
} |
python, sudoku, set
# As disjoint_subsets_row, for sub-grids.
def disjoint_subsets_subgrid(sub_grid_x, sub_grid_y, n):
sets = []
# Get all candidate sets in row with cardinality no greater than n
for y in range(sub_grid_y * 3, sub_grid_y * 3 + 3):
for x in range(sub_grid_x * 3, sub_grid_x * 3 + 3):... | {
"domain": "codereview.stackexchange",
"id": 14662,
"lm_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, sudoku, set",
"url": null
} |
How can the infimum of the above set be $0$?
• I believe that you are mislead by the following wrong intuition: "A covering of $\mathbb{Q}$ must cover the whole line". – Pedro Sánchez Terraf Feb 7 '15 at 21:59
• My intuition is game-theoretic one: I imagine a game where Player 1 has countably many points he can throw ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.986571747626947,
"lm_q1q2_score": 0.81114857597576,
"lm_q2_score": 0.8221891392358015,
"openwebmath_perplexity": 292.7279845953763,
"openwebmath_score": 0.7609784007072449,
"tags":... |
• 2=ABC, 3=DEF, 4=GHI, 5=JKL, 6=MNO, 7=PQRS, 8=TUV, 9=WXYZ, source en.wikipedia.org/wiki/Telephone_keypad for those without phones (or with phones that are too smart to care about a particular keypad ;) – Mirko Dec 7 '15 at 1:35
• What exactly is the question? If you ask me, all finite words could be derived, if you pu... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9799765575409524,
"lm_q1q2_score": 0.8269974194507849,
"lm_q2_score": 0.8438951045175643,
"openwebmath_perplexity": 402.46051856560456,
"openwebmath_score": 0.7934415936470032,
"ta... |
turing-machines, computability, reductions
I am trying to prove that $L$ is not in $RE$ by reduction from $L_{acc}^c = \{M,w: w\notin L(M)\}$ to $L$, but I it seems not works for one side and I have no idea how can I fix it.
if $x=\langle M,w\rangle$ in $L_{acc}^c$ then for any input $z$, I will check if $|z|$ is prim... | {
"domain": "cs.stackexchange",
"id": 18716,
"lm_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, computability, reductions",
"url": null
} |
has two critical numbers in the interval, namely x = 0 The Inverse Function Theorem (Differentiable version) 14. If has an extremum on an open interval , then the extremum occurs at a critical point. Determine all critical points in the given interval and evaluate the function at these critical points and at the endpoin... | {
"domain": "zafarindustries.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9852713878802045,
"lm_q1q2_score": 0.8374522742816736,
"lm_q2_score": 0.8499711699569786,
"openwebmath_perplexity": 221.00805278696637,
"openwebmath_score": 0.8135552406311035,... |
ros, gazebo, ros-kinetic, remote
Yes, the USB dongle could be a solution, but the pesky thumb BT USB that I had wasn't to be found :(
With XBOXDRV on RPi I've has a lot of problems. An unstable solution at least with Ubuntu 16.04 LTS.
I must point out a UBER good driver for Xbox one Controllers wired or Bluetooth, e... | {
"domain": "robotics.stackexchange",
"id": 33683,
"lm_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, ros-kinetic, remote",
"url": null
} |
lowpass-filter, derivative
$$h[n] = \dfrac{1}{n+\mu}\left[\cos(\pi \left[n+\mu\right])-\mathrm{sinc}(n+\mu)\right]$$
Where
$n$ is the filter tap index in $(-\infty, \infty).$
$\mu$ corresponds to an inter-sample shift of the filter taps in the range $[0.0, 1.0]$ samples.
Given the above expression for $h[n]$, note tha... | {
"domain": "dsp.stackexchange",
"id": 6216,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "lowpass-filter, derivative",
"url": null
} |
resource-request, measurement, simulation
Consider a polynomial-time randomised computation. We can describe this computation as a deterministic classical computation, performed with the help of a uniformly random bit-string of length $m$.
Suppose that we are interested in whether a particular bit yields the outcome '... | {
"domain": "quantumcomputing.stackexchange",
"id": 680,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "resource-request, measurement, simulation",
"url": null
} |
homework-and-exercises, fluid-dynamics, acoustics, speed, shock-waves
Right? If I substitute this I don't get to the equation above. So the answer is unfortunately not accepted anymore. The factors are not obvious, I agree.
For instance, for a polytrope index, $\gamma$, of 7/5 the exponent of 2/7 corresponds to a term... | {
"domain": "physics.stackexchange",
"id": 41732,
"lm_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, fluid-dynamics, acoustics, speed, shock-waves",
"url": n... |
experimental-physics, rotational-dynamics
If the inner diameter of the loop is 160mm then the diameter of the path taken by the ball is 160+2(2+12)=188mm and not 176mm. | {
"domain": "physics.stackexchange",
"id": 35851,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "experimental-physics, rotational-dynamics",
"url": null
} |
php
<p align=\"center\">
<input type=\"submit\" value=\"Add Game\" onclick=\"window.location='console.php?id=games_manage&action=add';\" />
</p>
<center>
<table width=\"500px\" class=\"valign_middle\">
<tr class=\"valign_middle\">
<th width=\"110px\" class=\"valign_middle\">Options</th>
<th c... | {
"domain": "codereview.stackexchange",
"id": 19546,
"lm_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",
"url": null
} |
4.2 binomial in ver sion Operation 4.3 Applications to statistics 4.4 the Catalan Recurrence.. Chapter 4 binomial Coef Þ cient Identities 4.2 binomial in ver sion Operation Applications! You have 10 integers and you wanted to choose between two candidates ) n, 1! And multicomponent redundant systems and statistics offi... | {
"domain": "hlccc.org",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9603611631680358,
"lm_q1q2_score": 0.8104440785106697,
"lm_q2_score": 0.8438950986284991,
"openwebmath_perplexity": 710.6547183819509,
"openwebmath_score": 0.781328558921814,
"tags": n... |
pandas, data-cleaning, dataframe
Now I assign the state 'Active' to those entries whose index is in keep_active and InActive otherwise.
df['refined_active'] = df.apply(lambda x: 'Active' if x.name in keep_active else 'InActive', axis=1) | {
"domain": "datascience.stackexchange",
"id": 8773,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "pandas, data-cleaning, dataframe",
"url": null
} |
c#, strings, .net, validation, type-safety
protected StringN_() { }
public StringN_(string str) : base(str) { }
}
public abstract class StringNN
: RegexString
{
protected abstract int MinLength { get; }
protected abstract int MaxLength { get; }
protected override string RegexValidation => $"^.{{{Mi... | {
"domain": "codereview.stackexchange",
"id": 32676,
"lm_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#, strings, .net, validation, type-safety",
"url": null
} |
The above algorithm is implemented in the MATLAB package Chebfun. The reference on this algorithm is due to John P. Boyd.
• Boyd, John P. "Computing zeros on a real interval through Chebyshev expansion and polynomial rootfinding." SIAM Journal on Numerical Analysis 40.5 (2002): 1666-1682.
• Thanks! I was unaware of th... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9706877675527112,
"lm_q1q2_score": 0.8171498504952124,
"lm_q2_score": 0.8418256393148982,
"openwebmath_perplexity": 901.1529085234276,
"openwebmath_score": 0.6330467462539673,
"tag... |
# Prove that F satisfies all field axioms by method of direct verification
1. ### GOsuchessplayer
11
1. The problem statement, all variables and given/known data
Consider the collection F of all real numbers of the form x+y√2, where x and
y are rational numbers. Prove (by direct verification) that F satisfies all th... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9728307664950511,
"lm_q1q2_score": 0.8020619256849353,
"lm_q2_score": 0.8244619242200082,
"openwebmath_perplexity": 475.1777419638872,
"openwebmath_score": 0.8595349788665771,
"tag... |
c++, url-routing
void insert_path(string_t &path, Result &result, Path *step = nullptr, int path_pos = 0) {
/*
* Recursively creates path. A path contains a vector with child paths.
* These linked paths create a chain which can be walked down.
* If we input /users/a and /users/b the ... | {
"domain": "codereview.stackexchange",
"id": 38536,
"lm_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-routing",
"url": null
} |
python, python-2.x, networking
def connect(self, rhost, rport):
# handle connection refused...
self._active_sock = socket.create_connection((rhost, rport))
self._active_sock.setblocking(0)
self._stdin_handler.start()
self._handle_active_sock()
def reverse(self, *args, **kwa... | {
"domain": "codereview.stackexchange",
"id": 19029,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, python-2.x, networking",
"url": null
} |
applications, evolutionary-algorithms, robotics, genetic-programming, path-planning
We take these surviving 10% of the best performing programs and use them to create new programs for the next generation by modifying them randomly again, but not completely. Say we randomly modify half their structure and leave the oth... | {
"domain": "ai.stackexchange",
"id": 491,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "applications, evolutionary-algorithms, robotics, genetic-programming, path-planning",
"... |
• » » 4 years ago, # ^ | 0 Can you show your code?
» 4 years ago, # | 0 How to implement the same for a 2D array?
• » » 4 years ago, # ^ | 0 Compute the prefix sums for all rows, then iterate over all pair of colums and for each pair l, r run Kadane's algorithm using prefix[i][r] - prefix[i][l - 1] as array el... | {
"domain": "codeforces.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9553191297273498,
"lm_q1q2_score": 0.808145000429832,
"lm_q2_score": 0.84594244507642,
"openwebmath_perplexity": 2081.730490086144,
"openwebmath_score": 0.3083294630050659,
"tags": nu... |
python
Honestly, I don't see that add_broadcaster()
is bringing a whole lot of value-add to the table.
Consider removing it from the Public API.
class SlackBroadcaster(Broadcaster):
def __init__(self, channel: str):
...
class DatabaseBroadcaster(Broadcaster):
def __init__(self, connection: str):
Let's foc... | {
"domain": "codereview.stackexchange",
"id": 44777,
"lm_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",
"url": null
} |
quantum-mechanics, waves, atomic-physics
If I got it right, an electron in a box, considering the Schrödinger equation, has the same matter wave as an electron on an atom orbit. So it moves in the same way if you hit the standing wave.
But I have to say, I do not know how that should work. Why should the particle in t... | {
"domain": "physics.stackexchange",
"id": 46430,
"lm_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, waves, atomic-physics",
"url": null
} |
image-processing, computer-vision
Title: Digital image moments in plain English I'm studying OpenCV and, in computer vision and image processing, people speak of blobs, contours, connected regions, and I sometimes hear the phrase "image moments".
I know of an article on Wikipedia about it, but I think it is too techn... | {
"domain": "dsp.stackexchange",
"id": 626,
"lm_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, computer-vision",
"url": null
} |
from 0 to infinity. An integer is a whole number — that is, a number with no fractional or decimal portion. As nouns the difference between integer and irrational is that integer is (arithmetic) an element of the infinite and numerable set {,-3,-2,-1,0,1,2,3,} while irrational is a real number that can not be expressed... | {
"domain": "mmcp.ph",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9609517095103499,
"lm_q1q2_score": 0.8296776503368434,
"lm_q2_score": 0.863391617003942,
"openwebmath_perplexity": 833.9665406138291,
"openwebmath_score": 0.4131430387496948,
"tags": nul... |
non-linear-optics
In monatomic gases it is only possible to produce odd numbered harmonics for reasons of symmetry - High Harmonic Generation Wikipedia
Another source states that the spectrum of a HHG pulse train can be described accordingly:
$g(\omega) = \Big[2\omega_d\sum_{n=0}^{\infty}f(n2\omega_d)\delta(\omega-n... | {
"domain": "physics.stackexchange",
"id": 68840,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "non-linear-optics",
"url": null
} |
machine-learning, neural-network, deep-learning, lstm, rnn
Wouldn't the maximum number of cells in each layer be 5? since after the 5th input we no longer have any other information to input. However, I've seen many networks with a higher number of cells than that. Therefore, why is this a possibility? Consider RNN ne... | {
"domain": "datascience.stackexchange",
"id": 3946,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "machine-learning, neural-network, deep-learning, lstm, rnn",
"url": null
} |
formula or a calculator, we find the solutions are. In the general cost function problem, there is a function g: R+!R+ given, and the goal of the scheduler is to minimize P i2[n] w ig(F i). It is possible to attach a more substantial penalty to the predictions that are located above or below the expected results (some ... | {
"domain": "foresteria-lacura.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9902915249511565,
"lm_q1q2_score": 0.8002221063062406,
"lm_q2_score": 0.8080672066194946,
"openwebmath_perplexity": 933.8220002034989,
"openwebmath_score": 0.5395734310150146,... |
$$3\times 325$$ will only have three digits and $$5 \times 325$$ will begin with a $$1$$ so they are also out. Hence $$B1 = 7$$ is the only possibility. Thus, so far we have $$\begin{array}{ccccc} & & 3 & 2 & 5 \\ & & \times & 7 & 7 \\ \hline & 2 & 2 & 7 & 5 \\2 & 2 & 7 & 5 & \\ \hline E1 & E2 & E3 & E4 & E5 \end{array... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9822876981854809,
"lm_q1q2_score": 0.8206851944975031,
"lm_q2_score": 0.8354835309589074,
"openwebmath_perplexity": 127.9327841427276,
"openwebmath_score": 0.8825827836990356,
"tag... |
atmosphere, models, nwp, gfs
On a more technical note, the GFS's (internal) resolution was once described as T-numbers, which counts the number of waves that can be fitted. The GFS could fit 1534 waves. However, since the upgrade in the dynamical core, the resolution has taken a different number. I don't exactly know ... | {
"domain": "earthscience.stackexchange",
"id": 2190,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "atmosphere, models, nwp, gfs",
"url": null
} |
python, web-scraping, modules
db_dict can be a module-level global constant DB_DICT
the convenient interface is to replace your db argument with *args taking one or more database names; then this:
elif db == "cnki":
yield db_dict["cnki"](keyword)
elif db == "fudan":
yield db_dict["fudan"](keyw... | {
"domain": "codereview.stackexchange",
"id": 41678,
"lm_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, web-scraping, modules",
"url": null
} |
electric-circuits, charge, potential-energy, batteries, chemical-potential
BATTERIES STORE CHARGE, AND THIS CHARGE FLOWS IN WIRES? No.
The word "charge" has more than one meaning, and the meanings contradict each other. The "charge" in a battery is energy (chemical energy), while the "charge" that flows inside wires i... | {
"domain": "physics.stackexchange",
"id": 57349,
"lm_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, charge, potential-energy, batteries, chemical-potential",
"ur... |
navigation, px4, hector, mavros, robot-localization
Original comments
Comment by Tom Moore on 2016-04-29:
Looks reasonable, though I'm curious how well the EKF in two_d_mode with amcl will work when the LIDAR (?) scans are going to vary with roll and pitch.
Comment by Icehawk101 on 2016-04-29:
I believe that hector_im... | {
"domain": "robotics.stackexchange",
"id": 24042,
"lm_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, px4, hector, mavros, robot-localization",
"url": null
} |
python, template, django
Title: DRY for rendering same header table for different content I'm trying to make the following code DRY. The code outputs a table that shows violations. If there is any violation.status = resolved they go in separate table for resolved items. Since the header and columns of the table are th... | {
"domain": "codereview.stackexchange",
"id": 26482,
"lm_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, template, django",
"url": null
} |
c#, image, winforms, graphics, genetic-algorithm
Genome.MutateGenome can be simplified to:
var chars = genomestring.ToCharArray();
var mutationIndex = r.Next(0, chars.Length);
chars[mutationIndex] = chars[mutationIndex] == '0' ? '1' : '0';
genomestring = new string(chars);
GenePool.SortScores can be simplified to:
sc... | {
"domain": "codereview.stackexchange",
"id": 33349,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, image, winforms, graphics, genetic-algorithm",
"url": null
} |
tensorflow, models, javascript
Title: How do I normalise/un-normalise data when loading a model? I am following this TensorFlow JS tutorial where you load car data. The data looks like this:
[{x:100, y:20}, {x:80, y:33}]
X is the horsepower of a car, Y is the expected miles per gallon usage. After creating the model ... | {
"domain": "ai.stackexchange",
"id": 1052,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "tensorflow, models, javascript",
"url": null
} |
As shown through these cases, assuming that $A$ exists always results in a contradiction. Thus, $\lim_{x\to0}\sin(1/x)$ does not exist.
It seems a bit too long. I have seen the other proofs that use sequences; however, Apostol hinted at the use of proof by contradiction. Is there any way I could condense/improve this ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9793540698633749,
"lm_q1q2_score": 0.8074401388202161,
"lm_q2_score": 0.8244619220634457,
"openwebmath_perplexity": 121.48629575235991,
"openwebmath_score": 0.9529404044151306,
"ta... |
vectors, definition
Title: What type of mathematical structure is a physicist's definition of a vector space? A vector space as defined by a mathematician lacks the invariant scalar product that lies at the heart of what I would define as a physicist's definition of a vector space that models the physical world. What ... | {
"domain": "physics.stackexchange",
"id": 14129,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "vectors, definition",
"url": null
} |
The problem can also be solved by using the following property: If $X\sim N(\mu_1,\sigma_1^2)$ and $Y \sim N(\mu_2,\sigma_2^2)$ and are independent, then $aX + bY \sim N(a\mu_1 + b\mu_2,a^2\sigma_1^2 +b^2\sigma_2^2)$ and thus in your case $Z \sim N(2\mu,2\lambda^2)$.
Edit: I just noticed the comment by @saulspatz abov... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9777138138113964,
"lm_q1q2_score": 0.8658941332765748,
"lm_q2_score": 0.8856314813647587,
"openwebmath_perplexity": 250.59321952227083,
"openwebmath_score": 0.9188310503959656,
"ta... |
ros2, ubuntu-precise, ubuntu
Title: RLException: Invalid tag: Cannot load command parameter [robot_description]: command
I use the ros melodic, when i launch my launch file, i have this error.
My launch is it :
<?xml version="1.0"?>
<launch>
<param name="robot_description" command="$(find xacro)/xacro --inorder '$(... | {
"domain": "robotics.stackexchange",
"id": 34512,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros2, ubuntu-precise, ubuntu",
"url": null
} |
A nonzero row vector $v$ has a nonzero coordinate of greatest magnitude. $vA$ has a nonzero entry in that coordinate by the triangle inequality, hence is not the $0$ vector.
-
Very nice indeed. – Aaron Meyerowitz Dec 24 '10 at 4:48
Yes, very elegant, concise and elementary. Indeed, very nice! – drbobmeister Dec 24 '10... | {
"domain": "mathoverflow.net",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9857180635575531,
"lm_q1q2_score": 0.8256571302518406,
"lm_q2_score": 0.8376199653600372,
"openwebmath_perplexity": 223.77178694573416,
"openwebmath_score": 0.960451602935791,
"tags... |
python, python-3.x, interpreter
class HRM:
def __init__(self, program, tiles=0, tile_defaults=None):
if tile_defaults is None:
tile_defaults = {}
self.tokens = list(remove_invalid_tokens(tokenise(program)))
self.labels = {
places[0]: i
for i, (command, pl... | {
"domain": "codereview.stackexchange",
"id": 20645,
"lm_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, interpreter",
"url": null
} |
thermodynamics, ideal-gas
Title: What is the internal pressure of a tethered hot air balloon? This question is for the review portion of a thermodynamics class:
A small hot-air balloon has a volume of $15.0 m^3$ and is open at the
bottom. The air inside the balloon is at an average temperature of
$75^{\circ}C$, while... | {
"domain": "physics.stackexchange",
"id": 99039,
"lm_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, ideal-gas",
"url": null
} |
c#, interview-questions
That would be the starting point based on what the question says. After this would usually be a period of interaction between interviewee and interviewer(s) in which assumptions could be addressed and the design discussed/updated with more detail, such as employees being in a busy state etc.
I ... | {
"domain": "codereview.stackexchange",
"id": 63,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, interview-questions",
"url": null
} |
c#, meta-programming, rubberduck
public CodeExplorer_ImportCommand(IOpenFileDialog openFileDialog)
{
_openFileDialog = openFileDialog;
_openFileDialog.AddExtension = true;
_openFileDialog.AutoUpgradeEnabled = true;
_openFileDialog.CheckFileExists = true;
_openFileDialog.Mul... | {
"domain": "codereview.stackexchange",
"id": 19968,
"lm_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#, meta-programming, rubberduck",
"url": null
} |
newtonian-mechanics, experimental-physics, harmonic-oscillator, boundary-conditions
Plot of the the damped harmonic oscillation beginning at $t=0.420346$ s with the lead up where only gravity affects the system plotted from $t=0$ s up to $t=0.420346$ s. The horizontal dashed line indicates $x=0.4517349$ m. Here, the... | {
"domain": "physics.stackexchange",
"id": 37892,
"lm_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, experimental-physics, harmonic-oscillator, boundary-condition... |
quantum-mechanics, quantum-teleportation
$$ \mathbf{Pads} = \frac{1}{2} \Bigl[ \Bigl(\langle 0\rangle_A \text{ and } \langle 0 \rangle_B\Bigr) + \Bigl(\langle 1 \rangle_A \text{ and } \langle 1 \rangle_B\Bigr) \Bigr]$$
where $\langle x \rangle_{\!A/B}\,$ just describes the scenario of Alice's/Bob's bit being x, the a... | {
"domain": "physics.stackexchange",
"id": 14130,
"lm_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-teleportation",
"url": null
} |
php, factory-method
//constructor
function __construct($ID, $Name, $Created) {
$this->_ID = $ID;
$this->_Name = $Name;
$this->_Created = $Created;
}
//getter & setters
public function getID() { return $this->_ID; }
public function setID($ID) { $this->_ID = $ID; }
publi... | {
"domain": "codereview.stackexchange",
"id": 26585,
"lm_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, factory-method",
"url": null
} |
• You have it backwards. To do this with trig substitution, $x=\sin u$, not $u=\sin x$. – alex.jordan Jun 22 '14 at 5:40
• @Spencer I don't think that's right. $x$ is in $[-1,1]$, and since $x=\sin(u)$, well, see my answer below. – alex.jordan Jun 22 '14 at 5:44 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9833429624315189,
"lm_q1q2_score": 0.8578166418951375,
"lm_q2_score": 0.8723473647220787,
"openwebmath_perplexity": 193.46298346712567,
"openwebmath_score": 0.882774829864502,
"tag... |
transfer-function, group-delay, derivation
&\begin{cases}
-a(b-1)&=2a(b+1) \\
1-b^2&=a^2+b^2+1
\end{cases} \tag{7} \\
&\Rightarrow \\
&\begin{cases}
a=0,\; b=0 \\
a=\pm j\dfrac{\sqrt2}{3},\;b=-\dfrac13 \\
\end{cases} \tag{8}
\end{align}$$
So I thought I'd evaluate both (2) and its derivative at 0 Hz, then equate the f... | {
"domain": "dsp.stackexchange",
"id": 11633,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "transfer-function, group-delay, derivation",
"url": null
} |
machine-learning, neural-network, deep-learning, data-mining, statistics
a) I can't spend resources (money/people) to manually (as it cannot be automated) go through all the 50K drugs and map it to dict terms because no one is interested to do this job. Whoever is interested, is not willing and it would be impossible ... | {
"domain": "datascience.stackexchange",
"id": 7679,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "machine-learning, neural-network, deep-learning, data-mining, statistics",
"u... |
standard-model, antimatter
So can you point to a list, what exactly is inverted in anti particles?
(And why this list? Sure it has to do with the Standard Model, hasn't it? But Why? :) Charge is only the most familiar of the properties that are inverted between a particle and its antiparticle, but it's not the only on... | {
"domain": "physics.stackexchange",
"id": 4358,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "standard-model, antimatter",
"url": null
} |
quantum-mechanics, angular-momentum, symmetry, wavefunction, spherical-harmonics
from which we clearly see that the state $|0,0\rangle$ is invariant for all rotations : $\hat R(\theta)|0,0\rangle=|0,0\rangle$ and is thus spherically symmetric.
In this formulation, you see that it is the only state like that. You can ... | {
"domain": "physics.stackexchange",
"id": 10812,
"lm_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, angular-momentum, symmetry, wavefunction, spherical-harmonics",... |
homework-and-exercises, newtonian-mechanics, classical-mechanics, potential-energy, spring
As total energy is constant you need to minimize kinetic energy to maximize potential energy, as $V_{CM}$ is constant, PE is max when $V_{rel}$ is 0.
Or if you visualize the motion you may think that initially when the bodies co... | {
"domain": "physics.stackexchange",
"id": 74771,
"lm_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, classical-mechanics, potential-energy... |
quantum-mechanics, homework-and-exercises, hilbert-space, quantum-information
to $W^\perp$, you should be able to form a basis which can be used to construct any vector in the vector space. For example, consider vectors in 3D space. Let's say we have $W$ denoting vectors in a 2D plane, i.e., the $XY$ plane in the Cart... | {
"domain": "physics.stackexchange",
"id": 67009,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics, homework-and-exercises, hilbert-space, quantum-information",
... |
php, parsing, datetime, laravel
smaller function, with one single responsibility each
we can implement unit tests for your two new functions, which would make your code robust and reliable | {
"domain": "codereview.stackexchange",
"id": 43954,
"lm_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, parsing, datetime, laravel",
"url": null
} |
ros, ros-melodic, package.xml, dependencies
Title: Why can't I import a Python dependency even if it is declared as a runtime dependency in package.xml?
I have the following dependencies in my package.xml
<buildtool_depend>catkin</buildtool_depend>
<build_depend>message_filters</build_depend>
<build_depend>rosbag</b... | {
"domain": "robotics.stackexchange",
"id": 33802,
"lm_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, ros-melodic, package.xml, dependencies",
"url": null
} |
c, multithreading, signal-handling
Then replace every instance of printf with locking_printf, including the ones in main since that's a thread, too.
Match return types with function
There's no need to write return NULL; at the end of thread_job because it's a void function. Also, it's my view that one should omit ret... | {
"domain": "codereview.stackexchange",
"id": 34921,
"lm_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, signal-handling",
"url": null
} |
parsing, node.js, json, typescript
return token.value;
}).join("");
}
function formatMessage(message: string, tokens: Token[]): string {
const source = serializeTokens(tokens);
return `${message}\n\nSource at the point of the Error:\n${source}\n^`;
}
export class JsonError extends Error {
constructo... | {
"domain": "codereview.stackexchange",
"id": 41565,
"lm_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, node.js, json, typescript",
"url": null
} |
bash
Is there a corner case in the following script where the script deletes a directory that it didn't create?
#!/bin/bash
# Execute a command in the container
set -ue | {
"domain": "codereview.stackexchange",
"id": 37566,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "bash",
"url": null
} |
c#
You could also consider breaking the code up into several methods, to cover each of the logical objects being printed, rather than doing the whole thing all together. This is more useful if you're doing more stuff at each level, rather than just a conditional and unconditional console write at each tier, but it he... | {
"domain": "codereview.stackexchange",
"id": 32494,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#",
"url": null
} |
thermodynamics
Title: How to go from $H=TS+\mu N$ to $dH=TdS+VdP$? I know for a closed system by using Legendre transformation:
$$d[H(S,P,N)]=d(U+PV)=TdS-PdV+PdV+VdP=TdS+VdP$$
But by direct differentiation:
$$d[H(S,P,N)]=d(TS+\mu N)=TdS+\mu dN=TdS$$
The two equations above don't match with each other. And same problem... | {
"domain": "physics.stackexchange",
"id": 86890,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "thermodynamics",
"url": null
} |
ros, navigation, planner, parameters
Title: How to set the parameter of the global planner in navigation stack
Dear all,
The global planner pkg provides few algorithms like A*, grid path and etc. My question is how I can set these methods? For example, for grid path method I need to set global planner parameter as "u... | {
"domain": "robotics.stackexchange",
"id": 25308,
"lm_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, planner, parameters",
"url": null
} |
ros, opencv, 2d-image, camera
Title: 2D image point to 3D
Hey!
I have a setup with a bottom camera (simple webcam pointed at the ground). Along with the camera is an IMU, which means that I have the attitude of the camera. I also have an estimation of the distance from the camera to the ground.
Since I'm detecting so... | {
"domain": "robotics.stackexchange",
"id": 22231,
"lm_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, opencv, 2d-image, camera",
"url": null
} |
java, algorithm, tree, data-mining
if (node.children == null) {
node.children = new RadixTreeNode[maximumValue];
}
if (node.children[number - 1] == null) {
RadixTreeNode tmp = new RadixTreeNode();
nextNode = tmp;
node.children[num... | {
"domain": "codereview.stackexchange",
"id": 38101,
"lm_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, tree, data-mining",
"url": null
} |
filter-design, finite-impulse-response, lowpass-filter, dsp-puzzle
This is a “DSP Puzzle”, please preface your answer with spoiler notation by typing ythe following two characters first ">!"
Not only a lowpass filter but also a highpass filter is possible: $$\delta[n]-h[n]=\pm\delta[n-1]$$ which implies $$h[n]=\delt... | {
"domain": "dsp.stackexchange",
"id": 11971,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "filter-design, finite-impulse-response, lowpass-filter, dsp-puzzle",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.