text stringlengths 1 1.11k | source dict |
|---|---|
### SammyS
Staff Emeritus
The functions usually used are sine and cosine.
(Not giving too much away!)
6. Feb 28, 2012
### LearninDaMath
7. Feb 28, 2012
### Redbelly98
Staff Emeritus
8. Feb 28, 2012
### LearninDaMath
9. Feb 28, 2012
### Staff: Mentor
If it's rotating at a steady rate, then ΞΈ β t
β ΞΈ = k.t
a... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9825575121992375,
"lm_q1q2_score": 0.8351455637951678,
"lm_q2_score": 0.8499711756575749,
"openwebmath_perplexity": 1567.9213942783588,
"openwebmath_score": 0.3306967616081238,
... |
fluid-dynamics, flow, vortex
viscosity, even in small regions of the domain, is usually needed to create vorticity;
if thin regions of large vorticity exist in a domain of otherwise
irrotational flow, its possible to identify the rotational regions as vortices
once created, if the viscous effects outside them are negl... | {
"domain": "physics.stackexchange",
"id": 99820,
"lm_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, flow, vortex",
"url": null
} |
definition, composed of parts or elements that are all of the same kind; not heterogeneous: a homogeneous population. Featured on Meta New Feature: Table Support In other words, a function is called homogeneous of degree k if by multiplying all arguments by a constant scalar l, we increase the value of the function by ... | {
"domain": "brumleysouth.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9755769113660688,
"lm_q1q2_score": 0.8043260175694815,
"lm_q2_score": 0.8244619242200082,
"openwebmath_perplexity": 666.2496934648609,
"openwebmath_score": 0.8627026081085205,
"tags... |
(*) Unfortunately, the adjusted $$R^2$$, despite its interpretability, is not really suitable for this task. It does not penalise complex models heavily enough to be really useful. Here weβll be using the Akaike Information Criterion (AIC). For a model $$f$$ with $$p'$$ independent variables: $\mathrm{AIC}(f) = 2(p'+1)... | {
"domain": "gagolewski.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9852713896101315,
"lm_q1q2_score": 0.8100794250053307,
"lm_q2_score": 0.8221891283434876,
"openwebmath_perplexity": 6347.572649086363,
"openwebmath_score": 0.8177797198295593,
"tags":... |
algorithms, data-compression, coding-theory
Title: How the LZ77 compression algorithm handles the case when the entire look-ahead buffer is matched in the search buffer The LZ77 compression algorithm uses a sliding window technique, where the window consists of a look-ahead puffer and a search-buffer. What I am wonder... | {
"domain": "cs.stackexchange",
"id": 9091,
"lm_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, data-compression, coding-theory",
"url": null
} |
### List of prime powers
I have a list of not necessarily distinct prime powers. For example: {2,3,4,25,2,3}. I want to combine (multiply) the highest prime powers for each prime. In this case 25*3*4 = 300 since 25 is the ...
48 views
### Deploy API which calculates matrix operations
Is it possible to deploy to clou... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9481545289551957,
"lm_q1q2_score": 0.8040044741567955,
"lm_q2_score": 0.8479677622198946,
"openwebmath_perplexity": 1799.5184279694606,
"openwebmath_score": 0.8386775255203247,
"ta... |
javascript, jquery, html, css
//slider starting motion
//right arrow function
var moveForward = function() {
$slideContainer.animate({'margin-left': '-='+width}, animationSpeed, function() {
currentSlide++;
if (currentSlide == 1) {
$('#dot1').addCla... | {
"domain": "codereview.stackexchange",
"id": 13696,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, jquery, html, css",
"url": null
} |
general-relativity, differential-geometry, metric-tensor, tensor-calculus, covariance
$$
\mathrm d f=\frac{\partial f}{\partial x^\mu}\tilde e^\mu
$$
or, using our new notation,
$$
\mathrm d f=\partial_\mu f\,\mathrm dx^\mu
$$
You can raise and lower the $\mu$ index in $\frac{\partial f}{\partial x^\mu}$, because th... | {
"domain": "physics.stackexchange",
"id": 50381,
"lm_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, metric-tensor, tensor-calculus, covaria... |
performance, sql, sql-server, xml, xpath
<Value>0</Value>
</CustomBomMaterialAttribute>
<CustomBomMaterialAttribute>
<Name>FLUSHING PRINCIPLE</Name>
<Value>3</Value>
</CustomBomMaterialAttribute>
<CustomBomMaterialAttribute>
... | {
"domain": "codereview.stackexchange",
"id": 22017,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "performance, sql, sql-server, xml, xpath",
"url": null
} |
python, beginner, algorithm, matrix, mathematics
Title: Magic Square (Python) Problem
Write a method to return a boolean if an input grid is magic square.
A magic square is a \$NxN\$ square grid (where N is the number of cells on each side) filled with distinct positive integers in the range \${1,2,...,n^{2}}\$ such ... | {
"domain": "codereview.stackexchange",
"id": 36284,
"lm_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, algorithm, matrix, mathematics",
"url": null
} |
coordination-compounds, molecular-orbital-theory, ir-spectroscopy
[Aside: so-called hypervalent sulfur compounds are typically drawn with double bonds that are actually combined sigma + ionic bonds rather than sigma + pi bonds. DMSO is not the only one. Keep this in mind in the future when trying to understand propert... | {
"domain": "chemistry.stackexchange",
"id": 17264,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "coordination-compounds, molecular-orbital-theory, ir-spectroscopy",
"url": nul... |
audio, signal-detection, acoustics, feedback
Fit a line to the log of the RMS envelope (computed on 50 or 100ms windows) over the past 2 seconds. Compute the slope, compute the coefficient of correlation. First should be positive, the second should be close to 1 for a feedback build-up, which is exponential.
Compute t... | {
"domain": "dsp.stackexchange",
"id": 397,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "audio, signal-detection, acoustics, feedback",
"url": null
} |
ruby, game, tic-tac-toe
def printInstructions
puts "1 | 2 | 3",
"---------",
"4 | 5 | 6",
"---------",
"7 | 8 | 9"
print "\n"
end
def printBoard
(0..2).each do |row|
print " "
(0..2).each do |col|
print @board[row][col]
print " | " ... | {
"domain": "codereview.stackexchange",
"id": 11624,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ruby, game, tic-tac-toe",
"url": null
} |
rust
fn main() {
let version = "0.0.1";
shell(version);
}
fn shell(version: &str) {
let mut input = String::new();
loop {
input.clear();
io::stdin().read_line(&mut input).expect("incorrect");
let command = input.trim().parse::<Command>();
use Command::*;
match... | {
"domain": "codereview.stackexchange",
"id": 33679,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "rust",
"url": null
} |
adaptive-filters, performance, least-squares
The highly recursive nature of NLMS is going to limit you if you want to keep the sample-by-sample update characteristic. While the filtering action is non-recursive, the filter coefficients at time instant N are a function of the coefficients at time instant N-1, which lim... | {
"domain": "dsp.stackexchange",
"id": 0,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "adaptive-filters, performance, least-squares",
"url": null
} |
maxwell-equations, symmetry-breaking, electroweak, magnetic-monopoles, topological-defects
Maxwell's equations are not symmetric under $E\leftrightarrow \pm B$. The transformation also involves $e\leftrightarrow 1/e$, which means this is not a symmetry, but a duality. The "equations of motion" on either side of the du... | {
"domain": "physics.stackexchange",
"id": 71537,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "maxwell-equations, symmetry-breaking, electroweak, magnetic-monopoles, topological... |
Another approach to solving your problem would be to use the MultivariateStatistics package, which includes the EllipsoidQuantile function. Here's an example:
Needs["MultivariateStatistics"]
fixations = {{19.4688, 17.4281}, {18.0563, 21.7156}, {13.0219,
24.7219}, {22.9594, 25.5219}, {28.5406, 24.6719}, {27.0688,
17.1... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9362850039701653,
"lm_q1q2_score": 0.8215683559511945,
"lm_q2_score": 0.8774767858797979,
"openwebmath_perplexity": 7498.184031162741,
"openwebmath_score": 0.3867276906967163,
"tag... |
systems-engineering
For an easy analogy: You build the big system out of big bricks, each of which you build of smaller bricks, and these - of yet smaller, each with own quirks and special purposes, some being just special variants of others, others being pre-packaged ready-to-use bigger bricks. They all need to fit j... | {
"domain": "engineering.stackexchange",
"id": 2485,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "systems-engineering",
"url": null
} |
thermodynamics, differential-equations
Title: Modification of Newton's Law of Cooling Yesterday I randomly started thinking about Newton's Law of Cooling. The problem I realized is that it assumes the ambient temperature stays constant over time, which is obviously not true. So what I tried doing was to modify the dif... | {
"domain": "physics.stackexchange",
"id": 5865,
"lm_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, differential-equations",
"url": null
} |
\begin{document}
Let us apply completing the square to the standard form of a quadratic equation, $ax^2+bx+c=0$.
\begin{align*}
ax^2+bx+c&=0 &\mbox{Divide by $a$, the leading coefficient.}&\\[1.25ex]
x^2+\frac{b}{a}x+\frac{c}{a}&=0 &\mbox{Transpose the constant term to the RHS.}&\\[1.25ex]
x^2+\frac{b}{a}x&=-\frac{c}{... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9314625012602593,
"lm_q1q2_score": 0.8042169200528801,
"lm_q2_score": 0.8633916222765627,
"openwebmath_perplexity": 1211.6205116068386,
"openwebmath_score": 0.8697960376739502,
"ta... |
special-relativity
Title: Typical Mathematical Questions about the Lorentz-Transformation In SR (Special Relativity) we use the Lorentztransformation (LT) to relate one frame of reference to another. Say S to S' via a LT that depends only on v where v is the relative velocity between S and S'.
In Mathematics (and QM) ... | {
"domain": "physics.stackexchange",
"id": 21765,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "special-relativity",
"url": null
} |
ros, ros2, cmake, colcon
β βββ ld_library_path_lib.ps1
β βββ ld_library_path_lib.sh
β βββ pkg_config_path.dsv
β βββ pkg_config_path.ps1
β βββ pkg_config_path.sh
β βββ pkg_config_path_multiarch.dsv
β βββ pkg_config_path_multiarch.ps1
β ... | {
"domain": "robotics.stackexchange",
"id": 34453,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, ros2, cmake, colcon",
"url": null
} |
newtonian-mechanics, classical-mechanics, momentum, conservation-laws
Title: On simpler ways of identifying whether linear momentum is conserved Is there a way / faster method to know if any system's linear momentum is conserved without building its Lagrangian and then applying Noether's procedure? For example, the sy... | {
"domain": "physics.stackexchange",
"id": 64056,
"lm_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, momentum, conservation-laws",
"url": n... |
human-biology, respiration
Title: Why does inert gas asphyxiation trigger unconsciousness almost immediately? According to an official safety bulletin from the U.S. Chemical Safety and Hazard Investigation Board:
"Breathing an oxygen deficient atmosphere can have serious and immediate effects, including unconsciousne... | {
"domain": "biology.stackexchange",
"id": 11506,
"lm_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, respiration",
"url": null
} |
Edit. Here is some progress, inspired by the proof by Nagahara and Tominaga. Consider $a \in R$ and decompose the finite commutative reduced ring $\langle a \rangle$ into a product of fields - this is just the Chinese Remainder Theorem. Hence, $a=a_1+\dotsc+a_n$ where each $\langle a_i \rangle$ is a field with unit $e_... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9740426458162398,
"lm_q1q2_score": 0.8179366897931701,
"lm_q2_score": 0.8397339616560072,
"openwebmath_perplexity": 156.9042710720391,
"openwebmath_score": 0.9364832639694214,
"tag... |
java, security, cryptography, aes, cryptocurrency
if (length < buffer.length)
read = this.original.read(buffer, 0, (int) length);
else
read = this.original.read(buffer);
final int decrypted = cipher.update(buffer, 0, read, outBuffer);
... | {
"domain": "codereview.stackexchange",
"id": 30760,
"lm_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, security, cryptography, aes, cryptocurrency",
"url": null
} |
triangle with sides 1 m is submerged vertically in water so that the base is even with the surface. Faces partially submerged would need to be split into multiple faces using a Split Line command The equation for water/liquid pressure used would for static pressure depending on depth: P static fluid = Οgh β¦where P = pr... | {
"domain": "clandiw.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232950125849,
"lm_q1q2_score": 0.8232324103396086,
"lm_q2_score": 0.837619961306541,
"openwebmath_perplexity": 687.738549556868,
"openwebmath_score": 0.5920810699462891,
"tags": n... |
python, python-3.x, pygame, sliding-tile-puzzle
def dot_product(self, other):
return self.x * other.x + self.y * other.y
def reverse(self):
return Direction(-self.x, -self.y)
def closest_direction(displacement, directions):
norm = displacement.normalized()
return max(directions, key=lambd... | {
"domain": "codereview.stackexchange",
"id": 42573,
"lm_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, pygame, sliding-tile-puzzle",
"url": null
} |
extreme-weather
In reality thunderstorms do produce dust storms with their gust fronts, but there isn't as visible upper part as in the screenshot of the film. This is because the storm is moving so fast that the dust hasn't had time to get lifted up and blown forwards from above. Such storm should have very slow spee... | {
"domain": "earthscience.stackexchange",
"id": 1486,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "extreme-weather",
"url": null
} |
ros2
Here the config of the diff drive, they are mostly the same as the turtlebot3.
And the wheels :
<xacro:macro name="origin_wheel">
<origin rpy="${rpy}" xyz="${xyz}"/>
</xacro:macro>
<link name="wheel_${name}_link">
<inertial>
<xacro:origin_base />
<mass value="$... | {
"domain": "robotics.stackexchange",
"id": 35154,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros2",
"url": null
} |
Does $\color{red}{a_n=\sin(\log n)}$ work? Let us see.
Clearly $|a_n|\leq 1$ and $\lim_{n\to +\infty}a_n$ does not exist, and due to Lagrange's theorem $$\left|\sin(\log(n+1))-\sin(\log n)\right|=\left|\frac{\cos\log(n+\xi)}{n+\xi}\right|=O\left(\frac{1}{n}\right)\qquad (\xi\in(0,1))$$ so $\sum_{n\geq 1}b_n^2$ is conve... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9706877717925422,
"lm_q1q2_score": 0.8380836729517558,
"lm_q2_score": 0.8633916047011594,
"openwebmath_perplexity": 203.93122005811315,
"openwebmath_score": 0.8761564493179321,
"ta... |
javascript, algorithm, functional-programming, k-sum
If you are writing code as a teaching example then you assume the reader has limited knowledge and in that case the obvious is stated in properly structured english (or whatever language)
// exit case would be // When found exit the function returning the returnRes... | {
"domain": "codereview.stackexchange",
"id": 33481,
"lm_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, algorithm, functional-programming, k-sum",
"url": null
} |
used as a. There are also educational math games available for kids of all ages in school as well. Multiply both sides by LCD. Model Algebra Equations - Learning Connections. Double tap ")" to enter "greater" sign. Extraneous solutions are solutions that don't satisfy the original form of the equation because they prod... | {
"domain": "tuningfly.it",
"id": null,
"lm_label": "1. Yes\n2. Yes\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9869795121840873,
"lm_q1q2_score": 0.8408599627455497,
"lm_q2_score": 0.8519528038477825,
"openwebmath_perplexity": 856.2827349084015,
"openwebmath_score": 0.41914433240890503,
"tag... |
pumps
Title: Would too small tubing reduce the max head of a pump? I got a mini-project: I want to automatically get rid of the water produced by an indoor air conditioner unit. Since the unit is underground, the water needs to climb ~2m to get to the outside.
I found a cheap pump online that has a max head of 3m and... | {
"domain": "engineering.stackexchange",
"id": 2154,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "pumps",
"url": null
} |
java, strings, parsing
What is being done here:
The pattern "[0-9]+" (or "\\d+") represents a subsequence of digits we want to find, which must at least be a digit long.
The surrounding parentheses specifies that we want to reference our matches using grouping: Following clarification by @Boris the spider.
The Patte... | {
"domain": "codereview.stackexchange",
"id": 13402,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, strings, parsing",
"url": null
} |
machine-learning, prediction
Title: Why is my model accuracy high in train-test split but actually worse than chance in validation set? I have trained a XGboost model to predict survival for the Kaggle Titanic ML competition.
As with all Kaggle competitions there is a train dataset with the target variable included an... | {
"domain": "ai.stackexchange",
"id": 1691,
"lm_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, prediction",
"url": null
} |
qiskit, simulation, depolarizing-channel
EDIT:
I don't know what you mean by "cu". To be honest, nobody knows all 2-qubit gates. You can create your own. A real quantum computer realizes only a few gates, typically 3 unitary gates and one cx gate. All other gates are then composed from these basis gates. So if you wis... | {
"domain": "quantumcomputing.stackexchange",
"id": 4257,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "qiskit, simulation, depolarizing-channel",
"url": null
} |
gazebo, c++
MyOdometerSystem.hh
#ifndef MYODOMETERSYSTEM_HH_
#define MYODOMETERSYSTEM_HH_
#include <gz/sim/System.hh>
#include <gz/sensors/Sensor.hh>
#include <gz/transport/Node.hh>
namespace custom
{
/// \brief Example showing how to tie a custom sensor, in this case an
/// odometer, into simulation
class MyO... | {
"domain": "robotics.stackexchange",
"id": 39030,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "gazebo, c++",
"url": null
} |
optics, double-slit-experiment, interference, geometric-optics
The difference in thickness containing the same number of waves is $t_{\text{medium}}- t_{\text{glass}} = N\lambda_{\text{glass}} - N\lambda_{\text{glass}}$. Therefore,
$$f \lambda_{\text{medium}} = c_{\text{medium}} = \frac {c_{\text{vacuum}}}{n_{\text{m... | {
"domain": "physics.stackexchange",
"id": 58078,
"lm_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, double-slit-experiment, interference, geometric-optics",
"url": null
} |
lowpass-filter, decimation, finite-impulse-response
Title: How to design very narrow band, very sharp low pass filters - Only DC needed? I am using a DSP processor to sample signals at 108kHz and I only want to get the DC part out of it. Such a high sampling rate is used because I want to use oversampling to reduce qu... | {
"domain": "dsp.stackexchange",
"id": 6459,
"lm_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, decimation, finite-impulse-response",
"url": null
} |
kinect, openni, ros-groovy
Originally posted by Oier with karma: 145 on 2013-01-02
This answer was ACCEPTED on the original site
Post score: 4
Original comments
Comment by Dave Coleman on 2013-01-04:
I'm having similar issues and tried re-installing all the openni packages via synaptic, but when I went to re-install ... | {
"domain": "robotics.stackexchange",
"id": 12242,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "kinect, openni, ros-groovy",
"url": null
} |
asteroids, comets, classification, visualization
The third boundary, the one between dwarf planets and small solar system bodies, is fuzzy in our own solar system. Objects less than 100 meters in diameter are, as a rule, anything but "round". Objects over a kilometer in diameter are, as a rule, quite "round" (when the... | {
"domain": "astronomy.stackexchange",
"id": 2105,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "asteroids, comets, classification, visualization",
"url": null
} |
c++, object-oriented, parsing
File TreeNode.cpp:
#include <iostream>
#include <map>
#include <regex>
#include <string>
#include <vector>
#pragma once
class TreeNode {
enum Associativity { left, right };
static std::vector<TreeNode>
applyBinaryOperators(std::vector<TreeNode> input,
std::v... | {
"domain": "codereview.stackexchange",
"id": 38968,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, object-oriented, parsing",
"url": null
} |
it with the function g(x) = x 2, in which the variable is the base. To find the derivative of a fraction, use the quotient rule. The Derivative Calculator supports solving first, second...., fourth derivatives, as well as implicit differentiation and finding the zeros/roots. I see some rewriting methods have been prese... | {
"domain": "cot-one.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9817357259231532,
"lm_q1q2_score": 0.8546964346953193,
"lm_q2_score": 0.8705972616934406,
"openwebmath_perplexity": 429.8610010070936,
"openwebmath_score": 0.7575908303260803,
"tags"... |
to all your Geometry homework questions - Slader. 5 RS T V Ready to Go On? MODULE 1 QUIZ my. 12 m Sample answer: 3. Knows strategies for modeling and solving real - world problems involving two- and three-dimensional figures. 14-5 Writing to. Lesson 3 Reteach Area Of Composite Figures. Let's use the formula in some exa... | {
"domain": "asdpallavolorossano.it",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.959762057376384,
"lm_q1q2_score": 0.8119034559170478,
"lm_q2_score": 0.8459424392504908,
"openwebmath_perplexity": 2428.5326937190143,
"openwebmath_score": 0.3937196135520935,
... |
navigation, robot-localization
<param name="transform_time_offset" value="0.0"/>
<param name="odom0" value="/visual_odometer/odometry"/>
<rosparam param="odom0_config">[true, true, false,
false, false, true,
false, false, false,
... | {
"domain": "robotics.stackexchange",
"id": 22746,
"lm_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, robot-localization",
"url": null
} |
homework-and-exercises, electromagnetism
NOTE: The correct word for the one that I encircle with blue colour should be "rotates"
My argument towards this question
Initially there is no induced E.M.F on the loop. But when it enters to the magnetic field which ultimately leads to have an induced E.M.F . And when time p... | {
"domain": "physics.stackexchange",
"id": 22867,
"lm_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, electromagnetism",
"url": null
} |
radiation
It should be more like:
\begin{align*}
\mu_\text{eff} = \sum_j w_j \mu_j
\end{align*} The impact of beam hardening makes most of these attempts at "exact" (closed form) calculations very difficult. High energy radiation scatters - this takes it out of the "forward" beam but it continues "broadly in the same ... | {
"domain": "physics.stackexchange",
"id": 13186,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "radiation",
"url": null
} |
java, android
@Override
protected JSONObject doInBackground(String... option) {
JSONObject json = null;
UserFunctions u = new UserFunctions();
// publishProgress(values);
String not_sourse = option[0];
String not_user = option[1];
String not_... | {
"domain": "codereview.stackexchange",
"id": 4569,
"lm_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, android",
"url": null
} |
filters, nyquist, bandwidth
Title: What is the symbol rate achieved with raised cosine filter? The bandwidth of the raised cosine filter is w=0.5(1+r)Rs, where Rs is the symbol rate, and r is the roll-off factor. r=0 represents the Nyquist filter, for which Rs=2w.
Any higher value for the roll-off factor will lead inc... | {
"domain": "dsp.stackexchange",
"id": 11003,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "filters, nyquist, bandwidth",
"url": null
} |
javascript, jquery, html, css, html5
<main>
<div class="parent">
<div class="left-div">
<h1> Learn to code by watching others </h1>
<p> See how experienced developers solve problems in real-time. Watching scripted tutorials is great, but understanding how developers think is invaluable.<... | {
"domain": "codereview.stackexchange",
"id": 44426,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, jquery, html, css, html5",
"url": null
} |
c++, performance, memory-management, vectors, reinventing-the-wheel
void clear()
{
vector_size=0;
} // Again, doesn't actually deallocate (for performance)..
friend void swap(myvector &a,myvector &b) // Copy and Swap Idiom ...
{
using std::swap;
swap(a.vector_size,b.vector_si... | {
"domain": "codereview.stackexchange",
"id": 4255,
"lm_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, memory-management, vectors, reinventing-the-wheel",
"url": n... |
thermodynamics, pressure, evaporation
Title: What does the definition of boiling actually mean? Boiling point is defined by wikipedia as:
The boiling point of a substance is the temperature at which the vapor pressure of a liquid equals the pressure surrounding the liquid and the liquid changes into a vapor.
--
My q... | {
"domain": "physics.stackexchange",
"id": 71683,
"lm_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, pressure, evaporation",
"url": null
} |
python, pandas, data-cleaning
Title: How do I add a column to a Pandas dataframe based on other rows and columns in the dataframe? I've tried a lot of different methods, but I can't seem to find the right way to do this. I want to create a new column based on the time and id of the df. However, ids appear multiple tim... | {
"domain": "datascience.stackexchange",
"id": 3789,
"lm_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, data-cleaning",
"url": null
} |
python, object-oriented
Title: Python class assignment simplification for d&d character creator As some of you may know, part of creating, or leveling up a character in almost any game is ability score increases. In this example, the character has six abilities with preassigned scores: strength, dexterity, intelligenc... | {
"domain": "codereview.stackexchange",
"id": 30978,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, object-oriented",
"url": null
} |
# Binomial summation $\sum\binom nkk^2$
Question:
Find $$\sum_{k=0}^n\binom nkk^2$$
I know how to do $$\sum_{k=0}^n\binom nkk=n\space2^{n-1}$$
I tried applying same thing and reached $$\sum_{k=0}^n\binom nkk^2=n\sum_{k=0}^n\binom{n-1}{k-1}k$$
How to proceed?
β’ Something wrong with the sum on the RHS of last expre... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9835969645988575,
"lm_q1q2_score": 0.8196555343315042,
"lm_q2_score": 0.8333245870332531,
"openwebmath_perplexity": 393.923663181097,
"openwebmath_score": 0.7627315521240234,
"tags... |
beginner, c, strings, c99
Title: String joining function in C I wrote a function that joins a collection of Strings with a delimiter. It's based on Java's version of the function. I'm assuming C has some similar built-in.
Example:
int main() {
char* coll[] = {"Hello", "World", "This", "Should", "Be", "Joined!"};
... | {
"domain": "codereview.stackexchange",
"id": 34120,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "beginner, c, strings, c99",
"url": null
} |
The second one is a quadratic function whose graph is a parabola. Create normal/logarithmic plots in two and three dimensions for LaTeX/TeX/ConTeXt PGFPlots draws high--quality function plots in normal or logarithmic scaling with a user-friendly interface directly in TeX. Getting MATLAB Figures into Latex or Powerpoint... | {
"domain": "cogoo-epaper.de",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9683812327313545,
"lm_q1q2_score": 0.821156065034656,
"lm_q2_score": 0.8479677602988602,
"openwebmath_perplexity": 843.2423676801535,
"openwebmath_score": 0.6379912495613098,
"tags":... |
java, linked-list, complexity
Test Case:
@Test
public void testRemoveDuplicatesFromUnsortedSortedLL() {
LinkedListNode head = new LinkedListNode(30);
head.appendAtTail(20);
head.appendAtTail(20);
head.appendAtTail(30);
head.appendAtTail(10);
head.appendAtTail(50);
head.appen... | {
"domain": "codereview.stackexchange",
"id": 10731,
"lm_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, linked-list, complexity",
"url": null
} |
Now without loss of generality, we can assume that $$A = J$$ (note that $$A$$ commutes with $$B$$ iff $$P^{-1}AP$$ commutes with $$P^{-1}BP$$). Partition $$B$$ into four $$k \times k$$ blocks: $$B = \pmatrix{B_{11} & B_{12} \\ B_{21} & B_{22}}.$$ From the fact that $$AB = BA$$ (that is, $$JB = BJ$$), conclude that we h... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.976669234586964,
"lm_q1q2_score": 0.8052265964740509,
"lm_q2_score": 0.8244619242200082,
"openwebmath_perplexity": 168.24958538434961,
"openwebmath_score": 0.9910091161727905,
"tag... |
quantum-mechanics, homework-and-exercises, hilbert-space, harmonic-oscillator, linear-algebra
Title: Ladder operator identity for $\langle n | (a+a^\dagger)^k | m \rangle$ I would like to know if there is a convenient identity (and what it is) for
$$\langle n | (a+a^\dagger)^k | m \rangle$$
where $| n \rangle, \, | m ... | {
"domain": "physics.stackexchange",
"id": 89187,
"lm_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, harmonic-oscillator, lin... |
homework-and-exercises, magnetic-fields, electric-current
$$\oint _C {\bf B}\cdot d{\bf l}=\mu _0 I_{enclosed}$$
As for the first integral, since B is uniform through our curve, it will simply become $$B2\pi r$$
Now for $I_{enclosed}$ what is it? It's the current the traverses our closed loop. Now if we have a current... | {
"domain": "physics.stackexchange",
"id": 49644,
"lm_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, magnetic-fields, electric-current",
"url": null
} |
c++, beginner, interview-questions, math-expression-eval
Everything inside
for (int i = 0; i < line.length(); i++) {
is just a huge blob of nested blocks. I canβt even see the end of the loop, let alone the end of the function, in the editor window!
Write small functions, and break apart the logic into smaller pie... | {
"domain": "codereview.stackexchange",
"id": 30566,
"lm_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, interview-questions, math-expression-eval",
"url": null
} |
compilers, sets, parsers, syntax
Set all the $FOLLOW$ sets to $\{\}$
First pass. I left out productions like $F\to id$ which don't match any of the rules.
$$ \begin{array}{c|l|l}
S \to E\; $ &\text{Add }\$\text{ to }FOLLOW(E) &FOLLOW(E) = \{ \$ \}\\
E \to TE' &\text{Add }FIRST(E')-\{\epsilon\}\text{ ... | {
"domain": "cs.stackexchange",
"id": 12772,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "compilers, sets, parsers, syntax",
"url": null
} |
speedup, complexity-theory, bqp
Title: Why is a quantum computer in some ways more powerful than a nondeterministic Turing machine? The standard popular-news account of quantum computing is that a quantum computer (QC) would work by splitting into exponentially many noninteracting parallel copies of itself in differen... | {
"domain": "quantumcomputing.stackexchange",
"id": 32,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "speedup, complexity-theory, bqp",
"url": null
} |
quantum-mechanics, physical-chemistry, centrifugal-force, coriolis-effect
Typically, however, these effects are so subtle as to be practically unmeasurable, particularly for systems as large and complicated as a protein. You would certainly not see such dramatic effects as you are suggesting, as the energetic favorabi... | {
"domain": "physics.stackexchange",
"id": 96540,
"lm_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, physical-chemistry, centrifugal-force, coriolis-effect",
"url... |
And yes, the Laplace distribution has positive excess kurtosis and is pointy. But you can have any shape of the peak whatsoever and have positive excess kurtosis. So the bear/mammal analogy applies again.
One thing that can be said about cases where the data exhibit high kurtosis is that when you draw the histogram, t... | {
"domain": "itfeature.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9603611563610179,
"lm_q1q2_score": 0.8064478823034188,
"lm_q2_score": 0.8397339656668286,
"openwebmath_perplexity": 951.0858978448405,
"openwebmath_score": 0.8385355472564697,
"tags": ... |
c++, performance, file
Title: Writing a large file of numbers Basically, I want to write a huge file of numbers. Each line in that file should contain one number. This program below is extremely slow (obviously) but it works. It writes one line after line and always one number until the limit of an unsigned long has b... | {
"domain": "codereview.stackexchange",
"id": 14232,
"lm_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, file",
"url": null
} |
Thanks for reading
jbunniii
Science Advisor
Homework Helper
Gold Member
## The Attempt at a Solution
BAck of the book says false
I thought to make f(a)=0S for all a in S which would have worked as a counterexample but but it implies f(eR)=0S which by property (iii) of ring homomorphisms implies eR=0S which means a=... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.974434788304004,
"lm_q1q2_score": 0.8320822926525833,
"lm_q2_score": 0.8539127529517043,
"openwebmath_perplexity": 1964.8435046065126,
"openwebmath_score": 0.9619499444961548,
... |
ph
Title: Calculating the pH given number of moles of HI and 500. ml of water Shouldn't we also add the volume of the HI to the volume of the water (500mL) when we calculate the molarity? My book simply divided the number of mol by 500 mL. Simple questions are often interesting.
(1) Most importantly, volumes are rare... | {
"domain": "chemistry.stackexchange",
"id": 13816,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ph",
"url": null
} |
nuclear-physics, nuclear-engineering, explosions
Title: Can an atomic bomb/rocket with nuclear warhead's nuclear explosion be triggered by a conventional explosion close to it? Starting the nuclear chain reaction isn't achieved trivially and depends on the design ((shot)gun or implosion). Can one be sure that with eit... | {
"domain": "physics.stackexchange",
"id": 73256,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "nuclear-physics, nuclear-engineering, explosions",
"url": null
} |
c++, unit-testing, c++17, template, template-meta-programming
template <class InputType, class OutputType>
class TestCollection {
struct TestCase {
InputType input;
OutputType expected;
};
public:
TestCollection(OutputType (*testfunc)(InputType), std::vector<TestCase> tests)
: test... | {
"domain": "codereview.stackexchange",
"id": 39954,
"lm_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++, unit-testing, c++17, template, template-meta-programming",
"url": null
} |
quantum-mechanics, dirac-equation
$$
\left( \nabla^2 - \frac{1}{c^2}\frac{\partial^2}{\partial t^2} \right)\psi = \left( \frac{mc}{\hbar}\right)^2\psi
$$
If this were to be the correct equation, by analogy with the non-relativistic case it would have to produce the time-evolution of a probability density obeying a con... | {
"domain": "physics.stackexchange",
"id": 25582,
"lm_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, dirac-equation",
"url": null
} |
ros, gazebo, rviz, plugin, librviz
Doing a rostopic echo /sensor/camera/st_front_left_rect/image_rect/header gives me for the Image/header:
seq: 1077
stamp:
secs: 18980
nsecs: 802162648
frame_id: st_front_left_rect
and rostopic echo /sensor/camera/st_front_left_rect/cameraInfo/header for the CameraInfo/Header:
s... | {
"domain": "robotics.stackexchange",
"id": 23773,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, gazebo, rviz, plugin, librviz",
"url": null
} |
python, tic-tac-toe, ai
#Clear the screen
print clear
while done == GAME_CONTINUE:
#Human gets a turn
if(player_type[player_turn] == PLAYER_HUMAN):
print "Your turn (Player " + player_turn + ")"
print_board(game_board)
print "\n Legend:\n"
print_board(game_board_legend)
move = get_user_move... | {
"domain": "codereview.stackexchange",
"id": 10454,
"lm_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, tic-tac-toe, ai",
"url": null
} |
big-bang-theory
Title: Did big bang happen only one time or it might happen again somewhere million time away from our observable universe? We know, everything is in existence due to big bang from singularity. Time also started from that big bang point.
So, did big bang happen only once or it might happen again somew... | {
"domain": "astronomy.stackexchange",
"id": 229,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "big-bang-theory",
"url": null
} |
c++, object-oriented, opengl
if (slope < 0)
{
slope = M_PI;
switched = !switched;
count++;
if (count % 4 == 0) clockwise = !clockwise;
}
}
slope += slopeIncrement;
/* Sw... | {
"domain": "codereview.stackexchange",
"id": 31270,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, object-oriented, opengl",
"url": null
} |
c, integer, bitwise, serialization, portability
le16b(b, n);
le16b(b+2, n>>16);
}
inline static void le64b(uint8_t b[const static 8], const uint64_t n) {
le32b(b, n);
le32b(b+4, n>>32);
}
#endif /* LE_h */
The goal is to be as portable as possible, while maintaining concise and fast code. | {
"domain": "codereview.stackexchange",
"id": 43867,
"lm_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, integer, bitwise, serialization, portability",
"url": null
} |
beamforming
$$ x_1(t) = A \sin( \omega_0 t) \tag{1}$$
$$ x_2(t) = A \sin( \omega_0 (t- t_d)) \tag{2}$$
where the delay in the second receiver (caused by the inclined arrival path) is $$t_d = d \sin(\theta) / c \tag{3}$$
where $c$ is the speed of light, $\omega_0 = 2 \pi c / \lambda$ is the (ang) frequency, and $\lambd... | {
"domain": "dsp.stackexchange",
"id": 12173,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "beamforming",
"url": null
} |
$a = \dfrac{g}{6}$
#### Chemist116
isolate each mass and sketch a FBD for each one separately
$a = \dfrac{g}{6}$
Okay. Here it is:
As mentioned in earlier threads I'm still adjusting my abilities to draw these diagrams. But if I get the picture correctly. Then it would be as follows:
For $m_1$:
$T-m_{1}g\sin 30^{... | {
"domain": "mathforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9811668728630677,
"lm_q1q2_score": 0.8218449560942447,
"lm_q2_score": 0.837619959279793,
"openwebmath_perplexity": 554.2004606889914,
"openwebmath_score": 0.590507447719574,
"tags": n... |
quantum-state, entanglement, locc-operation, schmidt-decomposition
By Schmidt decomposition any two-qubit state $|\psi\rangle$ may be written in the form
$$
|\psi\rangle = \lambda|s\rangle|u\rangle + \kappa|t\rangle|v\rangle\tag1
$$
where $\lambda$ and $\kappa$ are non-negative real numbers such that $\lambda^2+\kappa... | {
"domain": "quantumcomputing.stackexchange",
"id": 4432,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-state, entanglement, locc-operation, schmidt-decomposition",
"ur... |
thermodynamics, reference-frames, inertial-frames
Title: Fourier rate equation valid in which frame of reference? I wonder about the following; the Fourier rate equation of heat conduction states:
$$\vec q = -k\nabla T$$
But I'm wondering if this is valid in every frame of reference, because the heat flux $\vec q$ doe... | {
"domain": "physics.stackexchange",
"id": 9142,
"lm_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, reference-frames, inertial-frames",
"url": null
} |
php
$user = createUsername($firstname, $lastname, $dbusername, $dbc);
echo 'username is ' . $user; // username should look like this: johbea3647
?>
I tried to notate the code as much as possible. But just in case, I'll break it down here...
The idea is to take create a brand new username that begins with the first 3... | {
"domain": "codereview.stackexchange",
"id": 30581,
"lm_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
} |
ros, callback, service
Title: calling a service from an other file on the same machine
Hello guys,
I am a newbie to ROS, I am trying to make my ARDRONE more intelligent by using Brown's package for ARDRONE.T I
I need to call this service
:
bool toggleCamCallback(std_srvs::Empty::Request& request, std_srvs::Empty::Res... | {
"domain": "robotics.stackexchange",
"id": 7741,
"lm_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, callback, service",
"url": null
} |
Suppose that an allowable path of length $n$ terminates at $\langle n,2\rangle$; the entire path must lie between $y=0$ and $y=2$, so itβs easy to see that we can extend the bit string for the path by $10$ or by $11$ and still have an allowable path.
β’ Show that no matter where a path of length $n$ and width $2$ termi... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9935117304033433,
"lm_q1q2_score": 0.812269823744612,
"lm_q2_score": 0.8175744673038222,
"openwebmath_perplexity": 88.1024261856868,
"openwebmath_score": 0.8958116173744202,
"tags"... |
string-theory, renormalization, singularities, regularization, quantum-anomalies
If the divergence in (1.3.34) is in this sense, string-theory is a quantum gravity theory. We cannot simply throw it away like QFT.
Later in QFT, we meet other divergences in the loop calculations. The reason is, the presented QFT is a lo... | {
"domain": "physics.stackexchange",
"id": 11609,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "string-theory, renormalization, singularities, regularization, quantum-anomalies",... |
javascript, beginner, html, css, calculator
firstOperatorPressed = true;
currentOperator = operator;
}
// function when = is pressed
function buttonEqualPressed() {
operatorPressedRecently = true;
if(firstOperatorPressed) {
secondOperand = parseInt(document.getElementById('screen-text').innerHTM... | {
"domain": "codereview.stackexchange",
"id": 32448,
"lm_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, html, css, calculator",
"url": null
} |
python, matrix, cython, vectorization
return I, notI
timeit:
nusers = 100
nclusters = 4
y = np.random.random_integers(0, 1, (nusers,nusers))
c = np.random.choice(nclusters, nusers)
%timeit test1(y,c)
10 loops, best of 3: 42 ms per loop
Solution 2:
def test2(y, c):
N = len(c)
C = len(set(c))
I = np.ze... | {
"domain": "codereview.stackexchange",
"id": 10142,
"lm_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, matrix, cython, vectorization",
"url": null
} |
php, sql, json, mysqli
Blind: An attacker can inject their own query into your first select query. They would use a non-existing name and cid, and then append a true/false statement to the cid (eg does the database password start with an a? no? does it start with a b? and so on). The attack is a bit noisy as it takes ... | {
"domain": "codereview.stackexchange",
"id": 19610,
"lm_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, sql, json, mysqli",
"url": null
} |
rviz, laser, rosbag, ros-hydro, scanner
Original comments
Comment by dornhege on 2014-03-30:
What does "doesn't work" mean exactly? What errors do you get for apt-get and when you set the laser display in rviz?
Comment by dornhege on 2014-03-30:
The error that you see might be fixable with apt-get upgrade.
Comment by ... | {
"domain": "robotics.stackexchange",
"id": 17470,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "rviz, laser, rosbag, ros-hydro, scanner",
"url": null
} |
the marked up input text, and the corresponding typeset output. MatLab sqrt symbol in title. Symbolic Math in Matlab. The Comprehensive LATEX Symbol List Scott Pakin β 19 January 2017 Abstract This document lists 14283 symbols and the corresponding LATEX commands that produce them. This is an information page. You can ... | {
"domain": "klg-ruegen.de",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.930458255494172,
"lm_q1q2_score": 0.8255068482489167,
"lm_q2_score": 0.8872046041554922,
"openwebmath_perplexity": 2203.763950240457,
"openwebmath_score": 0.920791745185852,
"tags": nu... |
c#
This means in cases where we don't need to return or anything if the other is running we can simply do:
Helpers.InstanceManager.ShowIfInstanceRunning()
Looking more into the API I really don't like the idea of having the ThisUserOnly (which should be CurrentUserOnly) be a property, as well as the AppGuid and requi... | {
"domain": "codereview.stackexchange",
"id": 24336,
"lm_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
} |
atomic-physics, physical-chemistry, atoms, subatomic
common ones in everyday life are neutrons, protons, and electrons. Neutrons and Protons have about the same mass, 1839 and 1836 times heavier than an electron. Other subatomic particles are heavier or lighter. | {
"domain": "physics.stackexchange",
"id": 72314,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "atomic-physics, physical-chemistry, atoms, subatomic",
"url": null
} |
microbiology, replication
The cells separate, and we are at Stage 6. But stage 6 is the same state for each daughter cell as we had in Stage 3: a chromosomal replication that is halfway through (thus having one and a half copies). It took 20 minutes to get from Stage 3 to Stage 6, where we are ready to double again.... | {
"domain": "biology.stackexchange",
"id": 4613,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "microbiology, replication",
"url": null
} |
capacitance, electromagnetic-induction, oscillators, inductance
Title: Polarity of induced EMF in an LC oscillator The image given belongs to my textbook (NCERT Grade 12, Chapter-7, Alternating Current, Pg No 255): | {
"domain": "physics.stackexchange",
"id": 81834,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "capacitance, electromagnetic-induction, oscillators, inductance",
"url": null
} |
ros2
// Known vars:
double _x{0};
double _y{0};
double _th{0};
std::vector<double> _q_imu{0,0,0,1};
std::shared_ptr<std_msgs::msg::Float64> _state_left, _state_right;
And my cpp file:
OdomNode::OdomNode() : Node("odometry_node","odometry_node_ns", rclcpp::NodeOptions()), _rate(30), _ticks_meter(1)... | {
"domain": "robotics.stackexchange",
"id": 33590,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros2",
"url": null
} |
vba, file
Dim folder_index As Integer
Integers - integers are obsolete. According to msdn VBA silently converts all integers to long.
Referencing
Every time you use Cells or Range without an explicit reference, it is implicitly referencing the active sheet. You want Sheet1.Range etc
Be sure to avoid things like .Sele... | {
"domain": "codereview.stackexchange",
"id": 31676,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "vba, file",
"url": null
} |
plt.plot([map_x, map_y], [x[map_x], y[map_y]], 'r')
Ok, this does look nice. I am impressed!
#### Conclusions
We worked out a naive DTW implementation pretty much from scratch. It seems to do reasonably well on artificial data.
#### References
Feel free to comment! | {
"domain": "github.io",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9688561694652215,
"lm_q1q2_score": 0.8215587960731568,
"lm_q2_score": 0.8479677602988602,
"openwebmath_perplexity": 2430.670523279101,
"openwebmath_score": 0.4986400604248047,
"tags": null... |
reinforcement-learning, policy-gradients, greedy-ai
This will fit available designs of RL algorithms, and allow for learning some internal language modelling if it is relevant. It will reduce your need to model sentence construction outside of the agent. Most importantly, if "good" or "bad" sentences tend to start or ... | {
"domain": "ai.stackexchange",
"id": 1028,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "reinforcement-learning, policy-gradients, greedy-ai",
"url": null
} |
quantum-mechanics, operators, heisenberg-uncertainty-principle
Title: Physical interpretation of Uncertainty Uncertainty of an operator $\hat{A}$ when observing a state $|\psi\rangle$ is defined as
\begin{equation}
\Delta A_{\psi} = |(\hat{A} - \langle\hat{A}\rangle)\psi|
\end{equation}
Now assume that there is some u... | {
"domain": "physics.stackexchange",
"id": 82556,
"lm_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, heisenberg-uncertainty-principle",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.